1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="d9a49008-3239-4a4e-816c-daacde0dea29",e._sentryDebugIdIdentifier="sentry-dbid-d9a49008-3239-4a4e-816c-daacde0dea29")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3971],{540:(e,t,a)=>{"use strict";a.d(t,{A:()=>m});var i=a(66284),r=a(18012),n=a(57002),s=a(69174),l=a(40748),o=a(28734),c=a(37876),d=a(14232);function h(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,i)}return a}function u(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?h(Object(a),!0).forEach(function(t){(0,i.A)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):h(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}let m=function(e){let{relatedItems:t,withHeading:a,pageType:i,variant:h}=e,m=e=>{let{link:t,icon:a,title:i,type:l,pageType:d}=e,u=(0,o.HH)();return t&&(0,c.jsx)(s.qh,{href:t,prefetch:!1,onClick:()=>(0,r.$s)(`${d}_detail_related`,"click",`item_title: ${i}, category: ${l}, device: ${u}`),children:(0,c.jsxs)("div",{className:"flex flex-col items-center px-4",children:[(0,c.jsx)("div",{className:"mb-2",children:(0,c.jsx)("img",{src:a.src,alt:a.title,className:"w-10 h-10"})}),(0,c.jsx)(s.DZ,{weight:"font-semibold",fontSize:"text-xs",color:h===n.KT.Dark?"text-grey-200":"text-grey-800",align:"text-center",className:"whitespace-nowrap capitalize",children:a.title})]})},a.title)},p=(0,l.A)(t);return p&&(0,c.jsxs)("div",{className:`activity ${h===n.KT.Dark?"pt-6":"py-4"}`,children:[a&&(0,c.jsx)("div",{className:"mb-6",children:(0,c.jsx)(s.DZ,{color:"text-grey-500",weight:"font-semibold",children:"Related"})}),(0,c.jsx)("div",{className:"flex overflow-auto",children:p.map(e=>(0,d.createElement)(m,u(u({},e),{},{key:e.title,pageType:i})))})]})}},731:(e,t,a)=>{"use strict";a.d(t,{$d:()=>l,UQ:()=>c,oV:()=>s,tT:()=>o});var i=a(32008),r=a(96370),n=a(57279);let s=async(e,t,a,n,s,l)=>{var o;let c=await fetch("/api/v1/donate/paypal/subscription",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({donationType:e,amount:t,currency:a,account:n,metadata:s,ramadanStartDate:l})}),d=await c.json();if(null!=(o=d.data)&&o.id)return d.data.id;throw i.A.error("Error in getting paypal subscription for monthly",{res:d,donation_type:r.ZU.Monthly,account:n}),"Error creating paypal monthly subscription."},l=async(e,t,a,s,l,o,c,d,h,u,m)=>{var p;let g=new Date(1e3*(0,n.cN)(o===r.ZU.GreetRamadanWithSadaqah?d:c,h.offsetHrs,h.offsetMinutes)).toISOString(),f=await fetch("/api/v1/donate/paypal/subscription",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({amount:e,paymentAmounts:t,currency:a,originCurrency:s,account:l,donationType:o,metadata:u,startTime:g,ramadanStartDate:m})}),x=await f.json();if(null!=(p=x.data)&&p.id)return x.data.id;throw i.A.error("Error in getting paypal scheduled subscription",{res:x,donationType:o,account:l}),"Error creating paypal scheduled subscription."},o=async(e,t)=>{let a={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({metadata:e,id:t})};await d("/api/v1/donate/metadata",a)},c=async e=>{try{let t=new URL(window.location.origin+"/api/v1/donate/metadata");t.searchParams.set("id",e);let a=await fetch(t.toString(),{method:"GET"}),r=await a.json();if(r.metadata)return r.metadata;throw i.A.error("Error fetching metadata",{res:r,paymentReference:e}),"Error fetching metadata"}catch(e){console.error("Error fetching metadata",e)}},d=async(e,t)=>{try{let a=await h(e,t);return await a.json()}catch(r){i.A.debug("Calling metadata store 2nd time",{body:t.body,err:r});let a=await h(e,t);return await a.json()}},h=async(e,t)=>{try{let a=await fetch(e,t);if(!a.ok)throw Error("Error posting metadata.");return a}catch{return new Response("Error posting metadata.",{status:500})}}},1056:(e,t,a)=>{"use strict";a.d(t,{A:()=>u});var i=a(54587),r=a.n(i),n=a(18012),s=a(69174),l=a(67579),o=a(62255),c=a(86400),d=a(32738),h=a(37876);let u=e=>{let{posts:t,title:a,analytic:i,titleSize:u}=e,m=(0,d.z9)(a);return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)("div",{id:m,className:"xl:my-10 mt-10",children:[(0,h.jsx)(o.A,{title:a,isBorder:!1,isSpacing:!1,titleSize:u}),(0,h.jsx)("div",{className:"border-b-2 border-gray xl:mt-4 mt-6"})]}),(0,h.jsx)("div",{className:"my-6",children:(0,h.jsx)("div",{className:"grid xl
1:grid-cols-5 grid-cols-1 gap-x-6 gap-y-10",children:t.map(e=>{var t,a;return(0,h.jsx)("div",{children:(0,h.jsxs)("div",{className:"grid grid-cols-3 gap-x-4",children:[(0,h.jsx)(s.qh,{href:e.contentType.find(e=>0===e.id&&"Book"===e.name)?"/read/books/"+e.slug:e.slug,onClick:()=>{(0,n.$s)(i,"click",`item_name: ${e.title}`)},children:(0,h.jsx)("div",{className:"aspect-w-16 aspect-h-9",children:(0,h.jsx)(r(),{loader:c.R2,src:e.featured_image,alt:e.title,layout:"fill",objectFit:"cover"})})}),(0,h.jsxs)("div",{className:"flex-1 flex flex-col justify-center col-span-2",children:[(0,h.jsx)(s.qh,{href:e.slug,passHref:!0,className:"mb-1",onClick:()=>{(0,n.$s)(i,"click",`item_name: ${e.title}`)},children:(null==(t=e.topic.filter(e=>0!==e.parent))||null==(t=t[0])?void 0:t.name)&&(0,h.jsx)(l.CardCategory,{category:null==(a=e.topic.filter(e=>0!==e.parent))?void 0:a[0].name,size:"text-xss"})}),(0,h.jsx)(s.qh,{href:e.slug,onClick:()=>{(0,n.$s)(i,"click",`item_name: ${e.title}`)},children:(0,h.jsx)(s.EY,{as:"p",color:"text-y-black",weight:"font-bold",letterSpacing:"tracking-tight-2",lineHeight:"leading-tight",fontSize:"text-sm",className:"mb-1",children:e.title})}),(0,h.jsx)(l.CardAuthor,{authors:e.authors,fontSize:"text-xs",isSpacing:!1})]})]})},e.title)})})})]})}},1216:(e,t,a)=>{"use strict";a.d(t,{G:()=>p});var i=a(59860),r=a(66284),n=a(26159),s=a(21472),l=a(1678),o=a(61300),c=a(37876);let d=["indexName","searchClient","children"];function h(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,i)}return a}function u(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?h(Object(a),!0).forEach(function(t){(0,r.A)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):h(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}let m={router:(0,n.A)({createURL:e=>{let{qsModule:t,routeState:a,location:i}=e,r={},{q:n,type:s,topic:l,subtopic:o,author:c,year:d,page:h}=a;n&&(r.q=n),s&&(r.type=s),l&&(r.topic=l),o&&(r.subtopic=o),c&&(r.author=c),d&&(r.year=d),h&&(r.page=h);let u=t.stringify(r,{addQueryPrefix:!0,encode:!1});return`${i.pathname}${u}`},parseURL:e=>{let{qsModule:t,location:a}=e,{q:i,type:r,topic:n,subtopic:s,author:c,year:d,page:h}=t.parse(a.search.slice(1));return{[l.VX]:u(u(u(u(u(u(u({hierarchicalMenu:{"contentTypes.lvl0":["All"]}},i&&{query:(0,o.BZ)(i)}),r&&{hierarchicalMenu:{"contentTypes.lvl0":[r]}}),n&&{hierarchicalMenu:{"topics.lvl0":[n]}}),s&&{hierarchicalMenu:{"topics.lvl1":[s]}}),c&&{refinementList:{"authors.name":c.split("*")}}),d&&{range:{dateYear:d}}),h&&{page:parseInt(h)})}}}),stateMapping:{routeToState(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{q:t,type:a,topic:i,subtopic:r,author:n,year:s}=e,c=!!(a||i||r);return{[l.VX]:u(u(u(u({hierarchicalMenu:{"contentTypes.lvl0":["All"]}},t&&{query:(0,o.BZ)(t)}),c&&{hierarchicalMenu:u(u(u({},a&&{"contentTypes.lvl0":[a]}),i&&{"topics.lvl0":[i]}),r&&{"topics.lvl1":[r]})}),n&&{refinementList:{"authors.name":n.split("*")}}),s&&{range:{dateYear:s}}),prod_videos:u(u(u(u({},t&&{query:(0,o.BZ)(t)}),c&&{hierarchicalMenu:u(u({},i&&{"topics.lvl0":[i]}),r&&{"topics.lvl1":[r]})}),n&&{refinementList:{"authors.name":n.split("*")}}),s&&{range:{dateYear:s}})}},stateToRoute(e){var t,a,i,r;let n=Object.entries(e).find(e=>{let[t,a]=e;return null==a?void 0:a.query});if(!n)return{};let[,s]=n,{query:l,refinementList:c,hierarchicalMenu:d,range:h,page:m}=s,p=null==d||null==(t=d["contentTypes.lvl0"])?void 0:t[0],g="All"===p,f=null==d||null==(a=d["topics.lvl0"])?void 0:a[0],x=null==d||null==(i=d["topics.lvl1"])?void 0:i[0],y=null==c||null==(r=c["authors.name"])?void 0:r.join("*"),b=null==h?void 0:h.dateYear;return u(u(u(u(u(u(u({},l&&{q:(0,o.OR)(l)}),p&&!g&&{type:p}),f&&{topic:f}),x&&{subtopic:x}),y&&{author:y}),b&&{year:b}),m&&m>0&&{page:m.toString()})}}},p=e=>{let{indexName:t,searchClient:a,children:r}=e,n=(0,i.A)(e,d);return(0,c.jsx)(s.G,u(u({indexName:t,searchClient:a,routing:m,insights:!0},n),{},{children:r}))}},1816:(e,t,a)=>{"use strict";a.d(t,{d:()=>i});let i=function(e){return e.DEPOSITED="DEPOSITED",e.PENDING="PENDING",e.VERIFIED="VERIFIED",e.AVAILABLE="AVAILABLE",e.INITIATED="INITIATED",e.FAILED="FAILED",e.REJECTED="REJECTED",e.CANCELLED="CANCELLED",e.EXPIRED="EXPIRED",e.UNKNOWN="UNKNOWN",e}({})},2209:(e,t,a)=>{"use strict";a.d(t,{H:()=>o});var i=a(64141),r=a(38311),n=a(69174),s=a(87415),l=a(37876);let o=()=>{let{showPaperNewsletterForm:e}=(0,r.K)();return e?(0,l.jsx)("div",{className:"bg-[#FFF9E6] xl:pt-2 xl:pb-4 py-4 mb-4 px-4",children:(0,l.jsxs)("div",{className:"w-auto",children:[(0,l.jsx)(n.DZ,{fontSize:"xl:text-xl",weight:"font-extrabold",lineHeight:"xl:leading-7 leading-tight",children:"Seek beneficial knowledge."}),(0,l.jsx)(n.EY,{as:"p",fontSize:"text-sm",className:"mb-[0.6rem] mt-1",children:"Don't miss on new papers!"}),(0,l.jsx)(s.M,{eventName:"paper_subscribe_cta",surface:"paper_inl
1ine",source:i.xY.PAPER_PAGE})]})}):(0,l.jsx)(l.Fragment,{})}},2527:(e,t,a)=>{"use strict";a.d(t,{D:()=>f,w:()=>x});var i=a(66284),r=a(14232),n=a(89099),s=a(14742),l=a(41464),o=a(32984),c=a(47489),d=a(65083),h=a(8218),u=a(75261),m=a(53780);function p(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,i)}return a}function g(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?p(Object(a),!0).forEach(function(t){(0,i.A)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):p(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}let f="_basic_popup",x=()=>{let{firebaseAuth:{userInfo:e,authLoading:t}}=(0,d.m9)(),a=(0,n.useRouter)(),[i]=(0,h.As)(o.jO.auth()),{0:p,1:x}=(0,r.useState)([]),{0:y,1:b}=(0,r.useState)(),{0:v,1:w}=(0,r.useState)(),j=(0,s.T)({}),{0:k,1:N}=(0,r.useState)(!1),{0:_,1:S}=(0,r.useState)(new Date),{0:A,1:C}=(0,r.useState)(!0),P=async e=>{let t=g(g({},e),{},{userId:(null==i?void 0:i.uid)||null,meta:{timestamp:new Date}});if(!(null!=i&&i.uid)||!k)return!1;let a=await (0,c.AD)(i.uid);return a.length>0&&(x(a),b(a[0])),!!(0,u.KQ)(a)&&(console.debug(`saving survey with userId: ${i.uid}`),await (0,c.uU)(t))};(0,r.useEffect)(()=>{async function a(e){let t=await (0,c.X1)(e);console.debug(`checking survey exists for ${e}`,t),t||T(),l.A.set(f,"true")}async function r(e){let t=await (0,c.AD)(e);console.debug(`getting survey for ${e}`,t.length),x(t),b(t[0]||null),w(t.map(e=>e.submissionId).filter(Boolean)),S((0,u.tt)(t)),N(null===i||(0,u.KQ)(t)),C(!1)}e.authState!==m.j_.AuthLoading&&(i?(a(null==i?void 0:i.uid),r(null==i?void 0:i.uid)):(N(!0),T(),C(t)))},[e.authState,i]);let T=()=>{"true"!=l.A.get(f)&&(j.open(),l.A.set(f,"true"))};return(0,r.useEffect)(()=>{let e=()=>{j.close()};return a.events.on("routeChangeStart",e),()=>{a.events.off("routeChangeStart",e)}},[a]),{addSurvey:P,state:j,surveyResponses:p,latestResponse:y,submissionIds:v,isEligible:k,nextDate:_,isLoading:A}}},5327:(e,t,a)=>{"use strict";a.d(t,{Gd:()=>p,U1:()=>D,Yh:()=>E,Cz:()=>M,KD:()=>I,C4:()=>C,xw:()=>P});var i=a(14232),r=a(64454),n=a(69174),s=a(59860),l=a(77709),o=a(78049),c=a(37876);let d=["callback","className"],h=e=>{let{children:t}=e;return(0,c.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:t})},u=e=>{let{status:t,errorCode:a,isListening:i}=e;return"error"===t&&"not-allowed"===a?(0,c.jsxs)(h,{children:[(0,c.jsx)("line",{x1:"1",y1:"1",x2:"23",y2:"23"}),(0,c.jsx)("path",{d:"M9 9v3a3 3 0 0 0 5.12 2.12M15 9.34V4a3 3 0 0 0-5.94-.6"}),(0,c.jsx)("path",{d:"M17 16.95A7 7 0 0 1 5 12v-2m14 0v2a7 7 0 0 1-.11 1.23"}),(0,c.jsx)("line",{x1:"12",y1:"19",x2:"12",y2:"23"}),(0,c.jsx)("line",{x1:"8",y1:"23",x2:"16",y2:"23"})]}):(0,c.jsxs)(h,{children:[(0,c.jsx)("path",{d:"M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3z",fill:i?"currentColor":""}),(0,c.jsx)("path",{d:"M19 10v2a7 7 0 0 1-14 0v-2"}),(0,c.jsx)("line",{x1:"12",y1:"19",x2:"12",y2:"23"}),(0,c.jsx)("line",{x1:"8",y1:"23",x2:"16",y2:"23"})]})},m=e=>{let t,{callback:a,className:r}=e,{isBrowserSupported:n,isListening:h,toggleListening:m,voiceListeningState:p}=(t=(0,s.A)(e,d),(0,o.Z)(l.A,t)),{transcript:g,status:f,errorCode:x}=p;return(0,i.useEffect)(()=>(g.length>0&&"finished"===f&&a(g),()=>a(g)),[f,g]),(0,c.jsx)("div",{className:r,children:(0,c.jsx)("button",{type:"button",title:n?"Search by voice":"Unsupported browser",onClick:e=>{e.currentTarget.blur(),m()},disabled:!n,children:(0,c.jsx)(u,{isListening:h,status:f,errorCode:x})})})},p=e=>{let{refine:t,query:a}=(0,r.V)(e),{0:s,1:l}=(0,i.useState)(a),o=(0,i.useCallback)(e=>l(e),[s]);return(0,i.useEffect)(()=>{(0===s.length||s.length>=3&&s!==a)&&t(s)},[s]),(0,c.jsx)(c.Fragment,{children:(0,c.jsx)("div",{className:"w-full",children:(0,c.jsx)(n.A_,{type:"text",value:s,onChange:e=>{l(e.target.value)},inputClassName:"appearance-none placeholder-grey-700 w-full text-grey-900 p-3 leading-tight focus:outline-none rounded-none border border-grey-200",placeholder:"What are you looking for?","aria-label":"Search",suffix:(0,c.jsx)(m,{callback:o,className:"w-8 h-8 relative -top-1/2 transform translate-y-1/2 -left-8"})})})})};var g=a(66284),f=a(42850),x=a(56544),y=a(56478),b=a(32824),v=a(1216);let w=["indexName","children"];function j(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,i)}return a}function k(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};
1t%2?j(Object(a),!0).forEach(function(t){(0,g.A)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):j(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}let N=e=>{let{attribute:t}=e;return(0,b.s)({attribute:t}),null},_=e=>{let{attribute:t}=e;return(0,f.J)({attribute:t}),null},S=e=>{let{attributes:t}=e;return(0,x.W)({attributes:t}),null},A=e=>((0,r.V)(e),null),C=()=>(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(A,{}),(0,c.jsx)(S,{attributes:["topics.lvl0","topics.lvl1"]}),(0,c.jsx)(N,{attribute:"dateYear"}),(0,c.jsx)(_,{attribute:"authors.name"})]}),P=e=>{let{indexName:t,children:a}=e,i=(0,s.A)(e,w),{uiState:r,setUiState:n}=(0,y.J)();return(0,c.jsx)(v.G,k(k({indexName:t,onStateChange:e=>{let{uiState:t,setUiState:a}=e;a(()=>{var e,a,i;return null!=(e=t.prod_wp_post)&&e.hierarchicalMenu||(t.prod_wp_post.hierarchicalMenu={"contentTypes.lvl0":["All"]}),null!=(a=t.prod_wp_post.hierarchicalMenu)&&a["contentTypes.lvl0"]||(t.prod_wp_post.hierarchicalMenu["contentTypes.lvl0"]=["All"]),t.prod_wp_post.query||(t.prod_wp_post.query=null==(i=r.prod_wp_post)?void 0:i.query),n(t),t})},initialUiState:r},i),{},{children:a}))};var T=a(18012);function O(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,i)}return a}let E=e=>{var t;let{items:a,refine:i}=(0,x.W)(function(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?O(Object(a),!0).forEach(function(t){(0,g.A)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):O(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}({limit:50},e)),r=["all","paper","video","infographic","audio","blog","book","curriculum","other"].map(e=>a.find(t=>t.label.toLowerCase()===e)).filter(Boolean),n=null==(t=r.find(e=>"all"===e.label.toLowerCase()))?void 0:t.count;return n?(0,c.jsx)(c.Fragment,{children:n>10&&(0,c.jsx)("div",{className:"mb-6 overflow-x-auto hide-scrollbar",children:(0,c.jsx)("div",{className:"flex flex-nowrap gap-2 w-max pl-6 xl:pl-0",children:r.map((e,t)=>(0,c.jsx)("button",{className:`px-3 py-1 rounded-xl border transition-colors text-xs ${e.isRefined?"bg-carrot-500 text-white border-carrot-600":"bg-white text-grey-900 border-grey-200 hover:bg-carrot-100"}`,onClick:()=>(e=>{let t=r[e];(0,T.$s)("search_content_type_change","click",t.label),i(t.isRefined?"":t.label)})(t),type:"button",children:`${e.label} (${e.count})`},e.label))})})}):null},I=e=>{let{items:t,onTopicChange:a}=e,i=e=>{a(e)};return(0,c.jsxs)("div",{className:"mb-8",children:[(0,c.jsx)("div",{className:"my-4",children:(0,c.jsx)(n.DZ,{level:4,weight:"font-semibold",color:"text-gray-600",children:"Topic"})}),t.map(e=>(0,c.jsxs)("div",{children:[(0,c.jsxs)("div",{className:"topic flex justify-between mb-2",children:[(0,c.jsx)("div",{className:"inline-flex items-center",children:(0,c.jsx)(n.Sc,{isSelected:e.isRefined,checkBoxClassName:"form-checkbox border-gray-300 text-carrot-500 !rounded",onChange:()=>i(e),children:e.label})}),(0,c.jsx)("div",{className:"total-number flex justify-end text-grey-700 text-sm",children:e.count})]}),e.isRefined&&e.data&&(0,c.jsx)("div",{className:"flex flex-col ml-4",children:e.data.map(e=>(0,c.jsx)("div",{children:(0,c.jsxs)("div",{className:"topic flex justify-between mb-2",children:[(0,c.jsx)("div",{className:"inline-flex items-center",children:(0,c.jsx)(n.Sc,{isSelected:e.isRefined,checkBoxClassName:"form-checkbox border-gray-300 text-carrot-500",onChange:()=>i(e),children:e.label})}),(0,c.jsx)("div",{className:"total-number flex justify-end text-grey-700 text-sm",children:e.count})]})},e.value))})]},e.value))]})},D=e=>{let{items:t,isShowingMore:a,canToggleShowMore:i,onAuthorChange:r,toggleShowMore:s,limit:l,showMore:o}=e;return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("div",{className:"py-4",children:(0,c.jsx)(n.DZ,{level:4,weight:"font-semibold",color:"text-gray-600",children:"Author"})}),t.map((e,t)=>(t<l||o)&&(0,c.jsxs)("div",{className:"topic flex justify-between mb-2 border-none",children:[(0,c.jsx)("div",{className:"inline-flex items-center",children:(0,c.jsx)(n.Sc,{isSelected:e.isRefined,checkBoxClassName:"form-checkbox border-gray-300 text-carrot-500 !rounded",onChange:()=>r(e),children:e.label})}),(0,c.jsx)("div",{className:"total-number flex justify-end text-grey-700 text-sm",children:e.count})]},e.label)),i&&(0,c.jsxs)(n.$n,{onPress:s,children:["Show ",a?"Less":"More"]})]})};var q=a(28344);a(29123);let M=e=>{let{currMin:t,currMax:a,minDate:i,maxDate:r,onChange:s}=e,l=new Date().getFullYear();return(0,c.jsxs)("div",{className:"mb-4",children:[(0,c.jsx)("div",{className:"mb-3",children:(0,c.jsx)(n.DZ,{level:4,weight:"font-semibold",color:"text-gray-600",children:"Date"})}),(0,c.jsxs)("div",{className:"px-3.5",children:[(!i||0===i)&&(0,c.jsx)(q.A,{disabled:!0,min:2016,max:l,values:[],children:(0,c.jsxs)("div",{className:"flex flex-row",children:[(0,c.jsx)("div",{className:"w-1/2 text-left",children:2016}),(0,c.jsx)("div",{className:"w-1/2 text-right",children:l})]})}),i>0&&(0,c.jsx)(q.A,{min:i,max:r,values:[Number.isFinite(t)?t:i,Number.isFinite(a)?a:r],onChange:s,snap:!0,snapPoints:Array(r-i+1).fill(0).map((e,t)=>i+t),children:(0,c.jsxs)("div",{className:"flex flex-row",children:[(0,c.jsx)("div",{className:"w-1/2 text-left",children:Number.isFinite(t)?t:i}),(0,c.jsx)("div",{className:"w-1/2 text-right",children:Number.isFinite(a)?a:r})]})})]})]})}},5544:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});var i=a(14232);let r=(e,t,a)=>{(0,i.useEffect)(()=>{let i=document.getElementById(t);if(!i){let i=document.createElement("script");i.src=e,i.id=t,document.body.appendChild(i),i.onload=a}return()=>null==i?void 0:i.remove()},[e,t,a])}},5707:(e,t,a)=>{"use strict";a.d(t,{hm:()=>p,Sx:()=>u,sQ:()=>m,fs:()=>x,jk:()=>g,_2:()=>f});var i=a(94171),r=a(67117);a(32008);var n=a(64761),s=a(35744);a(53959);let l=function(e){return e.HTML="html",e.Post="post",e}({}),o=e=>({type:l.HTML,text:e,post:null,post_data:null});o('<p><b>Muhammad ï·º, the son of Abdullah, was the </b><a href="https://yaqeeninstitute.org/series/proofs-of-prophethood"><b>final prophet and messenger of God</b></a><b>.</b></p>'),o('<p>While Muhammad ï·º is often described as the âfounder of Islam,â Islam did not begin with his prophethood. It is more accurate to say <a href="https://yaqeeninstitute.org/read/paper/jesus-a-foundation-for-dialogue-between-muslims-and-christians">he was sent to restore the core messages of previous prophets, and that of the original, uncorrupted scriptures revealed by God.</a> The prophets and messengers of God, from Adam to Noah to Abraham to Moses to Jesus to Muhammad (peace be upon them), and many more between them, all conveyed the same fundamental message of monotheism and good works.</p>'),o('<p>Despite facing extreme challenges, rejection, and persecution during his lifetime and prophetic mission, Muhammad ï·º unfailingly exhibited <a href="https://yaqeeninstitute.org/read/paper/the-c
1haracter-of-prophet-muhammad-how-his-noble-qualities-and-personality-are-proof-of-his-prophethood"><u>beautiful character</u></a>, <a href="https://yaqeeninstitute.org/read/paper/how-muhammad-confronted-hate-and-became-the-most-influential-person-in-history"><u>rose above hatred and insults</u></a>, and accomplished a <a href="https://yaqeeninstitute.org/read/paper/the-accomplishments-of-prophet-muhammad"><u>stunning array of achievements</u></a>. He is the greatest of Godâs creation, and the most beloved of them all to God.</p>'),o('<p>Check out the <a href="https://yaqeeninstitute.org/series/meeting-muhammad-a-ramadan-series"><u><em>Meeting Muhammad</em></u></a> video series with Dr. Omar Suleiman.</p>'),o('<p><b>Prophet Muhammad ï·º was born in 570 CE in Mecca, where he eventually received the final revealed book sent to humanity, the Qurâan, and began </b><a href="https://yaqeeninstitute.org/infographics/the-message-of-prophet-muhammad-infographic"><b>calling people to the religion of Islam</b></a><b>.</b></p>'),o("<p>Prophet Muhammad ï·º passed away in 632 CE, in the city of Medina, eleven years after his <em>hijrah</em> (migration) there. While historians differ on the exact date of his passing, many held that it was on the 12th of Rabiâ al-Awwal, which would correspond to the 8th of June in 632 CE.</p>"),o("<p>Prophet Muhammad ï·º remains buried in his house, in Medina, exactly where he had passed away. The <em>Sahabah</em>âthe Companions of Muhammad ï·ºâinitially disagreed about where to bury the Prophet ï·º. Some suggested taking him back for burial in his birthplace of Mecca, but others remembered that the Prophet ï·º had said to them, âA prophet should not be buried except where he died.â [Sunan al-Tirmidhi, #1018]</p>"),o('<p><b>Prophet Muhammadâs ï·º </b><a href="https://yaqeeninstitute.org/read/paper/the-accomplishments-of-prophet-muhammad"><b>impact on the world was extraordinary and unique</b></a><b> in terms of his global political achievements, him being a demonstrably greater influence on spirituality than any other founder of the major faiths, and him advancing social wellbeing in unparalleled ways.</b></p>'),o("<p>Many non-Muslim historians in the west acknowledge this, such as Michael Hart who famously ranked him atop the list of the â100 Greatestâ influencers of human history. Similarly, Alphonso de Lamartine writes, âIf greatness of purpose, smallness of means, and astounding results are the three criteria of human genius, who could dare to compare any great man in modern history with Muhammad?â</p>"),o('<p><b>Prophet Muhammad ï·º received the Qurâan, the </b><a href="https://yaqeeninstitute.org/read/paper/the-inimitable-quran-the-revelation-to-prophet-muhammad"><b>miraculous literal Word of God</b></a><b>, gradually over the span of his prophethood.</b> It was communicated to him from the Divine, at times directly and often through an angel. Revelation of the Qurâan began when he was 40 years old, when the archangel Gabriel came to Muhammad ï·º and recited to him the following verses:</p>'),o("<p><em>Read! In the Name of your Lord, Who has created (all that exists),</em></p>"),o("<p><em>He has created man from a clot (a piece of thick coagulated blood),</em></p>"),o("<p><em>Read! And your Lord is the Most Generous,</em></p>"),o("<p><em>Who has taught (the writing) by the pen.</em></p>"),o("<p><em>He has taught man that which he knew not.</em></p>"),o("<p>[Qurâan, 96:1-5]</p>"),o('<p>This revelation continued descending upon the heart of Muhammad ï·º for 23 years until he passed away. Thereafter, while the Qurâan was primarily committed to memory, it was <a href="https://yaqeeninstitute.org/read/paper/how-the-quran-was-preserved-during-the-prophets-time-mechanisms-of-oral-and-written-transmission">compiled</a> into a single undisputed manuscript by the Prophetâs Companions.</p>'),o("<p>Other, non-literal secondary revelations called Hadith, were also inspired to Prophet Muhammad ï·º to supplement the Qurâan and ensure its proper understanding.</p>"),o("<p><b>The Prophet ï·º had 11 wives over the course of his life.</b> They were:</p>
1"),o("<ol><li>Khadijah bint Khuwaylid</li><li>Sawdah bint Zamâah</li><li>Aâishah bint Abi Bakr</li><li>Hafsah bint Umar</li><li>Zaynab bint Khuzaymah</li><li>Umm Salamah bint Abi Umayyah</li><li>Juwayriyah bint al-Harith</li><li>Zaynab bint Jahsh</li><li>Umm Habibah bint Abi Sufyan</li><li>Maymunah bint al-Harith</li><li>Safiyyah bint Huyayy</li></ol>"),o("<p><b>Prophet Muhammad ï·º first married Khadijah (may God be pleased with her) when he was 25 years old, and she remained his only wife until her death, when he was 50.</b> For several years thereafter, Muhammad ï·º remained unmarried, living with his daughters and sharing the message of Islam. Then, between the ages of 53 and 60, he married his remaining wives. All except Aâishah (may God be pleased with her) were either widows or divorcees. Each had the title of âUmm al-Mumineen,â or âMother of the Believers,â and they were widely respected during and after the Prophetâs life.</p>"),o("<p>Some of the obvious wisdoms behind the Prophet ï·º having numerous wives include:</p>"),o("<ul><li>He supported the widows and divorcees of his community and normalized the practice of marrying them, removing the stigma against both within early Arabian society.</li><li>His wives would go on to narrate the Prophetic tradition to the world. Many of them became respected scholars in their own right, and taught Islamic knowledge to the scholars of the next generation.</li><li>His wives narrated tender, daily moments within their households, revealing greater insight into his and each otherâs beautiful character.</li><li>Each marriage was a practical example of how to deal with many different scenarios within home and family life.</li></ul>"),o("<p><b>There are several reasons the Prophet ï·º married Aâishah.</b> The first is that he was instructed to by divine revelation. He ï·º said to Aâishah: âYou were shown to me twice in a dream. I saw that you were wrapped in a piece of silk, and it was said, âThis is your wife.â I unwrapped her and saw that it was you. I said, âIf this is from Allah, it will come to passââ [Sahih al-Bukhari #3682].</p>"),o("<p>Secondly, some narrations mention that the Prophet ï·º was impressed with Aâishahâs intelligence and understanding. Later scholars note how Aâishahâs unique intelligence and vast knowledge was pivotal in transmitting Islam to future generations.</p>"),o("<p>Finally, the Prophet ï·º had a great love and respect for Aâishahâs father, Abu Bakr (may God be pleased with him). Abu Bakr was the first man to accept Islam, and he was harshly persecuted for his steadfastness. Their homes were forever connected through this blessed marriage.</p>"),o('<p><b>The age of Aâishah (may God be pleased with her) at the time she married the Prophet ï·º is disputed.</b> <a href="https://yaqeeninstitute.org/read/paper/the-age-of-aisha-ra-rejecting-historical-revisionism-and-modernist-presumptions">Most scholars</a> rely on the related testimony of Aâishah, who stated that she married the Prophet ï·º at the age of 9. (It must be noted that current conceptions of age vary greatly from those of premodern times, and that marriage at younger ages was common throughout history.) Other scholars claim that Aâishah would <a href="https://yaqeeninstitute.org/read/paper/aisha-ra-the-case-for-an-older-age-in-sunni-hadith-scholarship">have been older</a>, closer to 17 years old, based on inferences from historical reports which arguably support that view.</p>'),o('<p><b>No, Christians generally do not believe in Prophet Muhammad ï·º or the Qurâan as authoritative sources of religious guidance.</b> However, unique emphasis on the oneness of God, and how the <a href="https://yaqeeninstitute.org/read/paper/the-qurans-engagement-with-christian-and-jewish-literature">Qurâan engages Christian literature</a>, and particularly how it <a href="https://yaqeeninstitute.org/read/paper/jesus-a-foundation-for-dialogue-between-muslims-and-christians">celebrates Jesus & Mary</a> (peace be upon them), make it no surprise that <a href="https://www.pewresearch.org/short-reads/2018/01/26/the-share-of-americans-who-leave-islam-is-offset-by-those-who-become-muslim/">more people convert to Islamâthe worldâs fastest growing religionâfrom a Christian background</a> than any other faith.</p>'),o("<p><b>No, Jews generally do not believe in Prophet Muhammad ï·º or the Qurâan, nor Jesus (peace be upon him) and the Bible, as authoritative sources of religious guidance.</b> However, during the Prophetâs ï·º life and until today, many followers of Judaism and ethnic Jews have been inspired to become Islam due to the pure monotheism of the Qurâan, and its veneration of Moses (peace be upon him).</p>"),o("<p><b>There is no explicit mention of Muhammad in todayâs Bible, although the Qurâan does affirm that Jesus Christ (peace be upon him) gave the world glad tidings of Muhammad being the final messenger of God (Quran, 61:6).</b></p>"),o("<p>Some biblical scholars today also identify passages of the Torah and Gospels as allusions to Muhammad, theorizing that no better candidate fits the descriptions prophesied in the Bible about the final anticipated bearer of divine truths to humanity.</p>"),o('<p>See: <a href="https://yaqeeninstitute.org/read/paper/an-ethical-and-historical-necessity-the-proofs-of-prophethood-series">An Ethical and Historical Necessity</a> for more on Muhammad in the Bible.</p>'),o('<p><b>The Prophet Muhammad ï·º was consistently described as the most handsome of all people, and as always beaming with a radiant smile despite his difficult circumstances and unmatched concern for everyone.</b> While the texts of Islam consider it part of honoring the legacy of Muhammad ï·º to never draw an image of him, both his <a href="https://yaqeeninstitute.org/watch/series/meeting-muhammad-a-ramadan-series/his-appearance-episode-1-meeting-muhammad">physical appearance</a>
1 and <a href="https://yaqeeninstitute.org/read/paper/the-character-of-prophet-muhammad-how-his-noble-qualities-and-personality-are-proof-of-his-prophethood">ethical qualities</a> remain preserved and documented in finer detail than any other person in history.</p>'),o('<p><b>Yes, Muhammad ï·º </b><a href="https://yaqeeninstitute.org/watch/series/proofs-of-prophethood/possible-and-provable-miracles-the-prophets-miracles"><b>performed many miracles</b></a><b>.</b> The Qurʾan mentions several that were witnessed by his Companions. These included the <a href="https://yaqeeninstitute.org/watch/series/proofs-of-prophethood/behold-gods-power-the-prophets-miracles">splitting of the moon</a> in half, the night journey and ascension, the weeping tree, the great victory at Badr, and the Qurʾan itself. The Qurʾan and Hadith also mention several more miracles, including the sending of rain at his request, the healing of the sick, and increasing supplies of water and food. All of these miracles were divinely bestowed upon the Prophet ï·º as a sign of his truthfulness.</p>'),o('<p>You can read more about the <a href="https://yaqeeninstitute.org/read/paper/the-physical-miracles-of-prophet-muhammad">miracles of Muhammad ï·º</a> in our e-book: <a href="https://yaqeeninstitute.org/read/books/proofs-of-prophethood">The Final Prophet: Proofs for the Prophethood of Muhammad</a>.</p>'),o("<p><b>The Prophet ï·º left Mecca to establish a new community of believers, as the religious persecution in Mecca had made that impossible.</b> He settled in Yathrib, which later became known as Medina, or the City of the Prophet. This relocation, called the <em>hijrah</em>, was a significant milestone in the history of Islam, and hence the year of the <em>hijrah</em> marks the beginning of the Islamic calendar.</p>"),o('<p><b>The Qurâan is very clear: â</b><a href="https://yaqeeninstitute.org/read/paper/did-islam-spread-by-the-sword-a-critical-look-at-forced-conversions"><b>Let there be no compulsion in religion</b></a><b>, for the truth stands out clearly from falsehoodâ (2:256).</b> Prophet Muhammad ï·º and Muslims after him spread Islam through <em>daâwah</em>, or inviting people to engage with Islamâs persuasive message and appealing way of life. While <a href="https://yaqeeninstitute.org/read/paper/jihad-in-islam-just-war-theory-in-the-quran-and-sunnah-archived">justified</a> and <a href="https://yaqeeninstitute.org/read/paper/war-islam-and-the-sanctity-of-life-non-aggression-in-the-islamic-code-of-combat">ethically constrained</a> violence was at times necessary to establish justice, non-Muslims were not forced or pressured to accept Islam. <a href="https://yaqeeninstitute.org/read/paper/did-islam-spread-by-the-sword-a-critical-look-at-forced-conversions">Rare instances of forced conversion</a> later in Islamic history must be properly contextualized. The spread of Islam across the world is clearly attributable to conversion out of conviction, and has been <a href="https://yaqeeninstitute.org/read/paper/how-islam-spread-throughout-the-world">a complex process</a> facilitated by trade, social influencers, marriage, migration, and other factors.</p>'),o('<p><b>Prophet Muhammad ï·º received the Qurâan, the </b><a href="https://yaqeeninstitute.org/read/paper/the-inimitable-quran-the-revelation-to-prophet-muhammad"><b>miraculous literal Word of God</b></a><b>, gradually over the span of his prophethood.</b> It was communicated to him from the Divine, at times directly and often through the archangel Gabriel. Beginning at 40 years old, revelation continued descending upon the heart of Muhammad ï·º for 23 years until he passed away.</p>'),o("<p><b>Yes, Prophet Muhammad ï·º is a descendent of Prophet Abraham through his son Ishmael.</b> Kedar was the son of Ishmael, to whom the Arabian tribe of Qurasyh all trace back their ancestry. Banu Hashim was a subtribe of Quraysh, and the immediate family into which Prophet Muhammad ï·º was born.</p>"),o("<p><b>Prophet Muhammad ï·º and the earliest Muslims faced incredible brutality and humiliation for choosing Islam.</b> Yet, this ocean of cruelty was never able to drown the compassion, goodwill, and protective concern the Prophetâs ï·º heart contained for friend and foe alike. He consistently exhibited graceful, magnanimous character in the face of enmity and insult.</p>"),o("<p>Even at the height of his power, instead of pursuing vengeful retribution which was normal in his society, he opted to abolish such practices and instead declared to his former persecutors, âThere will be no blame on you today.â</p>"),o('<p>Read more about how the Prophet Muhammad (peace be upon him) responded to insults in our paper: <a href="https://yaqeeninstitute.org/read/paper/how-muhammad-confronted-hate-and-became-the-most-influential-person-in-history">How the Prophet Muhammad ï·º Rose above Enmity and Insult</a>.</p>'),o('<p><b>The Prophet Muhammad ï·º passed away in 632 CE after a final illness marked by a severe fever, in the months following his final Hajj, during which he had delivered his <a href="https://yaqeeninstitute.org/watch/series/originals/the-final-sermon-of-prophet-muhammad-originals">Farewell Sermon</a>.</b> Even in his last days, he continued to think of his community and to ease their worry as his own strength faded. On what proved to be his final morning, the companions saw him draw back the curtain of his room and smile at them while they prayed, and many took it as a sign that he was recovering. He passed away soon after, resting in the lap of Ê¿Aʾisha (rA), having chosen nearness to God, al-rafiq al-aÊ¿la (the highest companion), over remaining in this world.</p>'),o('<p>His death was <a href="https://yaqeeninstitute.org/watch/series/reminders/the-death-of-the-prophet-the-vision-of-ibn-abbas-daily-reminders">the greatest grief the Muslim community had known</a>, and some companions could not accept it at first. It was Abu Bakr (rA) who steadied them, reminding everyone that whoever worshipped Muhammad ï·º should know that he had died, but whoever worshipped God should know that God is ever living and never dies.</p>'),o('<p>Check out <a href="https://yaqeeninstitute.org/watch/series/meeting-muhammad-a-ramadan-series/the-pain-of-his-death-meeting-muhammad-episode-29">Meeting Muhammad ï·º</a>, a series with Dr. Omar Suleiman that recounts his final moments.</p>'),o("<p><b>Yes. The Prophet Muhammad ï·º had seven children.</b> His first wife Khadija (rA) was the mother of six: two sons, al-Qasim and Abdullah, who both died in early childhood, and four daughters, Zaynab, Ruqayya, Umm Kulthum, and Fatima (rA). His seventh child was a son named Ibrahim, born later in Medina to Mariya (rA), who also died as an infant.</p>"),o('<p>All of his children except Fatima (rA) passed away during his lifetime, and their loss weighed on him deeply. When <a href="https://yaqeeninstitute.org/watch/series/meeting-muhammad-a-ramadan-series/when-he-lost-his-child-meeting-muhammad-episode-21">his young son Ibrahim died</a>, he wept openly, saying that the eye sheds tears and the heart grieves, while affirming that he would say nothing except what pleases God.</p>'),o('<p>Check out <a href="https://yaqeeninstitute.org/watch/series/the-firsts/the-beautiful-marriage-of-ali-and-fatima">The First Family</a>, a series exploring the household of the Prophet ï·º.</p>'),o("<p><b>Before revelation began, Muhammad ï·º was known across Mecca as a man of exceptional honesty and integrity.</b> He worked as a merchant and trader, and earlier in life tended sheep. His truthfulness was so widely recognized that his own people gave him the title al-Amin, the Trustworthy. Even those who later opposed him still left the
1ir valuables with him for safekeeping, and when he migrated from Mecca, he instructed Ali (rA) to stay behind specifically to return every deposit to its owner.</p>"),o('<p>This reputation became <a href="https://yaqeeninstitute.org/read/paper/the-character-of-prophet-muhammad-how-his-noble-qualities-and-personality-are-proof-of-his-prophethood">one of the clearest arguments for his prophethood</a>. A man never once caught in a lie among his own people could not credibly be accused of lying about God.</p>'),o('<p>Check out <a href="https://yaqeeninstitute.org/watch/series/proofs-of-prophethood/the-prophets-character-his-honesty">His Honesty</a>, part of the Proofs of Prophethood series.</p>'),o("<p><b>No. Muslims do not worship the Prophet Muhammad ï·º, and he never asked to be worshipped.</b> Worship in Islam is directed to God alone. The Muslim declaration of faith, the <em>shahada</em>, states that there is no god but Allah and that Muhammad ï·º is His messenger, affirming that none is worthy of worship except Him and recognizing Muhammad ï·º as Godâs final prophet rather than a divine figure.</p>"),o('<p>The Prophet ï·º himself taught his followers to center their entire lives on the worship of God alone. This was made unmistakable at his death, when some companions struggled to accept that he had passed away and Abu Bakr (rA) reminded them that whoever worshipped Muhammad ï·º should know he had died, but whoever worshipped God should know that God is ever living. Muslims honor and love the Prophet ï·º as the best of creation, yet <a href="https://yaqeeninstitute.org/read/paper/the-accomplishments-of-prophet-muhammad">that love is expressed by following him, not worshipping him</a>.</p>'),o('<p>Check out <a href="https://yaqeeninstitute.org/what-islam-says-about/basics-of-islam">Basics of Islam</a> for an overview of core Muslim beliefs.</p>'),o('<p><b>When Muslims mention the Prophet Muhammad ï·º, they follow his name with a prayer for Godâs peace and blessings upon him, known as <em>salawat</em>.</b> This is done out of love and reverence, and in response to <a href="https://yaqeeninstitute.org/watch/series/deeper-into-dhikr/the-meaning-of-sending-salawat-upon-the-prophet-episode-7-deeper-into-dhikr">a direct command in the Quran</a> for believers to send blessings upon the Prophet ï·º. It is also a way of honoring the immense sacrifices he made to deliver Godâs message.</p>'),o("<p>The practice is understood to benefit the one who offers it as much as it honors the Prophet ï·º. Muslims believe that God returns the greeting many times over, so that sending blessings upon him becomes a means of having oneâs sins forgiven, being raised in rank, and drawing closer to the final Messenger.</p>"),o('<p>Check out <a href="https://yaqeeninstitute.org/watch/series/deeds-to-habit/sending-blessings-upon-the-prophet-deeds-to-habit">Sending Blessings Upon the Prophet ï·º</a>, a short series on its rewards.</p>'),o('<p><b>The Sunnah refers to the words, actions, and approvals of the Prophet Muhammad ï·º, inspired by God and preserved through reports known as hadith.</b> Alongside the Quran, it is <a href="https://yaqeeninstitute.org/read/paper/are-hadith-necessary">one of the two primary sources of Islam</a>. Where the Quran gives a command, the Sunnah often shows how to put it into practice, which is why Muslims throughout history have looked to the Prophetâs ï·º example to understand and live their faith.</p>'),o("<p>Muslims follow this example because the Quran itself presents the Prophet ï·º as a beautiful model for the believer. Following him is not imitation for its own sake, but a way of drawing nearer to the character he embodied, a man described as a mercy to the worlds. The closer a believer comes to him in worship, dealings, and conduct, the more fully they live the faith he taught.</p>"),o('<p>Check out <a href="https://yaqeeninstitute.org/read/paper/faithful-activism-a-sunnah-framework">Faithful Activism: A Sunnah Framework</a> for what following his example looks like today.</p>'),o('<p><b>No. Muslims believe the Quran is the literal speech of God, revealed to the Prophet Muhammad ï·º, and not composed by him or any other human being.</b> The Quran presents itself in exactly this way, and it <a href="https://yaqeeninstitute.org/read/paper/the-inimitable-quran-the-revelation-to-prophet-muhammad">challenges anyone who doubts its origin</a> to produce something like it, a challenge that has stood unmet.</p>'),o("<p>Several features make the claim that a person authored it difficult to sustain. Muhammad ï·º was unlettered and had spent some forty years occupied with trade and shepherding rather than literary study, yet the Quran is regarded even by leading experts of the Arabic language as a work without equal. It also contains precise references to past events and future realities, together with a consistent theological and legal framework, delivered orally across twenty-three years and often in immediate response to unfolding events. For Muslims, the fact that no one has ever matched it is itself a sign of its divine source.</p>"),o('<p>Check out <a href="https://yaqeeninstitute.org/read/paper/introduction-to-ijaz-al-quran-the-miraculous-nature-of-the-quran">Introduction to IÊ¿jaz al-Qurâan</a> on the miraculous nature of the Quran.</p>'),o('<p><b>Muslims love the Prophet Muhammad ï·º because of who he was and what he did for them.</b> He is regarded as the best of Godâs creation, sent as a mercy to the worlds, and the one through whom people came to know their Creator. His life was marked by <a href="https://yaqeeninstitute.org/watch/series/proofs-of-prophethood/the-prophets-character-his-mercy">extraordinary mercy, forgiveness, and compassion</a>, even toward those who wronged him, and by a constant concern for the well-being of his community, including generations he would never meet.</p>'),o('<p>This love is not only historical sentiment. The Prophet ï·º taught that a believerâs faith is not complete until they love him more than they love themselves, a love shown by following his example and continuing his impact in the world. His companions loved him enough to <a href="https://yaqeeninstitute.org/read/paper/the-accomplishments-of-prophet-muhammad">shield him with their own bodies in battle</a>, and centuries later he remains the most admired and imitated figure in the lives of Muslims.</p>'),o('<p>Check out <a href="https://yaqeeninstitute.org/watch/lecture/to-love-the-prophet-more-than-yourself">To Love the Prophet ï·º More Than Yourself</a> with Dr. Omar Suleiman.</p>'),o("<p><b>He was both. The Prophet Muhammad ï·º began his mission in Mecca purely as a religious teacher, calling people to the worship of one God.</b> After he and his followers endured years of persecution, he migrated to the city of Medina, where he was received as its leader and took on political authority alongside his Prophetic role.</p>"),o('<p>What makes him rare in history is that he <a href="https://yaqeeninstitute.org/read/paper/the-accomplishments-of-prophet-muhammad">excelled in both spheres at once</a>, filling the roles of spiritual leader, head of state, general, diplomat, educator, and family man in a single lifetime. In Medina he built a functioning community founded on
1justice and human dignity, and by the time he died his authority extended across much of Arabia. For Muslims this is no contradiction. His leadership in public life was an extension of the same message of mercy and justice he preached, showing how faith could shape not only private belief but the ordering of an entire society.</p>'),o('<p>Check out the <a href="https://yaqeeninstitute.org/series/proofs-of-prophethood">Proofs of Prophethood</a> series on his life and legacy.</p>'),o('<p><b>The opposition Muhammad ï·º faced was never really about his honesty.</b> His own tribe, the Quraysh, had trusted him for decades as al-Amin, the Trustworthy, and <a href="https://yaqeeninstitute.org/read/paper/the-character-of-prophet-muhammad-how-his-noble-qualities-and-personality-are-proof-of-his-prophethood">continued to leave their valuables in his care</a> even while they fought him. What they rejected was not the man but his message and what it asked of them.</p>'),o('<p>His call to worship one God alone struck at the idols their religious and social life was built around, and at the inherited traditions and ancestral pride they were unwilling to abandon. It also <a href="https://yaqeeninstitute.org/read/paper/the-accomplishments-of-prophet-muhammad">placed the powerful and the weak on equal footing before God</a>, unsettling an elite whose standing rested on the very hierarchy he was dismantling. As his following grew and their attempts to silence him failed, their frustration hardened into open persecution: mockery, a years-long boycott that starved his clan, physical assault, and finally exile. Through all of it, he refused to retaliate, and even prayed for the guidance of those who harmed him.</p>'),o('<p>Check out <a href="https://yaqeeninstitute.org/read/paper/how-muhammad-confronted-hate-and-became-the-most-influential-person-in-history">How Muhammad ï·º Confronted Hate and Became the Most Influential Person in History</a> for how he responded to his persecutors.</p>'),a(24519),a(8421);let c=`${i.C1}${i.pq?"wp/v2/pillar/":"api/v1/cached/wpv2pillar/"}`,d=`${i.C1}${i.pq?"wp/v2/section/":"api/v1/cached/wpv2section/"}`,h=[9356,9312,9320,9298,4505,9327],u=async e=>{let t=await (0,n.bX)();if(t&&e&&(t=t.filter(t=>e.split(",").includes(t.slug))),t)return t;let a=`${d}?_fields=id,slug,sections${e?`&slug=${e}`:""}`,r=await (0,i.wq)(a);return Array.isArray(r)?r:[]},m=async e=>{if(!e||0===e.length)return[];let t=[];for(let a of e)if(h.includes(a)){let e=await y(a);if(!e||0===e.length)continue;t.push(e[0])}else t.push(a);let a=(0,s.Am)(t).map(e=>(0,r.eA)(`${e}`,{excludeContent:!0}));return a.length===a.filter(Boolean).length?a:await (0,i.wq)(`${i.t0}?_fields=id,title,slug,content_type,contentType,topic,authors,images,better_featured_image,video_url,featured_media,series,excerpt,seo&include=${e.join(",")}&test=1`)||[]},p=async e=>Promise.all(e.map(async e=>{let t=await (0,i.wq)(`${c}${e}?_fields=id,slug,name`);return{id:e,slug:`what-islam-says-about/${t.slug}`,name:t.name}})),g=async e=>Promise.all(e.map(async e=>{let t=await (0,i.wq)(`${i.ke}${e}?_fields=id,slug,name`);return{id:e,slug:`tag/${t.slug}`,name:t.name}})),f=async e=>Promise.all(e.map(async e=>{let t=await (0,i.wq)(`${i.dV}${e}?_fields=id,slug,name,parent`),a=null;return 0!==t.parent&&(a=await (0,i.wq)(`${i.dV}${t.parent}?_fields=id,slug,name`)),{id:e,slug:`read/${a?`${a.slug}/`:""}${t.slug}`,name:t.name}})),x=async e=>Promise.all(e?null==e?void 0:e.map(async e=>{let t=`${i.T1}${e}?_fields=id,slug,name`,a=await (0,i.wq)(t);return{id:e,slug:`series/${a.slug}`,name:a.name}}):[]),y=async e=>{let t={9298:30478};if(t[e])return[t[e]];let a=i.pq?`${i.t0}?_fields=id&series=${e}`:`${i.C1}api/v1/cached/wpv2posts/?_fields=id&series=${e}`,r=await (0,i.wq)(a);return r?r.map(e=>e.id):[]}},6862:(e,t,a)=>{"use strict";a.d(t,{GT:()=>P.G,Gd:()=>i.Gd,pi:()=>d,U1:()=>i.U1,Yh:()=>i.Yh,Cz:()=>i.Cz,KD:()=>i.KD,ro:()=>k,fv:()=>A,yS:()=>C,yr:()=>I,C4:()=>i.C4,xw:()=>i.xw});var i=a(5327),r=a(69174),n=a(37876),s=a(66284),l=a(25554),o=a(1678);function c(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,i)}return a}let d=e=>{let t=function(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};
1t%2?c(Object(a),!0).forEach(function(t){(0,s.A)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):c(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}({clickAnalytics:o.DB},e);return(0,l._)(t),null};var h=a(59860),u=a(18012),m=a(97471),p=a(52030),g=a(44772),f=a.n(g),x=a(81475),y=a(67579),b=a(32738);let v=e=>{let t=e.value.split(" > "),a=["Infographic","Curriculum"];return a.includes(t[0])||a.includes(null==t?void 0:t[1])},w=e=>{var t,a,i;let{hit:r,trackSearchCallback:s}=e,{items:l}=(0,p.d)();if(!r)return null;let o=l.find(e=>"contentTypes.lvl0"===e.label),c=(0,x.tF)(r);if(!c)return null;let d=!!(null!=o&&null!=(t=o.refinements)&&t.find(v)),h=null==(a=r.contentTypes)||null==(a=a.lvl0)?void 0:a[1],u=null==(i=r.authors)?void 0:i.filter(Boolean);return(0,n.jsx)("div",{className:"xl:mb-10 mb-4",children:(0,n.jsx)(y.Card,{imgSrc:d&&c.thumbnailVert?c.thumbnailVert:c.thumbnail,title:c.title,titleSize:"text-xs",category:h,postLink:(0,b.lr)(c),authors:u,infographic:d,isSearch:!0,prefetch:!1,trackSearchCallback:()=>{s(r)}})})},j=["queryLength"],k=e=>{var t;let{queryLength:a=0}=e,i=(0,h.A)(e,j),{isLastPage:s,showMore:l,showPrevious:c,isFirstPage:d,currentPageHits:g}=(0,m.q)(i),{items:x}=(0,p.d)();if(!g||0===g.length)return null;let y=x.find(e=>"contentTypes.lvl0"===e.label),b=!!(null!=y&&null!=(t=y.refinements)&&t.find(e=>{var t;return null==(t=e.label)?void 0:t.startsWith("Infographic")})),v=e=>{var t;e&&((0,u.Mj)({resultType:(null==(t=e.contentTypes)||null==(t=t.lvl0)||null==(t=t[1])?void 0:t.toLowerCase())||"unknown",position:e.__position,queryLength:a}),"number"==typeof e.__position&&e.__queryID&&(console.debug("clickedObjectIDsAfterSearch",e),f()("clickedObjectIDsAfterSearch",{eventName:"clickedObjectIDsAfterSearch",index:o.VX,objectIDs:[e.objectID],positions:[e.__position],queryID:e.__queryID})))};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("ul",{role:"list",className:`grid grid-cols-2 ${b?"xl:grid-cols-4":"xl:grid-cols-5"} gap-5 `,children:g.map(e=>(0,n.jsx)("li",{children:(0,n.jsx)(w,{hit:e,trackSearchCallback:v})},e.objectID))}),(0,n.jsx)("div",{className:"flex flex-col py-10",children:(0,n.jsx)("div",{className:"w-full",children:(0,n.jsxs)("div",{className:"flex justify-between items-center mt-8 w-full",children:[(0,n.jsx)(r.$n,{className:"border border-grey-300 rounded-lg shadow-sm text-grey-700 font-bold text-lg py-2 px-8 bg-white",isDisabled:d,onPress:c,children:(0,n.jsx)(r.EY,{weight:"font-bold",color:"text-grey-700",fontSize:"text-lg",children:"Previous"})}),(0,n.jsx)(r.$n,{className:"border border-grey-300 rounded-lg shadow-sm text-grey-700 font-bold text-lg py-2 px-8 bg-white",isDisabled:s,onPress:l,children:(0,n.jsx)(r.EY,{weight:"font-bold",color:"text-grey-700",fontSize:"text-lg",children:"Next"})})]})})})]})};var N=a(56478),_=a(24330),S=a(78049);let A=e=>{let{nbHits:t,query:a}=(0,S.Z)(_.A,e),{scopedResults:i}=(0,N.J)(),s=i.find(e=>"prod_videos"===e.indexId),l="";if(s){var o;let e=(null==s||null==(o=s.results)?void 0:o.nbHits)||0;l=` & ${e} transcripts`}return a.length>0&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{role:"status",children:[t," posts",l," results for â",(0,n.jsx)("span",{className:"text-grey-900 font-semibold",children:a}),"â"]}),(0,n.jsxs)("div",{className:"lg:flex lg:space-x-1 mt-2",children:[(0,n.jsx)(r.EY,{as:"p",color:"text-grey-800",children:"Canât find what you were looking for?"}),(0,n.jsx)(r.EY,{as:"p",color:"text-carrot-500",weight:"font-bold",children:(0,n.jsx)(r.qh,{href:"/topics",children:"Try our A-Z topic list"})})]})]})},C=e=>{let{setFilter:t}=e,{items:a}=(0,p.d)(e),i=["topics","authors","dateYear"],s=a.filter(e=>i.find(t=>e.label.includes(t))).length>0;return(0,n.jsx)(r.$n,{className:`flex justify-center items-center h-full w-full ${s?"bg-grey-900":"bg-grey-100"} text-white font-bold p-3 leading-tight`,"aria-label":"Open Filter",onPress:t,children:(0,n.jsxs)("svg",{className:`fill-current ${s?"text-white":"text-grey-700"} w-4 h-4`,fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",children:[(0,n.jsx)("path",{d:"M3 7h10v2H3V7zM0 3h16v2H0V3zm6 8h4v2H6v-2z"}),(0,n.jsx)("defs",{children:(0,n.jsx)("path",{fill:"#fff",d:"M0 0h16v16H0z"})})]})})};var P=a(1216);let T=e=>{let{snippets:t,path:a}=e;return(0,n.jsx)("div",{className:"text-xs",children:t.slice(0,3).map((e,t)=>{let[i,s]=e;return(0,n.jsxs)("div",{children:[(0,n.jsx)("q",{dangerouslySetInnerHTML:{__html:i}}),(0,n.jsx)(r.EY,{color:"text-blue-500",fontFamily:"font-mono",fontSize:"text-xs",children:(0,n.jsxs)("a",{href:`${a}?t=${s}`,target:"_blank",rel:"noreferrer",children:["[",(e=>{let t=new Date(0);t.setSeconds(e);let a=e>=3600;return t.toISOString().substring(a?11:14,19)})(s),"]"]})})]},t)})})},O=e=>{var t,a,i,r;let{hit:s,trackSearchCallback:l}=e;if(!s)return null;let o=null==(t=s._snippetResult)?void 0:t.segments;if(!o)return null;
1let c=null==(a=s.topics)||null==(a=a.lvl0)?void 0:a[0],d=null==(i=s.topics)||null==(i=i.lvl1)||null==(i=i[0])?void 0:i.split(" > ")[1],h=o.map((e,t)=>"none"===e.text.matchLevel?null:[e.text.value.split("<mark>").join('<span class="font-bold italic">').split("</mark>").join("</span>").trim(),parseInt(s.segments[t].start)]).filter(Boolean);if(!h.length)return null;let u=Math.round(h[0][1]);return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{className:"xl:mb-10 flex-none mb-4 inline-block xl:w-1/5 lg:w-1/4 md:w-1/3 w-1/2",children:[(0,n.jsx)(y.Card,{imgSrc:s.thumbnail,title:s.title,category:d||c,categoryLink:`${s.path}?t=${u}`,postLink:`${s.path}?t=${u}`,authors:null==(r=s.authors)?void 0:r.filter(Boolean),isSearch:!0,prefetch:!1,trackSearchCallback:()=>{l(s)}}),(0,n.jsx)("div",{className:"mt-6 mb-2",children:(0,n.jsx)("div",{className:"border border-carrot-500 w-1/4 h-0"})}),(0,n.jsx)(T,{path:s.path,snippets:h})]})})};var E=a(13811);let I=e=>{let{hits:t,results:{index:a}}=(0,E.u)(e),i=e=>{f()("clickedObjectIDsAfterSearch",{eventName:"clickedObjectIDsAfterSearch",index:a,objectIDs:[e.objectID],positions:[e.__position],queryID:e.__queryID})};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(d,{hitsPerPage:10}),(0,n.jsx)("div",{className:"flex flex-nowrap gap-5",children:t.slice(0,10).map(e=>(0,n.jsx)(O,{hit:e,trackSearchCallback:i},e.objectID))})]})}},8421:(e,t,a)=>{"use strict";a(14633)},8453:(e,t,a)=>{"use strict";a.d(t,{A:()=>h});var i=a(66284),r=a(14232),n=a(18125),s=a(151),l=a(69174),o=a(37876);function c(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,i)}return a}function d(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?c(Object(a),!0).forEach(function(t){(0,i.A)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):c(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}let h=e=>{let{title:t,content:a,defaultOpen:i,onClick:c,openState:h=!0,chevronClassName:u}=e,{0:m,1:p}=(0,r.useState)(i||!1),{pressProps:g}=(0,s.dD)({onPress:e=>{c&&c(e),p(!m)}}),f=(0,r.useRef)(!0);(0,r.useEffect)(()=>{if(f.current){f.current=!1;return}c&&p(h)},[h]);let x=m&&h,y=(0,r.useRef)(null);return(0,r.useEffect)(()=>{let e=y.current;e&&e.querySelectorAll("a[href], button, input, select, textarea, [tabindex]").forEach(e=>{x?e.removeAttribute("tabindex"):e.setAttribute("tabindex","-1")})},[x,a]),(0,o.jsxs)("div",{className:"mb-2",children:[(0,o.jsx)("div",{className:"header",children:(0,o.jsx)("div",d(d({},g),{},{className:"cursor-pointer",children:(0,o.jsxs)("div",{className:"flex justify-between items-center",children:[(0,o.jsx)("div",{className:"w-full",children:(0,o.jsx)(l.EY,{color:m&&h?"text-y-black":"text-grey-700 hover:text-y-black",weight:"font-semibold",fontSize:"text-xl",children:t})}),(0,o.jsx)("div",{className:"w-4",children:m&&h?(0,o.jsx)(n.g,{icon:["far","chevron-up"],className:u||"text-y-black",size:"sm"}):(0,o.jsx)(n.g,{icon:["far","chevron-down"],className:u||"text-grey-700 hover:text-y-black",size:"sm"})})]})}))}),(0,o.jsx)("div",d(d({ref:y,className:`content${x?"":" max-h-0 overflow-hidden pointer-events-none"}`,"aria-hidden":!x},x?{}:{inert:""}),{},{children:a}))]})}},8465:(e,t,a)=>{"use strict";a.d(t,{Ns:()=>n.N,m7:()=>s,Tk:()=>l,Z:()=>r});let i=["AE","AF","AG","AO","AW","BF","BI","BJ","BM","BO","BS","BW","CD","CF","CG","CI","CK","CM","CW","DJ","DM","ER","FJ","GA","GD","GH","GM","GN","GQ","GW","GY","HK","HN","IE","IQ","JM","KI","KM","KN","KP","LC","LR","LY","ML","MM","MR","MW","NA","NR","NU","PA","PS","QA","RW","SB","SC","SL","SO","SR","SS","ST","SY","TD","TG","TK","TL","TO","TV","TZ","UG","VU","YE","ZW"],r=e=>!!e&&i.includes(e.toUpperCase());var n=a(88122);let s=[{countryCode:"AF",currencyCode:"AFN"},{countryCode:"AL",currencyCode:"ALL"},{countryCode:"DZ",currencyCode:"DZD"},{countryCode:"AS",currencyCode:"USD"},{countryCode:"AD",currencyCode:"EUR"},{countryCode:"AO",currencyCode:"AOA"},{countryCode:"AI",currencyCode:"XCD"},{countryCode:"AQ",currencyCode:""},{countryCode:"AG",currencyCode:"XCD"},{countryCode:"AR",currencyCode:"ARS"},{countryCode:"AM",currencyCode:"AMD"},{countryCode:"AW",currencyCode:"AWG"}
1,{countryCode:"AU",currencyCode:"AUD"},{countryCode:"AT",currencyCode:"EUR"},{countryCode:"AZ",currencyCode:"AZM"},{countryCode:"BS",currencyCode:"BSD"},{countryCode:"BH",currencyCode:"BHD"},{countryCode:"BD",currencyCode:"BDT"},{countryCode:"BB",currencyCode:"BBD"},{countryCode:"BY",currencyCode:"BYR"},{countryCode:"BE",currencyCode:"EUR"},{countryCode:"BZ",currencyCode:"BZD"},{countryCode:"BJ",currencyCode:"XOF"},{countryCode:"BM",currencyCode:"BMD"},{countryCode:"BT",currencyCode:"INR"},{countryCode:"BT",currencyCode:"BTN"},{countryCode:"BO",currencyCode:"BOB"},{countryCode:"BO",currencyCode:"BOV"},{countryCode:"BA",currencyCode:"BAM"},{countryCode:"BW",currencyCode:"BWP"},{countryCode:"BV",currencyCode:"NOK"},{countryCode:"BR",currencyCode:"BRL"},{countryCode:"IO",currencyCode:"USD"},{countryCode:"BN",currencyCode:"BND"},{countryCode:"BG",currencyCode:"BGN"},{countryCode:"BF",currencyCode:"XOF"},{countryCode:"BI",currencyCode:"BIF"},{countryCode:"KH",currencyCode:"KHR"},{countryCode:"CM",currencyCode:"XAF"},{countryCode:"CA",currencyCode:"CAD"},{countryCode:"CV",currencyCode:"CVE"},{countryCode:"KY",currencyCode:"KYD"},{countryCode:"CF",currencyCode:"XAF"},{countryCode:"TD",currencyCode:"XAF"},{countryCode:"CL",currencyCode:"CLP"},{countryCode:"CL",currencyCode:"CLF"},{countryCode:"CN",currencyCode:"CNY"},{countryCode:"CX",currencyCode:"AUD"},{countryCode:"CC",currencyCode:"AUD"},{countryCode:"CO",currencyCode:"COP"},{countryCode:"CO",currencyCode:"COU"},{countryCode:"KM",currencyCode:"KMF"},{countryCode:"CG",currencyCode:"XAF"},{countryCode:"CD",currencyCode:"CDF"},{countryCode:"CK",currencyCode:"NZD"},{countryCode:"CR",currencyCode:"CRC"},{countryCode:"CI",currencyCode:"XOF"},{countryCode:"HR",currencyCode:"EUR"},{countryCode:"CU",currencyCode:"CUP"},{countryCode:"CY",currencyCode:"CYP"},{countryCode:"CZ",currencyCode:"CZK"},{countryCode:"DK",currencyCode:"DKK"},{countryCode:"DJ",currencyCode:"DJF"},{countryCode:"DM",currencyCode:"XCD"},{countryCode:"DO",currencyCode:"DOP"},{countryCode:"EC",currencyCode:"USD"},{countryCode:"EG",currencyCode:"EGP"},{countryCode:"SV",currencyCode:"SVC"},{countryCode:"SV",currencyCode:"USD"},{countryCode:"GQ",currencyCode:"XAF"},{countryCode:"ER",currencyCode:"ERN"},{countryCode:"EE",currencyCode:"EEK"},{countryCode:"ET",currencyCode:"ETB"},{countryCode:"FK",currencyCode:"FKP"},{countryCode:"FO",currencyCode:"DKK"},{countryCode:"FJ",currencyCode:"FJD"},{countryCode:"FI",currencyCode:"EUR"},{countryCode:"FR",currencyCode:"EUR"},{countryCode:"GF",currencyCode:"EUR"},{countryCode:"PF",currencyCode:"XPF"},{countryCode:"TF",currencyCode:"EUR"},{countryCode:"GA",currencyCode:"XAF"},{countryCode:"GM",currencyCode:"GMD"},{countryCode:"GE",currencyCode:"GEL"},{countryCode:"DE",currencyCode:"EUR"},{countryCode:"GH",currencyCode:"GHC"},{countryCode:"GI",currencyCode:"GIP"},{countryCode:"GR",currencyCode:"EUR"},{countryCode:"GL",currencyCode:"DKK"},{countryCode:"GD",currencyCode:"XCD"},{countryCode:"GP",currencyCode:"EUR"},{countryCode:"GU",currencyCode:"USD"},{countryCode:"GT",currencyCode:"GTQ"},{countryCode:"GN",currencyCode:"GNF"},{countryCode:"GW",currencyCode:"GWP"},{countryCode:"GW",currencyCode:"XOF"},{countryCode:"GY",currencyCode:"GYD"},{countryCode:"HT",currencyCode:"HTG"},{countryCode:"HT",currencyCode:"USD"},{countryCode:"HM",currencyCode:"AUD"},{countryCode:"VA",currencyCode:"EUR"},{countryCode:"HN",currencyCode:"HNL"},{countryCode:"HK",currencyCode:"HKD"},{countryCode:"HU",currencyCode:"HUF"},{countryCode:"IS",currencyCode:"ISK"},{countryCode:"IN",currencyCode:"INR"},{countryCode:"ID",currencyCode:"IDR"},{countryCode:"IR",currencyCode:"IRR"},{countryCode:"IQ",currencyCode:"IQD"},{countryCode:"IE",currencyCode:"EUR"},{countryCode:"IL",currencyCode:"ILS"},{countryCode:"IT",currencyCode:"EUR"},{countryCode:"JM",currencyCode:"JMD"},{countryCode:"JP",currencyCode:"JPY"},{countryCode:"JO",currencyCode:"JOD"},{countryCode:"KZ",currencyCode:"KZT"},{countryCode:"KE",currencyCode:"KES"},{countryCode:"KI",currencyCode:"AUD"},{countryCode:"KP",currencyCode:"KPW"},{countryCode:"KR",currencyCode:"KRW"},{countryCode:"KW",currencyCode:"KWD"},{countryCode:"KG",currencyCode:"KGS"}
1,{countryCode:"LA",currencyCode:"LAK"},{countryCode:"LV",currencyCode:"LVL"},{countryCode:"LB",currencyCode:"LBP"},{countryCode:"LS",currencyCode:"ZAR"},{countryCode:"LS",currencyCode:"LSL"},{countryCode:"LR",currencyCode:"LRD"},{countryCode:"LY",currencyCode:"LYD"},{countryCode:"LI",currencyCode:"CHF"},{countryCode:"LT",currencyCode:"LTL"},{countryCode:"LU",currencyCode:"EUR"},{countryCode:"MO",currencyCode:"MOP"},{countryCode:"MK",currencyCode:"MKD"},{countryCode:"MG",currencyCode:"MGA"},{countryCode:"MG",currencyCode:"MGF"},{countryCode:"MW",currencyCode:"MWK"},{countryCode:"MY",currencyCode:"MYR"},{countryCode:"MV",currencyCode:"MVR"},{countryCode:"ML",currencyCode:"XOF"},{countryCode:"MT",currencyCode:"MTL"},{countryCode:"MH",currencyCode:"USD"},{countryCode:"MQ",currencyCode:"EUR"},{countryCode:"MR",currencyCode:"MRO"},{countryCode:"MU",currencyCode:"MUR"},{countryCode:"YT",currencyCode:"EUR"},{countryCode:"MX",currencyCode:"MXN"},{countryCode:"MX",currencyCode:"MXV"},{countryCode:"FM",currencyCode:"USD"},{countryCode:"MD",currencyCode:"MDL"},{countryCode:"MC",currencyCode:"EUR"},{countryCode:"MN",currencyCode:"MNT"},{countryCode:"MS",currencyCode:"XCD"},{countryCode:"MA",currencyCode:"MAD"},{countryCode:"MZ",currencyCode:"MZM"},{countryCode:"MM",currencyCode:"MMK"},{countryCode:"NA",currencyCode:"ZAR"},{countryCode:"NA",currencyCode:"NAD"},{countryCode:"NR",currencyCode:"AUD"},{countryCode:"NP",currencyCode:"NPR"},{countryCode:"NL",currencyCode:"EUR"},{countryCode:"AN",currencyCode:"ANG"},{countryCode:"NC",currencyCode:"XPF"},{countryCode:"NZ",currencyCode:"NZD"},{countryCode:"NI",currencyCode:"NIO"},{countryCode:"NE",currencyCode:"XOF"},{countryCode:"NG",currencyCode:"NGN"},{countryCode:"NU",currencyCode:"NZD"},{countryCode:"NF",currencyCode:"AUD"},{countryCode:"MP",currencyCode:"USD"},{countryCode:"NO",currencyCode:"NOK"},{countryCode:"OM",currencyCode:"OMR"},{countryCode:"PK",currencyCode:"PKR"},{countryCode:"PW",currencyCode:"USD"},{countryCode:"PS",currencyCode:""},{countryCode:"PA",currencyCode:"PAB"},{countryCode:"PA",currencyCode:"USD"},{countryCode:"PG",currencyCode:"PGK"},{countryCode:"PY",currencyCode:"PYG"},{countryCode:"PE",currencyCode:"PEN"},{countryCode:"PH",currencyCode:"PHP"},{countryCode:"PN",currencyCode:"NZD"},{countryCode:"PL",currencyCode:"PLN"},{countryCode:"PT",currencyCode:"EUR"},{countryCode:"PR",currencyCode:"USD"},{countryCode:"QA",currencyCode:"QAR"},{countryCode:"RE",currencyCode:"EUR"},{countryCode:"RO",currencyCode:"ROL"},{countryCode:"RU",currencyCode:"RUB"},{countryCode:"RW",currencyCode:"RWF"},{countryCode:"SH",currencyCode:"SHP"},{countryCode:"KN",currencyCode:"XCD"},{countryCode:"LC",currencyCode:"XCD"},{countryCode:"PM",currencyCode:"EUR"},{countryCode:"VC",currencyCode:"XCD"},{countryCode:"WS",currencyCode:"WST"},{countryCode:"SM",currencyCode:"EUR"},{countryCode:"ST",currencyCode:"STD"},{countryCode:"SA",currencyCode:"SAR"},{countryCode:"SN",currencyCode:"XOF"},{countryCode:"CS",currencyCode:"EUR"},{countryCode:"CS",currencyCode:"CSD"},{countryCode:"SC",currencyCode:"SCR"},{countryCode:"SL",currencyCode:"SLL"},{countryCode:"SG",currencyCode:"SGD"},{countryCode:"SK",currencyCode:"SKK"},{countryCode:"SI",currencyCode:"SIT"},{countryCode:"SB",currencyCode:"SBD"},{countryCode:"SO",currencyCode:"SOS"},{countryCode:"ZA",currencyCode:"ZAR"},{countryCode:"GS",currencyCode:""},{countryCode:"ES",currencyCode:"EUR"},{countryCode:"LK",currencyCode:"LKR"},{countryCode:"SD",currencyCode:"SDD"},{countryCode:"SR",currencyCode:"SRD"},{countryCode:"SJ",currencyCode:"NOK"},{countryCode:"SZ",currencyCode:"SZL"},{countryCode:"SE",currencyCode:"SEK"},{countryCode:"CH",currencyCode:"CHF"},{countryCode:"SY",currencyCode:"SYP"},{countryCode:"TW",currencyCode:"TWD"},{countryCode:"TJ",currencyCode:"TJS"},{countryCode:"TZ",currencyCode:"TZS"},{countryCode:"TH",currencyCode:"THB"},{countryCode:"TL",currencyCode:"USD"},{countryCode:"TG",currencyCode:"XOF"},{countryCode:"TK",currencyCode:"NZD"},{countryCode:"TO",currencyCode:"TOP"},{countryCode:"TT",currencyCode:"TTD"},{countryCode:"TN",currencyCode:"TND"},{countryCode:"TR",currencyCode:"TRL"},{countryCode:"TM",currencyCode:"TMM"},{countryCode:"TC",currencyCode:"USD"}
1,{countryCode:"TV",currencyCode:"AUD"},{countryCode:"UG",currencyCode:"UGX"},{countryCode:"UA",currencyCode:"UAH"},{countryCode:"AE",currencyCode:"AED"},{countryCode:"GB",currencyCode:"GBP"},{countryCode:"UK",currencyCode:"GBP"},{countryCode:"US",currencyCode:"USD"},{countryCode:"US",currencyCode:"USS"},{countryCode:"US",currencyCode:"USN"},{countryCode:"UM",currencyCode:"USD"},{countryCode:"UY",currencyCode:"UYU"},{countryCode:"UZ",currencyCode:"UZS"},{countryCode:"VU",currencyCode:"VUV"},{countryCode:"VE",currencyCode:"VEB"},{countryCode:"VN",currencyCode:"VND"},{countryCode:"VG",currencyCode:"USD"},{countryCode:"VI",currencyCode:"USD"},{countryCode:"WF",currencyCode:"XPF"},{countryCode:"EH",currencyCode:"MAD"},{countryCode:"YE",currencyCode:"YER"},{countryCode:"ZM",currencyCode:"ZMK"},{countryCode:"ZW",currencyCode:"ZWD"}],l=[{name:"United States",abbreviation:"US",states:[{name:"Alabama",abbreviation:"AL"},{name:"Alaska",abbreviation:"AK"},{name:"American Samoa",abbreviation:"AS"},{name:"Arizona",abbreviation:"AZ"},{name:"Arkansas",abbreviation:"AR"},{name:"California",abbreviation:"CA"},{name:"Colorado",abbreviation:"CO"},{name:"Connecticut",abbreviation:"CT"},{name:"Delaware",abbreviation:"DE"},{name:"District Of Columbia",abbreviation:"DC"},{name:"Federated States Of Micronesia",abbreviation:"FM"},{name:"Florida",abbreviation:"FL"},{name:"Georgia",abbreviation:"GA"},{name:"Guam",abbreviation:"GU"},{name:"Hawaii",abbreviation:"HI"},{name:"Idaho",abbreviation:"ID"},{name:"Illinois",abbreviation:"IL"},{name:"Indiana",abbreviation:"IN"},{name:"Iowa",abbreviation:"IA"},{name:"Kansas",abbreviation:"KS"},{name:"Kentucky",abbreviation:"KY"},{name:"Louisiana",abbreviation:"LA"},{name:"Maine",abbreviation:"ME"},{name:"Marshall Islands",abbreviation:"MH"},{name:"Maryland",abbreviation:"MD"},{name:"Massachusetts",abbreviation:"MA"},{name:"Michigan",abbreviation:"MI"},{name:"Minnesota",abbreviation:"MN"},{name:"Mississippi",abbreviation:"MS"},{name:"Missouri",abbreviation:"MO"},{name:"Montana",abbreviation:"MT"},{name:"Nebraska",abbreviation:"NE"},{name:"Nevada",abbreviation:"NV"},{name:"New Hampshire",abbreviation:"NH"},{name:"New Jersey",abbreviation:"NJ"},{name:"New Mexico",abbreviation:"NM"},{name:"New York",abbreviation:"NY"},{name:"North Carolina",abbreviation:"NC"},{name:"North Dakota",abbreviation:"ND"},{name:"Northern Mariana Islands",abbreviation:"MP"},{name:"Ohio",abbreviation:"OH"},{name:"Oklahoma",abbreviation:"OK"},{name:"Oregon",abbreviation:"OR"},{name:"Palau",abbreviation:"PW"},{name:"Pennsylvania",abbreviation:"PA"},{name:"Puerto Rico",abbreviation:"PR"},{name:"Rhode Island",abbreviation:"RI"},{name:"South Carolina",abbreviation:"SC"},{name:"South Dakota",abbreviation:"SD"},{name:"Tennessee",abbreviation:"TN"},{name:"Texas",abbreviation:"TX"},{name:"Utah",abbreviation:"UT"},{name:"Vermont",abbreviation:"VT"},{name:"Virgin Islands",abbreviation:"VI"},{name:"Virginia",abbreviation:"VA"},{name:"Washington",abbreviation:"WA"},{name:"West Virginia",abbreviation:"WV"},{name:"Wisconsin",abbreviation:"WI"},{name:"Wyoming",abbreviation:"WY"}]},{name:"Canada",abbreviation:"CA",states:[{name:"Alberta",abbreviation:"AB"},{name:"British Columbia",abbreviation:"BC"},{name:"Manitoba",abbreviation:"MB"},{name:"New Brunswick",abbreviation:"NB"},{name:"Newfoundland and Labrador",abbreviation:"NL"},{name:"Northwest Territories",abbreviation:"NT"},{name:"Nova Scotia",abbreviation:"NS"},{name:"Nunavut",abbreviation:"NU"},{name:"Ontario",abbreviation:"ON"},{name:"Prince Edward Island",abbreviation:"PE"},{name:"Quebec",abbreviation:"QC"},{name:"Saskatchewan",abbreviation:"SK"},{name:"Yukon Territory",abbreviation:"YT"}]}]},8704:(e,t,a)=>{"use strict";a.d(t,{Hm:()=>r,QB:()=>l,sI:()=>s,v$:()=>n});var i=a(89874);let r=[{title:i._.belief,value:"belief",questions:[{name:"s1q1",question:"My belief in angels provides my life with",answers:[{label:"No meaning",value:"1"},{label:"A little meaning",value:"2"},{label:"Some meaning",value:"3"},{label:"Quite a bit of meaning",value:"4"},{label:"A lot of meaning",value:"5"}]},{name:"s1q2",question:"When I am in a difficult position in life, Allahâs help is",answers:[{label:"Never present",value:"1"},{label:"A little present",value:"2"},{label:"Somewhat present",value:"3"},{label:"Quite present",value:"4"},{label:"Always present",value:"5"}
1]},{name:"s1q3",question:"My belief in Islam as the absolute truth isâ¦",answers:[{label:"Not at all certain",value:"1"},{label:"A little certain",value:"2"},{label:"Somewhat certain",value:"3"},{label:"Quite certain",value:"4"},{label:"Absolutely certain",value:"5"}]},{name:"s1q4",question:"My belief in Allah provides my life withâ¦",answers:[{label:"No security",value:"1"},{label:"A little security",value:"2"},{label:"Some security",value:"3"},{label:"Quite a bit of security",value:"4"},{label:"A lot of security",value:"5"}]},{name:"s1q5",question:"Regardless of what happens, following the guidance of Islam isâ¦",answers:[{label:"Not in my best interest",value:"1"},{label:"Rarely in my best interest",value:"2"},{label:"Sometimes in my best interest",value:"3"},{label:"Usually in my best interest",value:"4"},{label:"Always in my best interest",value:"5"}]},{name:"s1q6",question:"How relevant is the Qurâan in your day-to-day life?",answers:[{label:"Not relevant",value:"1"},{label:"A little relevant",value:"2"},{label:"Somewhat relevant",value:"3"},{label:"Quite relevant",value:"4"},{label:"Very relevant",value:"5"}]},{name:"s1q7",question:"How relevant is the life of Prophet Muhammad ï·º (e.g., Sunnah and Seerah) in your day-to-day life?",answers:[{label:"Not relevant",value:"1"},{label:"A little relevant",value:"2"},{label:"Somewhat relevant",value:"3"},{label:"Quite relevant",value:"4"},{label:"Very relevant",value:"5"}]}]},{title:i._.attitude,value:"attitude",questions:[{name:"s2q1",question:"Whether I make money or lose money, I am satisfied with what has been written for me.",answers:[{label:"Does not describe me",value:"1"},{label:"Describes me slightly well",value:"2"},{label:"Describes me moderately well",value:"3"},{label:"Describes me very well",value:"4"},{label:"Describes me extremely well",value:"5"}]},{name:"s2q2",question:"When things happen to me that I don't like, I understand that there may be much good in it.",answers:[{label:"Does not describe me",value:"1"},{label:"Describes me slightly well",value:"2"},{label:"Describes me moderately well",value:"3"},{label:"Describes me very well",value:"4"},{label:"Describes me extremely well",value:"5"}]},{name:"s2q3",question:"Even when I can't control events in my life, I am content with what has been decreed.",answers:[{label:"Does not describe me",value:"1"},{label:"Describes me slightly well",value:"2"},{label:"Describes me moderately well",value:"3"},{label:"Describes me very well",value:"4"},{label:"Describes me extremely well",value:"5"}]},{name:"s2q4",question:"Regardless of what happens in this world, I am at peace knowing Allah is in control.",answers:[{label:"Does not describe me",value:"1"},{label:"Describes me slightly well",value:"2"},{label:"Describes me moderately well",value:"3"},{label:"Describes me very well",value:"4"},{label:"Describes me extremely well",value:"5"}]}]},{title:i._.spiritual_connection,value:"spiritual_connection",questions:[{name:"s3q1",question:"How often do you feel that you are in the presence of Allah?",answers:[{label:"Never",value:"1"},{label:"Rarely",value:"2"},{label:"Sometimes",value:"3"},{label:"Most of the time",value:"4"},{label:"Almost all of the time",value:"5"}]},{name:"s3q2",question:"How focused on Allah do you feel in prayer?",answers:[{label:"Not focused",value:"1"},{label:"A little focused",value:"2"},{label:"Somewhat focused",value:"3"},{label:"Quite focused",value:"4"},{label:"Extremely focused",value:"5"}]},{name:"s3q3",question:"How often do you feel a sense of peace and connection with Allah during prayer?",answers:[{label:"Hardly ever",value:"1"},{label:"Once in a while",value:"2"},{label:"Sometimes",value:"3"},{label:"Quite often",value:"4"},{label:"Regularly",value:"5"}]}]},{title:i._.spiritual_behavior,value:"spiritual_behavior",questions:[{name:"s4q1",question:"How many times a day do you pray (on average)?",answers:[{label:"0",value:"1"},{label:"1",value:"2"},{label:"2 or 3",value:"3"},{label:"4",value:"4"},{label:"5",value:"5"}]},{name:"s4q2",question:"How often do you wake up for Fajr and pray on time?",answers:[{label:"Never",value:"1"},{label:"Rarely",value:"2"},{label:"Sometimes",value:"3"},{label:"Most of the time",value:"4"},{label:"Almost all of the time",value:"5"}
1]},{name:"s4q3",question:"How often do you read the Qurâan?",answers:[{label:"Hardly ever",value:"1"},{label:"At least once a month",value:"2"},{label:"At least once a week",value:"3"},{label:"More than once a week",value:"4"},{label:"Daily",value:"5"}]}]},{title:i._.institution,description:"The following section mentions âeventsâ in your Muslim community. An event is any religious or social gathering that is hosted by members of a local Muslim community in a physical location.<br/>(Examples: <i>halaqahs</i>, community dinners, retreats, Eid festivals, lectures, ice cream socials.)",value:"institution",questions:[{name:"s5q1",question:"How often do you attend events in the Muslim community?",answers:[{label:"Hardly ever",value:"1"},{label:"A few times a year",value:"2"},{label:"At least once a month",value:"3"},{label:"Multiple times a month",value:"4"},{label:"Weekly",value:"5"}]},{name:"s5q2",question:"How important is attending events in the Muslim community to you?",answers:[{label:"Not important",value:"1"},{label:"A little important",value:"2"},{label:"Somewhat important",value:"3"},{label:"Quite important",value:"4"},{label:"Very important",value:"5"}]},{name:"s5q3",question:"How attached do you feel to your local Muslim community?",answers:[{label:"Not at all attached",value:"1"},{label:"A little attached",value:"2"},{label:"Somewhat attached",value:"3"},{label:"Quite attached",value:"4"},{label:"Very attached",value:"5"}]},{name:"s5q4",question:"Being connected to the Muslim community is an important part of who I am. ",answers:[{label:"Does not describe me",value:"1"},{label:"Describes me slightly well",value:"2"},{label:"Describes me moderately well",value:"3"},{label:"Describes me very well",value:"4"},{label:"Describes me extremely well",value:"5"}]},{name:"s5q5",question:"I consider being present in my community an important aspect of my faith.",answers:[{label:"Does not describe me",value:"1"},{label:"Describes me slightly well",value:"2"},{label:"Describes me moderately well",value:"3"},{label:"Describes me very well",value:"4"},{label:"Describes me extremely well",value:"5"}]},{name:"s5q6",question:"How much do you enjoy attending community events?",answers:[{label:"Not at all",value:"1"},{label:"A little",value:"2"},{label:"Somewhat",value:"3"},{label:"Quite a bit",value:"4"},{label:"A lot",value:"5"}]}]},{title:i._.contribution,value:"contribution",questions:[{name:"s6q1",question:"How often do you volunteer for Islamic causes?",answers:[{label:"Never",value:"1"},{label:"Rarely",value:"2"},{label:"Once in a while",value:"3"},{label:"Quite often",value:"4"},{label:"Very often",value:"5"}]},{name:"s6q2",question:"Volunteering is a fundamental part of my life.",answers:[{label:"Does not describe me",value:"1"},{label:"Describes me slightly well",value:"2"},{label:"Describes me moderately well",value:"3"},{label:"Describes me very well",value:"4"},{label:"Describes me extremely well",value:"5"}]},{name:"s6q3",question:"My faith motivates my activism.",answers:[{label:"Does not describe me",value:"1"},{label:"Describes me slightly well",value:"2"},{label:"Describes me moderately well",value:"3"},{label:"Describes me very well",value:"4"},{label:"Describes me extremely well",value:"5"}]},{name:"s6q4",question:"I strive hard to contribute to the well-being of society.",answers:[{label:"Does not describe me",value:"1"},{label:"Describes me slightly well",value:"2"},{label:"Describes me moderately well",value:"3"},{label:"Describes me very well",value:"4"},{label:"Describes me extremely well",value:"5"}]},{name:"s6q5",question:"Islam is the major reason why I engage in activism.",answers:[{label:"Does not describe me",value:"1"},{label:"Describes me slightly well",value:"2"},{label:"Describes me moderately well",value:"3"},{label:"Describes me very well",value:"4"},{label:"Describes me extremely well",value:"5"}]}]}],n=r.length,s=180,l=[{type:i._.belief,description:"The Belief category indicates the importance of the core aspects of faith (iman) in your life. The height of the petal in your portrait reflects the degree to which your beliefs provide you meaning and security, the relevance of the Qurâan and Sunnah in your life, and your level of certainty in Islam.",color:"#5BC7D9"},{type:i._.attitude,description:"Both the Qurâan and Sunnah focus on developing an Islamic attitude of trust, contentment, and satisfaction with the decree of God. This category measures your cognitive and emotional acceptance of what Allah has written for you. ",color:"#F38E1C"},{type:i._.spiritual_behavior,description:"This category evaluates particular behaviors that are intended to bring you a sense of peace and meaning in life. Specifically, this score reflects the frequency with which you engage in prayer and read the Qurâan, both of which are mainstream practices that may indicate how often you attempt to connect with God.",color:"#F16651"},{type:i._.spiritual_connection,description:"This category assesses the quality of your relationship with God. It c
1aptures how aware, focused, and connected you feel to Allah in general and during spiritual practices such as prayer in particular.",color:"#80A9E9"},{type:i._.institution,description:"Institutional connection refers to your involvement in, and connection with, the Muslim community. This score encompasses your feelings and emotional attachment towards the masjid, Islamic centers, and other Muslim institutions, as well as your attendance at community events.",color:"#FFC609"},{type:i._.contribution,description:"This category gauges how frequently you engage in behaviors that seek to benefit others. This includes how often you volunteer and the role that your faith plays in motivating your activism.",color:"#004C9B"}]},10180:(e,t,a)=>{"use strict";a.d(t,{$v:()=>s,Iw:()=>u,MG:()=>c,OP:()=>d,bt:()=>n,yI:()=>h});var i=a(66284);function r(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,i)}return a}let n="data-yqn-root",s=["full","takeaways","summary","faq"],l=["q","a"],o=e=>Number.isInteger(e)&&e>=0,c=e=>{let t=`${e.tab}:${e.section}:${e.block}`;return e.part?`${t}:${e.part}`:t},d=e=>{if(!e)return null;let t=e.split(":");if(t.length<3||t.length>4)return null;let[a,n,c,d]=t;if(!s.includes(a))return null;let h=Number(n),u=Number(c);return o(h)&&o(u)&&(void 0===d||l.includes(d))?function(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?r(Object(a),!0).forEach(function(t){(0,i.A)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):r(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}({tab:a,section:h,block:u},d?{part:d}:{}):null},h=e=>{let t="string"==typeof e?e:c(e);return`[${n}="${t}"]`},u=e=>({[n]:c(e)})},10436:(e,t,a)=>{"use strict";a.d(t,{YR:()=>c,sz:()=>o});var i=a(32008);let r="CmsApiClient";var n=function(e){return e.PRODUCTION="production",e.PREVIEW="preview",e.DEVELOPMENT="development",e.DEMO="demo",e}(n||{});let s=!1;function l(){let e,t="production";switch(t){case n.PRODUCTION:case n.PREVIEW:e="https://cms.yaqeeninstitute.org";break;default:s||(i.A.log("getCmsBaseUrl: Local development environment detected. Using localhost.",{component:r},i.$.INFO),s=!0),e="https://cms.yaqeeninstitute.org"}if(!e&&t===n.PRODUCTION)throw i.A.error("FATAL: CMS Base URL could not be determined for production environment.",{component:r}),Error("CMS Base URL could not be determined for production environment.");if(!e)throw i.A.error("CMS API URL could not be determined for the current environment.",{component:r}),Error("CMS API URL not configured for this environment.");return e}async function o(e){let t=l(),a=`${t}/api/globals/${e}`;try{let t=await fetch(a,{method:"GET",headers:{"Content-Type":"application/json"}});if(!t.ok){let n="Failed to fetch";try{n=await t.text()}catch(e){}throw i.A.error(`Failed to fetch global '${e}'. Status: ${t.status}`,{component:r,status:t.status,errorText:n,slug:e,url:a}),Error(`Failed to fetch global '${e}'. Status: ${t.status}`)}let n=await t.json();return"object"==typeof n&&null!==n&&"globalType"in n&&n.globalType!==e&&i.A.log(`Fetched global '${e}' has mismatched globalType: ${n.globalType}`,{component:r,slug:e,data:n},i.$.WARNING),n}catch(t){throw i.A.error(`Error fetching global '${e}' from ${a}`,{component:r,error:t,slug:e,url:a}),t}}async function c(e,t){let a=l(),n=`${a}/api/${e}/${t}`,s=await fetch(n,{method:"GET",headers:{"Content-Type":"application/json"}});if(!s.ok){let a="Failed to fetch";try{a=await s.text()}catch(e){}throw i.A.error(`Failed to fetch collection item '${e}/${t}'. Status: ${s.status}`,{component:r,status:s.status,errorText:a,slug:e,id:t,url:n}),Error(`Failed to fetch collection item '${e}/${t}'. Status: ${s.status}`)}return await s.json()}},10676:(e,t,a)=>{"use strict";a.d(t,{DI:()=>r});var i=a(57002);let r=e=>{if(!e)return null;let t=[],a=e.find(e=>e.type===i.hZ.Pdf);return a&&t.push(a.url),t[0]||null}},11304:(e,t,a)=>{"use strict";a.d(t,{j:()=>w});var i=a(14232),r=a(54587),n=a.n(r),s=a(9361),l=a(47489),o=a(18012),c=a(38369),d=a(93269),h=a(45541),u=a(65083),m=a(69174),p=a(75261),g=a(86400),f=a(6143),x=a(37876);let y=()=>
1(0,x.jsxs)("div",{className:"bg-jordy-50 py-8 px-4 rounded-lg max-w-md mx-auto animate-pulse",children:[(0,x.jsx)("div",{className:"flex justify-center mb-4",children:(0,x.jsx)("div",{className:"w-10 h-10 bg-gray-300 rounded-full"})}),(0,x.jsx)("div",{className:"h-8 bg-gray-300 rounded mb-4 w-3/4 mx-auto"}),(0,x.jsx)("div",{className:"flex justify-center mb-4",children:(0,x.jsx)("div",{className:"flex gap-x-1",children:[void 0,void 0,void 0,void 0].map((e,t)=>(0,x.jsx)("div",{className:"xl:w-16 w-18 h-2 bg-gray-300 rounded-full"},t))})}),(0,x.jsx)("div",{className:"h-4 bg-gray-300 rounded mb-4 w-1/4 mx-auto"}),(0,x.jsx)("div",{className:"h-10 bg-gray-300 rounded w-full"})]}),b={0:"Improve your religiosity step by step",1:"Keep on going!",2:"Don't stop now!",3:"You're almost there!",4:"Congratulations \uD83C\uDF89"},v=()=>{var e;let{firebaseAuth:t}=(0,u.m9)(),{userInfo:a}=t,r=null==a||null==(e=a.user)?void 0:e.email,{compassPlanPosts:s,isLoading:l}=(0,h.vm)(r),{consumedPosts:d,isLoading:p}=(0,h.N)(r),{generateNewPlan:g}=(0,h.Kv)(),f=(0,i.useMemo)(()=>s.filter(e=>{var t;return null==d||null==(t=d.map(e=>e.post_id))?void 0:t.includes(e)}).length,[s,d]),v=s.length;if(l||p)return(0,x.jsx)(y,{});let w=f===v;return(0,x.jsxs)("div",{className:"bg-jordy-50 py-8 px-4 rounded-lg max-w-md mx-auto",children:[(0,x.jsx)("div",{className:"flex justify-center mb-4",children:(0,x.jsx)(n(),{src:"/static/images/compass_logo.svg",alt:"Compass Logo",width:40,height:40})}),(0,x.jsx)(m.EY,{as:"h2",fontSize:"xl:text-2xl text-xl",weight:"font-extrabold",color:"text-endeavour-500",className:"text-center mb-6",lineHeight:"xl:leading-8 leading-5",children:b[f]}),(0,x.jsx)("div",{className:"flex justify-center mb-2",children:(0,x.jsx)("div",{className:"flex gap-x-1",children:[...Array(s.length)].map((e,t)=>(0,x.jsx)("div",{id:`bar-${t}`,className:`xl:w-24 w-18 h-2 rounded-full ${t<f?"bg-jordy-500":"bg-gray-200"}`},t))})}),(0,x.jsx)("div",{className:"flex justify-center mb-5",children:(0,x.jsxs)(m.EY,{as:"p",color:"text-gray-800",weight:"font-semibold",children:[f,"/",v," completed"]})}),(0,x.jsx)("div",{className:"flex justify-center",children:(0,x.jsx)(m.$n,{className:"bg-carrot-500 text-white font-bold py-2 px-4 rounded hover:bg-carrot-600 transition duration-300",onPress:async()=>{(0,o.$s)("home_spotlight_compass_plan_cta","click",`state: ${w?"generate_new_plan":"see_my_plan"}`),w&&await g(r),c.A.push("/dashboard/compass")},children:(0,x.jsx)(m.EY,{as:"p",color:"text-white",weight:"font-bold",children:w?"Generate new plan":"See my Compass plan"})})})]})},w=e=>{var t,a,r,b,w,j,k,N,_,S;let{variant:A="control"}=e,{0:C,1:P}=(0,i.useState)(null),{0:T,1:O}=(0,i.useState)(null),{0:E,1:I}=(0,i.useState)(!1),{firebaseAuth:D}=(0,u.m9)(),{userInfo:q,initAuth:M}=D,{0:$,1:H}=(0,i.useState)(!0),{consumedPosts:R,isLoading:z}=(0,h.N)((null==q||null==(t=q.user)?void 0:t.email)||null);async function F(e){try{let t=await (0,l.AD)(e);0===t.length?P("TakeQuizCta"):(0,p.KQ)(t)?P(E?"RetakeQuizCta":"PlanCta"):P("PlanCta")}catch(e){console.error("Error fetching survey data:",e)}finally{H(!1)}}(0,i.useEffect)(()=>{R&&I(Object.values(d.R).flat().map(e=>e.postId).filter(Boolean).every(e=>R.includes({post_id:parseInt(e,10)})))},[R]),(0,i.useEffect)(()=>{!async function(){(null==q?void 0:q.authState)!==s.j_.AuthLoading&&(null!=q&&q.user?await F(q.user.uid):(P("TakeQuizCta"),H(!1)))}()},[null==q?void 0:q.authState,null==q?void 0:q.user]),(0,i.useEffect)(()=>{(0,f.Vv)()&&sessionStorage.removeItem(p.vw)},[]),(0,i.useEffect)(()=>{if((null==q?void 0:q.authState)!==s.j_.AuthLoading&&T&&"v1"===A)if(null!=q&&q.user){var e;t(null==(e=q.user)?void 0:e.uid)}else q.authState===s.j_.AuthDismissed&&((0,o.$s)("home_spotlight_compass_auth","click","state: auth_dismissed variant: v1"),c.A.push("/compass"));async function t(e){H(!0);let t=await (0,l.AD)(e);if(0===t.length){(0,o.$s)("home_spotlight_compass_auth","click","state: never_taken_quiz variant: v1"),c.A.push("/compass/quiz");return}if((0,p.KQ)(t))(0,o.$s)("home_spotlight_compass_auth","click","state: taking_quiz_first_time variant: v1"),c.A.push("/compass/quiz");else{var a;
1(0,o.$s)("home_spotlight_compass_auth","click","state: cant_take_quiz_yet variant: v1"),c.A.push(`/compass/result?submissionId=${null==t||null==(a=t[0])?void 0:a.submissionId}`)}H(!1)}},[q.user,q.authState,T,A]);let Y={TakeQuizCta:{icon:"/static/images/icons/compass_question.svg",title:"Where are you in your religious journey?",excerpt:"Our new religiosity assesment can help you visualize your religious portrait and identify opportunities for growth.",cta:{ctaPrimary:{text:"Take Compass quiz",callback:()=>{null!=q&&q.user?((0,o.$s)("home_spotlight_compass_cta_1","click","state: taking_quiz_first_time"),c.A.push("/compass")):"v1"===A?((0,o.$s)("home_spotlight_compass_cta_1","click","state: not_logged_in variant: v1"),M(),O(!0)):"v2"===A?((0,o.$s)("home_spotlight_compass_cta_1","click","state: not_logged_in variant: v2"),(0,f.Vv)()&&sessionStorage.setItem(p.vw,"v2"),c.A.push("/compass")):"control"===A&&((0,o.$s)("home_spotlight_compass_cta_1","click","state: not_logged_in variant: control"),c.A.push("/compass"))}},ctaSecondary:{text:"Read BASIC report",callback:()=>{(0,o.$s)("home_spotlight_compass_cta_2","click","item_name: basic_report"),c.A.push("/read/data/reports/a-holistic-view-of-muslim-religiosity-introducing-basic")}}}},RetakeQuizCta:{icon:"/static/images/icons/compass.svg",title:"Ready to check in?",excerpt:"Retake the religiosity assessment to measure your progress.",cta:{ctaPrimary:{text:"Retake Compass quiz",callback:()=>{(0,o.$s)("home_spotlight_compass_cta_1","click","state: retaking_quiz"),c.A.push("/compass")}},ctaSecondary:{text:"See previous result",callback:()=>{(0,o.$s)("home_spotlight_compass_cta_2","click","item_name: compass_dashboard state: retaking_quiz"),c.A.push("/dashboard/compass")}}}}};return $||(null==q?void 0:q.authState)===s.j_.AuthLoading||null!=q&&q.user&&z?(0,x.jsx)(y,{}):"PlanCta"===C?(0,x.jsx)(v,{}):(0,x.jsx)("div",{id:"donation",children:(0,x.jsxs)("div",{className:"bg-jordy-50 rounded-lg xl:px-2 px-5 xl:py-8 py-4 flex flex-col justify-center items-center",children:[(0,x.jsx)("div",{id:"spotlight-secondary-icon",className:"mb-2",children:(0,x.jsx)(n(),{src:null==Y||null==(a=Y[C])?void 0:a.icon,width:48,height:48,alt:"compass",loader:g.R2})}),(0,x.jsx)("div",{id:"spotlight-secondary-title",className:"mb-1",children:(0,x.jsx)(m.EY,{as:"p",weight:"font-extrabold",color:"text-endeavour-500",fontSize:"text-2xl",lineHeight:"leading-7",letterSpacing:"tracking-[-0.03rem]",className:"text-center",children:null==Y||null==(r=Y[C])?void 0:r.title})}),(0,x.jsx)("div",{id:"spotlight-secondary-excerpt",className:"mb-4",children:(0,x.jsx)(m.EY,{as:"p",fontFamily:"font-source-serif-pro",color:"text-gray-900",fontSize:"text-sm",lineHeight:"leading-relaxed",className:"text-center",children:null==Y||null==(b=Y[C])?void 0:b.excerpt})}),(0,x.jsxs)("div",{id:"spotlight-secondary-cta",className:"flex flex-col xl:flex-row xl:gap-4 gap-3 w-full justify-center",children:[(null==Y||null==(w=Y[C])||null==(w=w.cta)?void 0:w.ctaPrimary)&&(0,x.jsx)(m.$n,{onPress:null==Y||null==(j=Y[C])||null==(j=j.cta)||null==(j=j.ctaPrimary)?void 0:j.callback,className:"inline-flex items-center justify-center bg-carrot-600 hover:bg-carrot-700 px-4 py-3 rounded border border-transparent xl:w-auto w-full",children:(0,x.jsx)(m.EY,{as:"p",color:"text-white",weight:"font-bold",letterSpacing:"tracking-tight-1",lineHeight:"leading-tight",children:null==Y||null==(k=Y[C])||null==(k=k.cta)||null==(k=k.ctaPrimary)?void 0:k.text})}),(null==Y||null==(N=Y[C])||null==(N=N.cta)?void 0:N.ctaSecondary)&&(0,x.jsx)(m.$n,{onPress:null==Y||null==(_=Y[C])||null==(_=_.cta)||null==(_=_.ctaSecondary)?void 0:_.callback,className:"inline-flex items-center justify-center bg-white hover:bg-grey-100 px-4 py-3 rounded border xl:w-auto w-full",children:(0,x.jsx)(m.EY,{as:"p",color:"text-grey-900",weight:"font-bold",letterSpacing:"tracking-tight-1",lineHeight:"leading-tight",children:null==Y||null==(S=Y[C])||null==(S=S.cta)||null==(S=S.ctaSecondary)?void 0:S.text})})]})]})})}},11677:(e,t,a)=>{"use strict";a.d(t,{a:()=>l});var i=a(14232),r=a(43445),n=a(4797),s=a(98591);let l=(e,t)=>
1{var a;let{0:l,1:o}=(0,i.useState)("yaqeeninstitute.org");(0,i.useEffect)(()=>{o((0,n.EW)())},[]);let c=(0,r.$n)(),d=null==c?void 0:c.homepage;if(!d)return null;let h=(0,r.Mn)(),u=(null==h?void 0:h.analyticsName)??(0,r.nm)((0,r.D)()),m=(null==c||null==(a=c.sticky)?void 0:a.trackingCampaign)??u,p=(null==t?void 0:t.placement)??"homepage",g=e=>e?{title:e.label,href:(0,s.Iq)(e.href,{source:l,campaign:m,content:e.analyticsContent.replace(/^homepage-/,`${p}-`)})}:null,f=[g(d.ctaPrimary),g(d.ctaSecondary)].filter(e=>null!==e);return{backgroundImageSrc:d.backgroundImage,foregroundImageSrc:d.foregroundImage,imageAlt:d.tagline,CTAs:f,bannerId:`${e}${u}`}}},12013:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});var i=a(57002);let r=[{src:"/static/images/products/icons/animation.svg",title:"animation",type:i.hZ.Animation},{src:"/static/images/products/icons/academy.svg",title:"academy",type:i.hZ.Academy},{src:"/static/images/products/icons/bts.svg",title:"Behind-the-Scene",type:i.hZ.Bts},{src:"/static/images/products/icons/curriculum.svg",title:"Curriculum",type:i.hZ.Curriculum},{src:"/static/images/products/icons/conversations.svg",title:"conversations",type:i.hZ.Conversation},{src:"/static/images/products/icons/conviction_circles.svg",title:"conviction circle",type:i.hZ.ConvictionCircle},{src:"/static/images/products/icons/infographics.svg",title:"infographics",type:i.hZ.Infographic},{src:"/static/images/products/icons/khutbah.svg",title:"khutbah",type:i.hZ.Khutbah},{src:"/static/images/products/icons/lecture.svg",title:"lecture",type:i.hZ.Lecture},{src:"/static/images/products/icons/papers.svg",title:"paper",type:i.hZ.Publication},{src:"/static/images/products/icons/papers.svg",title:"paper",type:i.hZ.Paper},{src:"/static/images/products/icons/qna.svg",title:"Q & A",type:i.hZ.Qna},{src:"/static/images/products/icons/videos.svg",title:"videos",type:i.hZ.Video},{src:"/static/images/products/icons/videos.svg",title:"webinar",type:i.hZ.Webinar},{src:"/static/images/products/icons/translations.svg",title:"translations-",type:i.hZ.Translations},{src:"/static/images/products/icons/talk_toolkits.svg",title:"talk-toolkits-",type:i.hZ.TalkToolkits},{src:"/static/images/products/icons/podcasts.svg",title:"podcasts",type:i.hZ.Audio},{src:"/static/images/products/icons/basics.svg",title:"basics",type:i.hZ.Basics},{src:"/static/images/products/icons/quiz.svg",title:"quiz",type:i.hZ.Quiz},{src:"/static/images/products/icons/series.svg",title:"Series",type:i.hZ.Series},{src:"/static/images/products/icons/others.svg",title:"Other",type:i.hZ.Other},{src:"/static/images/products/icons/app.svg",title:"App",type:i.hZ.App},{src:"/static/images/products/icons/book.svg",title:"Book",type:i.hZ.Book}]},12388:(e,t,a)=>{"use strict";a.d(t,{A:()=>n});var i=a(69174),r=a(37876);let n=e=>{let{slug:t,name:a,thumbnail:n,designation:s}=e;return(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{className:"author-desktop flex space-x-6 items-center",children:[(0,r.jsx)("div",{className:"w-18",children:(0,r.jsx)(i.qh,{href:`/team/${t}`,children:(0,r.jsx)("img",{src:n,alt:a,className:"rounded-full w-18 h-14 object-cover"})})}),(0,r.jsxs)("div",{className:"author-info w-full",children:[(0,r.jsx)(i.qh,{href:`/team/${t}`,className:"font-bold text-base",children:a}),(0,r.jsx)("p",{className:"font-source-serif-pro italic text-xs font-normal text-grey-800",children:s})]})]})})}},12444:(e,t,a)=>{"use strict";a.d(t,{n:()=>s});var i=a(14232),r=a(18125),n=a(37876);let s=e=>{let{videoId:t,title:a}=e,{0:s,1:l}=(0,i.useState)(!1);return s?(0,n.jsx)("div",{className:"aspect-w-16 aspect-h-9",children:(0,n.jsx)("iframe",{src:`https://www.youtube.com/embed/${t}?autoplay=1&rel=0&modestbranding=1`,title:a,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,frameBorder:"0",referrerPolicy:"strict-origin-when-cross-origin"})}):(0,n.jsx)("div",{className:"aspect-w-16 aspect-h-9 bg-grey-900",children:(0,n.jsxs)("button",{type:"button",onClick:()=>l(!0),"aria-label":`Play video: ${a}`,className:"group cursor-pointer overflow-hidden border-0 p-0",children:[(0,n.jsx)("img",{src:`https://i.ytimg.com/vi/${t}/hqdefault.jpg`,alt:a,loading:"lazy",className:"absolute inset-0 w-full h-full object-cover"}),(0,n.jsx)("div",{className:"absolute inset-0 flex items-center justify-center bg-black/20 transition-colors group-hover:bg-black/30",children:(0,n.jsx)("div",{className:"w-16 h-16 rounded-full bg-white/95 flex items-center justify-center shadow-lg transition-transform group-hover:scale-110",children:(0,n.jsx)(r.g,{icon:"play",className:"text-endeavour-500 text-2xl ml-1"})})})]})})}},12898:(e,t,a)=>{"use strict";a.d(t,{Tx:()=>h});var i=a(14232),r=a(18125),n=a(9361),s=a(71829),l=a(65083),o=a(19090),c=a(69174),d=a(37876);let h=e=>{let{bookmarkContext:t}=(0,o.l)(),{bookmarks:a,isLoading:h,userInfo:u,saveBookmark:m,deleteBookmark:p}
1=t,{post:g,darkMode:f,overrideBtnClassName:x,overrideIconClassName:y}=e,{firebaseAuth:b}=(0,l.m9)(),{initAuth:v}=b,{appendURLParam:w,getURLParam:j,hasURLParam:k,removeURLParam:N}=(0,s.W)(),_=(0,i.useRef)(!1),S=(0,i.useRef)(!1),A=(0,i.useRef)(g.id);A.current!==g.id&&(A.current=g.id,S.current=!1);let C=a.some(e=>e.postId===g.id.toString()),P=x?`${x} ${C?"text-carrot-600":""}`:f?`rounded h-10 py-0.5 ${C?"bg-[#493323]":"bg-slate-700"}`:`border rounded h-10 py-0.5 ${C?"text-carrot-600 bg-carrot-100":""}`,T=f?`mx-3.5 text-lg ${C?"text-carrot-600":"text-white"}`:`${y||"mx-3.5 text-lg"} ${C?"text-carrot-600":""}`;(0,i.useEffect)(()=>{if(S.current||_.current||(null==u?void 0:u.authState)!==n.j_.VerifiedAuth||h)return;let e=j("bookmark");e&&e===g.id.toString()&&(S.current=!0,N("bookmark"),C||E())},[g.id,h,u.authState]);let O=async()=>{if(!h&&u&&(null==u?void 0:u.authState)===n.j_.VerifiedAuth)return void E();k("bookmark")||w("bookmark",g.id.toString()),v()},E=async()=>{if(!_.current){_.current=!0;try{if(C){var e;await p(g.id.toString(),g.title,(null==(e=g.contentType)||null==(e=e[0])?void 0:e.name)??"")}else await m(g)}finally{_.current=!1}}};return(0,d.jsx)(c.$n,{className:P,onPress:O,"aria-label":C?"Remove bookmark":"Add bookmark","aria-pressed":C,children:(0,d.jsx)(r.g,{icon:["fas","bookmark"],className:T})})};a(54587),a(18012),a(86400),a(75477)},13399:(e,t,a)=>{"use strict";a.d(t,{X:()=>c,l:()=>d});var i=a(54587),r=a.n(i),n=a(18125),s=a(69174),l=a(86400),o=a(37876);let c=e=>{let{imgSrc:t,title:a,description:i,articleLink:c,watchLink:d}=e;return(0,o.jsxs)("div",{className:"listen-featured-post grid xl:grid-cols-2 gap-10 items-start",children:[(0,o.jsx)("div",{className:"aspect-w-16 aspect-h-9",children:(0,o.jsx)(r(),{loader:l.R2,src:t,alt:a,layout:"fill",className:"outline-greyish"})}),(0,o.jsxs)("div",{className:"flex-1 flex flex-col",children:[(0,o.jsx)("div",{className:"mb-8",children:(0,o.jsx)(s.ab,{text:"new",fontWeight:"font-bold",fontSize:"text-xss",fontColor:"text-grey-900/50",pillColor:"bg-supernova"})}),(0,o.jsx)("div",{className:"xl:mb-2 mb-5",children:(0,o.jsx)(s.qh,{href:c,children:(0,o.jsx)(s.DZ,{color:"text-endeavour-500",fontSize:"text-3xl xl:text-4xl",weight:"font-extrabold",lineHeight:"leading-3-s",letterSpacing:"tracking-tight-1",children:a})})}),i&&(0,o.jsx)("div",{className:"flex-1 flex flex-col xl:mb-16 mb-10",children:i.map((e,t)=>(0,o.jsx)(s.EY,{as:"div",fontFamily:"font-source-serif-pro",color:"text-grey-700",lineHeight:"leading-relaxed",className:"whitespace-pre-wrap",children:(0,o.jsx)("div",{dangerouslySetInnerHTML:{__html:e.join(" ").trim()}})},t))}),(0,o.jsxs)("div",{className:"flex flex-wrap space-x-5",children:[(0,o.jsx)("div",{className:"bg-grey-100",children:(0,o.jsx)(s.qh,{href:c,children:(0,o.jsx)("div",{className:"bg-carrot-500 py-2 px-6",children:(0,o.jsx)(s.EY,{color:"text-white",weight:"font-bold",children:"Listen Now"})})})}),d&&(0,o.jsxs)(s.qh,{href:d,className:"flex items-center py-2",children:[(0,o.jsx)(s.EY,{color:"text-grey-900",weight:"font-bold",className:"mr-2",children:"Watch it instead"}),(0,o.jsx)(n.g,{icon:"chevron-right",className:"text-carrot-500"})]})]})]})]})},d=e=>{let{children:t,bgImage:a,className:i=""}=e;return(0,o.jsx)("div",{className:`hero-bg bg-endeavour-500 relative ${i}`,style:{backgroundImage:a,backgroundRepeat:"no-repeat",backgroundSize:"cover",backgroundPosition:"center"},children:(0,o.jsx)("div",{className:"iphonese:px-4 px-6 xl:px-0 max-w-5xl mx-auto flex flex-col items-center justify-center",children:t})})}},13943:(e,t,a)=>{"use strict";a.d(t,{D:()=>f});var i=a(66284),r=a(14232),n=a(18012),s=a(13484),l=a(46070),o=a(13826);let c="yaqeen-web-chat",d=e=>e&&"object"==typeof e&&"string"==typeof e.sessionId&&e.sessionId?{sessionId:e.sessionId,title:"string"==typeof e.title?e.title:"",preview:"string"==typeof e.preview?e.preview:"",timestamp:"number"==typeof e.timestamp?e.timestamp:0}:null;async function h(e){let t=new URLSearchParams({channelSource:c});null!=e&&e.limit&&t.set("limit",String(e.limit)),null!=e&&e.cursor&&t.set("cursor",e.cursor);let a=`${l.Y}/v1/chat/conversations?${t.toString()}`,i=await (0,o.OG)(a);if(!(null!=i&&i.success)||!i.payload)throw Error("Failed to fetch AQSA conversations");return{conversations:(Array.isArray(i.payload.conversations)?i.payload.conversations:[]).map(d).filter(e=>null!==e),nextCursor:i.payload.nextCursor??null}}let u=(e,t)=>
1{let a=e&&"object"==typeof e?e:{};return{uuid:"string"==typeof a.uuid&&a.uuid?a.uuid:`unknown-${t}`,input_text:"string"==typeof a.input_text?a.input_text:"",output_text:"string"==typeof a.output_text?a.output_text:"",created_at_timestamp:"number"==typeof a.created_at_timestamp?a.created_at_timestamp:0}};async function m(e){let t=`${l.Y}/v1/chat/conversations/${encodeURIComponent(e)}/messages?channelSource=${c}`,a=await (0,o.OG)(t);return null!=a&&a.success&&Array.isArray(a.payload)?a.payload.map(u):[]}function p(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,i)}return a}function g(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?p(Object(a),!0).forEach(function(t){(0,i.A)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):p(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}let f=e=>{let{enabled:t,chatSessionId:a,conversationId:i}=e,{0:l,1:o}=(0,r.useState)([]),{0:c,1:d}=(0,r.useState)(!1),{0:u,1:p}=(0,r.useState)(null),{0:f,1:x}=(0,r.useState)(null),{0:y,1:b}=(0,r.useState)(!1),{0:v,1:w}=(0,r.useState)(!1),{0:j,1:k}=(0,r.useState)(null),{0:N,1:_}=(0,r.useState)(null),S=(0,r.useRef)(!1),A=(0,r.useCallback)(async e=>{if(t){d(!0),p(null);try{let t=await h({cursor:e,limit:15});o(a=>e?[...a,...t.conversations]:t.conversations),x(t.nextCursor),S.current=!0}catch(e){p(e)}finally{d(!1)}}},[t]),C=(0,r.useCallback)(()=>A(void 0),[A]),P=(0,r.useCallback)(async()=>{f&&await A(f)},[A,f]),T=(0,r.useCallback)(()=>{b(!0),A(void 0)},[A]),O=(0,r.useCallback)(()=>b(!1),[]),E=(0,r.useCallback)(async(e,t)=>{w(!0),k(null);try{var r;let l=await m(e.sessionId);_((null==(r=l[0])?void 0:r.created_at_timestamp)??null);let o=l.flatMap(t=>[{variant:"user",message:t.input_text,messageId:`${t.uuid}-user`,sessionId:e.sessionId,chatSessionId:a,conversationId:i,typing:!1},{variant:"assistant",message:t.output_text,messageId:`${t.uuid}-assistant`,sessionId:e.sessionId,chatSessionId:a,conversationId:i,typing:!1}]);return(0,n.$s)("aqsa_history_conversation_opened","chatbot",void 0,!1,g(g({conversation_id:e.sessionId},t>=0?{position:t}:{}),{},{surface:s.K.Standalone})),o}catch(e){return k(e),_(null),null}finally{w(!1)}},[a,i]);return{conversations:l,isLoadingList:c,listError:u,hasMore:null!==f&&S.current,loadMore:P,refresh:C,isPanelOpen:y,openPanel:T,closePanel:O,isLoadingMessages:v,messagesError:j,openConversation:E,openedConversationTimestamp:N}}},14633:(e,t,a)=>{"use strict";a.r(t),a.d(t,{extractSection:()=>D,formatQuickLinksData:()=>z,getHomeFeaturedCollectionData:()=>H,getLatestXCurriculumUnits:()=>$,getQadrFeaturedCollection:()=>F,getTrendingPosts:()=>Y,parseCurriculumData:()=>R,parseSectionPost:()=>q,parseSectionPostBase:()=>M});var i=a(66284),r=a(74382),n=a.n(r),s=a(24519),l=a.n(s),o=a(94171),c=a(32008),d=a(64761),h=a(32738);function u(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,i)}return a}function m(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?u(Object(a),!0).forEach(function(t){(0,i.A)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):u(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}let p=async e=>{let t=await (0,d.uX)(e);if(t)return g(t);c.A.log("Falling back to API for curriculum unit",{component:"CurriculumAPI",slug:e});let a=((e,t,a)=>{let i=o.pq?`wp/v2/${e}`:`api/v1/cached/wpv2_${e}`,r=t.join(","),n=`${o.C1}${i}/?_fields=${r}`,s=a?`${n}&slug=${a}`:`${n}&view=summary`;return console.debug("Built curriculum URL:",s),s})("curriculum_unit",["id","name","number","slug","description","featured_image","download_url","thumbnail","order","topic","unit_category","related_units","sections","chapters","related_items"],e),i=await (0,o.wq)(a),r=Array.isArray(i)?i[0]:void 0;return r?g(r):null},g=e=>{let t=e.slug||`unit-${e.id||"unknown"}`,a=Array.isArray(e.chapters)&&e.chapters.length>0,i=[];a&&(i=e.chapters.map(e=>{let a=Number(e.order),i=`unit-${t}-chapter-${a}`,r=Array.isArray(e.sections)?e.sections.map(e=>{let t=Number(e.order),a=`${i}-section-${t}`;return m(m({},e),{},{id:a,order:t,resources:Array.isArray(e.resources)?e.resources:[]})}):[];return{id:i,title:l().decode(e.title||""),description:l().decode(e.description||""),order:a,sections:r.sort((e,t)=>
1e.order-t.order)}}).sort((e,t)=>e.order-t.order));let r=(e.sections||[]).map(e=>{let a=Number(e.order),i=`unit-${t}-section-${a}`;return m(m({},e),{},{id:i,order:a,name:l().decode(e.name||""),subtitle:l().decode(e.subtitle||""),description:l().decode(e.description||""),resources:Array.isArray(e.resources)?e.resources:[]})}).sort((e,t)=>e.order-t.order);return{id:e.id,number:e.number,name:l().decode(e.name||""),slug:e.slug,description:l().decode(e.description||""),featured_image:e.featured_image,download_url:e.download_url,thumbnail:e.thumbnail,order:Number(e.order),topic:e.topic,unit_category:e.unit_category,related_units:e.related_units||[],sections:r,hasChapters:a,chapters:a?i:null,related_items:(e=>Array.isArray(null==e?void 0:e.related_items)?e.related_items.map(e=>{var t;return m(m({},e),{},{content_type:(0,h.gt)(e),content_link:(0,h.lr)(e),subtopic:{name:(null==(t=(0,h.mH)(e))?void 0:t.name)||null,slug:(0,h.OZ)(e)}})}):[])(e)}};var f=a(81475),x=a(5707),y=a(10436),b=a(45543);class v{constructor(e){this.config=e}readLocalData(e){return(0,b.L)(this.config.directory,e,this.config.componentTag,this.config.requiredFields)}getAllLocalData(){return(0,b.p)({directory:this.config.directory,componentTag:this.config.componentTag,requiredFields:this.config.requiredFields}).data}async fetchBySlug(e){try{let t=this.getAllLocalData().find(t=>t.slug===e);if(t)return this.config.transformFn(t);try{let t=await (0,y.YR)(this.config.directory,e);if(t)return this.config.transformFn(t)}catch(t){c.A.error(`Failed to fetch ${this.config.directory} item '${e}' from CMS API`,{component:this.config.componentTag,slug:e,error:t})}return c.A.log(`${this.config.directory} item '${e}' not found in any source`,{component:this.config.componentTag,slug:e},c.$.WARNING),null}catch(t){return c.A.error(`Error fetching ${this.config.directory} item '${e}'`,{component:this.config.componentTag,slug:e,error:t}),null}}async fetchById(e){try{let t=this.readLocalData(e);if(t)return this.config.transformFn(t);try{let t=await (0,y.YR)(this.config.directory,e);if(t)return this.config.transformFn(t)}catch(t){c.A.error(`Failed to fetch ${this.config.directory} item ID ${e} from CMS API`,{component:this.config.componentTag,id:e,error:t})}return null}catch(t){return c.A.error(`Error fetching ${this.config.directory} item ID ${e}`,{component:this.config.componentTag,id:e,error:t}),null}}async fetchAll(e){try{let t=this.getAllLocalData();return e&&t.sort(e),t.map(this.config.transformFn)}catch(e){return c.A.error(`Error fetching all ${this.config.directory} items`,{component:this.config.componentTag,error:e}),[]}}getLocalData(){return this.getAllLocalData()}}function w(e){return{metaTitle:e.metaTitle??null,title:e.title,category:(e.category??"uncategorized").split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()).join(" "),slug:e.slug,description:e.description??"",long_description:e.longDescription??null,authors:(e.authors??[]).map(e=>({name:e.name??"",slug:e.slug??"",src:e.src??"",description:e.description??"",isTranslator:e.isTranslator??!1})),book_contents:(e.bookContents??[]).map(e=>e.content??""),type:"yaqeen-book",images:{book_cover:e.images.bookCover??"",highlight:e.images.highlight??"",galleries:(e.images.galleries??[]).map(e=>({src:e.src??"",width:e.width??0,height:e.height??0,title:e.title??"",orientation:e.orientation??null}))},download_url:e.downloadUrl??"",amazon_url:e.amazonUrl??"",meta_image_link:e.metaImageLink??"",homepage_order:e.homepageOrder??null,audiobook_url:e.audiobookUrl??null,isbn:e.isbn??null,pages_num:e.pagesNum??null,json_ld_mentions:(e.jsonLdBookMentions??[]).map(e=>{let{name:t,sameAs:a}=e;return{name:t,sameAs:a}})}}let j=new v({directory:"books",componentTag:"CmsBooks",transformFn:w,requiredFields:["slug","title"]}),k=new Set([""]);async function N(){var e;return e=await j.fetchAll((e,t)=>{let a=w(e),i=w(t);return a.homepage_order&&i.homepage_order?a.homepage_order-i.homepage_order:a.homepage_order?-1:i.homepage_order?1:a.title.localeCompare(i.title)}),e.filter(e=>!k.has(e.slug))}var _=a(57002);let S=function(e){return e.post="post",e.text="text",e.link="link",e.series="series",e.taxonomy="taxonomy",e.custom="custom",e.whatIslamSaysAbout="what-islam-says-about",e.tag="tag",e.topic="topic",e.curriculum_unit="curriculum-unit",e}({});var A=a(66449),C=a(35744),P=a(54231),T=a(4797),O=a(86400);function E(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,i)}return a}function I(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};
1t%2?E(Object(a),!0).forEach(function(t){(0,i.A)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):E(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}let D=async e=>await Promise.all(e.sections.map(async e=>I(I({},e),{},{section_items:await Promise.all(e.section_items.map(async e=>{var t,a,i;if(e.type===S.post){if(!e.content)return null;let a=await (0,x.sQ)(e.content),i=null==e||null==(t=e.content)?void 0:t.map(e=>a.find(t=>t.id===e)).filter(e=>!!e).map(e=>q(e));return I(I({},e),{},{post_data:i})}if(e.type===S.whatIslamSaysAbout){let t=e[S.whatIslamSaysAbout];return I({non_post_data:await (0,x.hm)(t)},e)}if(e.type===S.topic){let t=e[S.topic];return I({non_post_data:await (0,x._2)(t)},e)}if(e.type===S.tag){let t=e[S.tag];return I({non_post_data:await (0,x.jk)(t)},e)}if(e.type===S.series){let t=e[S.series];return I({non_post_data:await (0,x.fs)(t)},e)}else if([S.link].includes(e.type)){let t=new URL(e.link);return I({link:`${(0,T.EW)()}${t.pathname}${t.search}`},e)}else if(e.type===S.curriculum_unit){let t=await p(null==(a=e[S.curriculum_unit])?void 0:a.slug),r=null==t||null==(i=t.topic)?void 0:i.slug;return I({link:`${(0,T.EW)()}/curriculum/${r}/${null==t?void 0:t.slug}`},e)}return e}))}))),q=(e,t)=>{var a,i,r;let n={name:(null==(a=(0,h.mH)(e))?void 0:a.name)||null,slug:(0,h.OZ)(e)},s=(null==e||null==(i=e.series)?void 0:i[0])||null,o=t&&s?t.find(e=>e.id===s):null,c=o?I(I({},o),{},{name:l().decode(o.name)}):null,d=I(I({},M(e)),{},{contentType:(0,h.gt)(e),authors:(null==(r=e.authors)?void 0:r.filter(Boolean))||[],subtopic:n,series:c});return e.seo&&(d.seo=e.seo),d},M=(e,t)=>{var a,i,r,s,o;let c=e.media??(0,f.CE)(e),d=null!=e&&e.images&&"desktopVertical"in e.images?e.images:(0,f.zw)(e),u=d.desktopVertical&&""!==d.desktopVertical?d.desktopVertical:null,m=d.desktopHorizontal&&""!==d.desktopHorizontal?d.desktopHorizontal:null,p=!!(null!=(a=e.contentType)&&a.find(e=>e.slug===_.xj.Infographic)),g=m||u||(null==c?void 0:c.source),x=p?null==c?void 0:c.source:g,y={videoUrl:(null==e?void 0:e.video_url)??(null==e?void 0:e.videoUrl)??null,image:{hero:d.desktopHorizontal&&(0,O.AE)(d.desktopHorizontal)||null,vertical:x&&(0,O.AE)(x)||null,horizontal:u&&(0,O.AE)(u)||null,square:d.desktopSquare&&(0,O.AE)(d.desktopSquare)||null}},b=(null==e?void 0:e.seriesId)||(null==e||null==(i=e.series)?void 0:i[0])||null,v=t&&b?t.find(e=>e.id===`${b}`):null,w=v?I(I({},v),{},{name:l().decode(v.name)}):null,j="";if("string"==typeof(null==e?void 0:e.excerpt))j=null==e?void 0:e.excerpt;else{let t=null!=e&&null!=(s=e.excerpt)&&s.rendered?n().load(null==e||null==(o=e.excerpt)?void 0:o.rendered):null;j=t?t("p").text():null}return{id:e.id,title:l().decode((null==(r=e.title)?void 0:r.rendered)??e.title),slug:(0,h.lr)(e),media:y,series:w,excerpt:j||null}},$=(e,t)=>e.sort((e,t)=>t.order-e.order).map(e=>({units:e.units.sort((e,t)=>t.order-e.order).map(t=>I(I({},t),{},{slug:`curriculum/${e.slug}/${t.slug}`})).slice(0,3)})).map(e=>e.units).flat().slice(0,t),H=async e=>{var t,a,i,r;let n=null==e?void 0:e.type,s=[],l=null;n===S.tag?(l=null==e||null==(i=e.non_post_data)||null==(i=i[0])||null==(i=i.slug)||null==(i=i.split("tag/"))?void 0:i[1],s=await (0,o.Pf)(l)):n===S.topic&&(l=null==e||null==(r=e.non_post_data)||null==(r=r[0])||null==(r=r.slug)?void 0:r.split("/").pop(),s=await (0,o.II)(l));let c=(0,C.Ji)(s.map(e=>{var t;return{id:null==(t=e.id)?void 0:t.toString(),slug:(0,h.lr)(e),title:e.title,contentType:(0,h.et)(e)||(0,h.gt)(e)}}));return{posts:(0,C.Ji)(c.map(e=>e.contentType).filter(e=>!!e)).map(e=>{var t;return null==(t=c.filter(t=>{var a;return(null==(a=t.contentType)?void 0:a.slug)===e.slug}))?void 0:t.slice(0,5)}).flat(),images:{desktop:null==e?void 0:e.image,mobile:null==e?void 0:e.image},title:"dhul-hijjah-2024"===l?"Dhul Hijjah":null==e||null==(t=e.non_post_data)||null==(t=t[0])?void 0:t.name,slug:"dhul-hijjah-2024"===l?"dhul-hijjah":null==e||null==(a=e.non_post_data)||null==(a=a[0])?void 0:a.slug}},R=e=>e.map(e=>({name:e.name,slug:e.slug,thumbnail:e.thumbnail,description:e.description,number:e.number})),z=e=>null==e?void 0:e.map(e=>{switch(e.type){case S.post:var t;return null==(t=e.post_data)?void 0:t.map(e=>({title:e.title,slug:e.slug})).flat();case S.custom:case S.link:case S.curriculum_unit:case S.text:return{title:e.text,link:e.link};case S.whatIslamSaysAbout:case S.series:case S.tag:case S.topic:return e.non_post_data.map(e=>({title:e.name,slug:e.slug})).flat()}}).flat(),F=async()=>{let e=await N(),t=await (0,x.Sx)("qadr-landing-page"),a=await D(t[0]),i=a.map(e=>{var t;return null==(t=e.section_items)||null==(t=t.find(e=>"link"===e.type))?void 0:t.link}).filter(e=>!!e).map(e=>{var t;return null==e||null==(t=e.split("/"))||null==(t=t.slice(-1))?void 0:t[0]}).map(t=>e.find(e=>e.slug===t)).map(P.M9).map(e=>{var t;return I(I({},e),{},{contentType:null==(t=e.contentType)?void 0:t[0]})}),r=[...(0,C.Ji)(a.map(e=>{var t;return null==(t=e.section_items)||null==(t=t.find(e=>"post"===e.type))||null==(t=t.post_data)?void 0:t.map(e=>I(I({},e),{},{contentType:(null==e?void 0:e.contentType)||null}))}).flat().map(e=>{var t;return I(I({},e),{},{id:null==(t=e.id)?void 0:t.toString()})})),...i];return{posts:(0,C.Ji)(r.map(e=>e.contentType).filter(e=>!!e)).map(e=>{var t;return null==(t=r.filter(t=>{var a;return(null==(a=t.contentType)?void 0:a.slug)===e.slug}))?void 0:t.slice(0,5)}).flat(),images:{desktop:"https://i.yaqeeninstitute.org/?src=/2024/04/whyme-9x16-thumbnail.png",mobile:"https://i.yaqeeninstitute.org/?src=/2024/04/image-1.png"},title:"Qadar and divine decree",slug:"explore-qadar"}},Y=async()=>{let e=await (0,A.b)("https://webhooks.yaqeeninstitute.org/web-api/v1/wp/trending-posts"),t=await e.json();return t.success?[(await (0,x.sQ)(t.paper)).map(e=>q(e)),(await (0,x.sQ)(t.video)).map(e=>q(e))]:[null,null]}},14899:(e,t,a)=>{"use strict";a.d(t,{f:()=>f});var i=a(66284),r=a(14232),n=a(18125),s=a(54030),l=a(95311),o=a(14742),c=a(18012),d=a(28823),h=a(69174),u=a(4797),m=a(37876);function p(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,i)}return a}function g(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};
1t%2?p(Object(a),!0).forEach(function(t){(0,i.A)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):p(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}let f=e=>{let{btnText:t,className:a,url:i,title:p}=e,f=(0,o.T)({}),x=(0,r.useRef)(),y=(0,r.useRef)(),{triggerProps:b,overlayProps:v}=(0,l.oJ)({type:"dialog"},f,x),{overlayProps:w}=(0,l.v8)({targetRef:x,overlayRef:y,placement:"top",offset:5,isOpen:f.isOpen}),{buttonProps:j}=(0,s.s)({onPress:()=>f.open()},x),k="text-grey-900";return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("button",g(g(g({},j),b),{},{className:a,ref:x,children:t})),(0,m.jsx)(l.so,{children:(0,m.jsx)(h.AM,g(g(g({},v),w),{},{ref:y,title:"Popover title",isOpen:f.isOpen,onClose:f.close,role:"dialog",modalClassName:"bg-white shadow p-4",children:(0,m.jsxs)("div",{className:"flex flex-col space-y-4",children:[(0,m.jsx)("div",{className:"xl:p-0 text-lg xl:text-sm group",children:(0,m.jsxs)(h.$n,{onPress:()=>{(0,u.lW)(i),(0,c.$s)("share","copy",i)},className:"flex space-x-3 group-hover:bg-carrot-400",children:[(0,m.jsx)(n.g,{icon:["far","link"],className:`${k} h-4 w-4`,fixedWidth:!0}),(0,m.jsx)(h.EY,{as:"p",weight:"font-semibold",lineHeight:"leading-none",children:"Copy"})]})}),(0,m.jsxs)(d.uI,{url:i,title:p,className:"flex space-x-3 group-hover:bg-carrot-400",children:[(0,m.jsx)(n.g,{icon:["fab","facebook-f"],className:`${k} h-4 w-4`,fixedWidth:!0}),(0,m.jsx)(h.EY,{as:"p",weight:"font-semibold",lineHeight:"leading-none",children:"Facebook"})]}),(0,m.jsxs)(d.r6,{className:"flex space-x-3 group-hover:bg-carrot-400",url:i,title:p,children:[(0,m.jsx)(n.g,{icon:["fab","x-twitter"],className:`${k} h-4 w-4`,fixedWidth:!0}),(0,m.jsx)(h.EY,{as:"p",weight:"font-semibold",lineHeight:"leading-none",children:"Twitter"})]}),(0,m.jsxs)(d.Ot,{url:i,subject:p,className:"flex space-x-3 group-hover:bg-carrot-400",children:[(0,m.jsx)(n.g,{icon:"envelope",className:`${k} h-4 w-4`,fixedWidth:!0}),(0,m.jsx)(h.EY,{as:"p",weight:"font-semibold",lineHeight:"leading-none",children:"Email"})]})]})}))})]})}},16192:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var i=a(89099),r=a(18012),n=a(69174),s=a(28734),l=a(37876);let o=e=>{let{url:t,title:a,description:o}=e,{slug:c}=(0,i.useRouter)().query,d=(0,s.HH)();return(0,l.jsx)(n.qh,{href:t,onClick:()=>{(0,r.$s)("paper-pillar-block","click",`item_title: ${c} - ${a}, device: ${d}`)},children:(0,l.jsxs)("div",{className:"card flex-1 flex flex-col px-6 pt-10 pb-10 border border-gray-200 bg-gray-50 rounded w-full",children:[(0,l.jsx)(n.DZ,{weight:"font-bold",fontSize:"xl:text-4xl text-3xl",lineHeight:"leading-snug",color:"text-endeavour-500",align:"text-left",children:a}),(0,l.jsx)("div",{className:"border-b-2 border-carrot-500 container w-10 mt-6"}),(0,l.jsx)("div",{className:"flex-1 flex mt-5",children:(0,l.jsx)(n.EY,{as:"p",color:"text-gray-700",lineHeight:"leading-relaxed",className:"text-left",children:o})})]})})}},16365:(e,t,a)=>{let i=a(8348),r=(e,t,a)=>{i.addBreadcrumb({category:"log",message:"string"==typeof t?t:String(t),level:e,data:a})},n={info:(e,t)=>{r("info",e,t)},warn:(e,t)=>{r("warning",e,t)},debug:(e,t)=>{r("debug",e,t)},error:(e,t)=>{let a=e instanceof Error?e:Error(String(e));i.captureException(a,{extra:t})},log:(e,t,a)=>{let i="warn"===e?"warning":e;"error"===i?n.error(t,a):"debug"===i?n.debug(t,a):"warning"===i?n.warn(t,a):n.info(t,a)}};e.exports=n},16591:(e,t,a)=>{"use strict";a.d(t,{z:()=>i});let i=[{slug:"a-sacred-duty-islam-and-social-justice",shortSummary:"",FAQs:[{question:"What is justice in Islam?",answer:"Justice in Islam is the divine command to uphold fairness, give others their due rights, and act with equity regardless of personal interest or relation. It is rooted in <i>tawḥīd</i> (oneness of Allah), recognizing God as the ultimate source of authority, and manifests through moral, social, and legal responsibility toward all creation."},{question:"Which hadith speaks against injustice?",answer:"The Prophet ï·º quoted Allah as saying, âO My servants, I have forbidden oppression for Myself and have made it forbidden amongst you, so do not oppress one another.â
1 (<i>Sahih Muslim</i>, no. 2577) This hadith <i>qudsi</i> (a hadith whose meanings are from Allah) reveals that injustice is prohibited by Allah Himself and must be entirely avoided in all dealings with others."},{question:"How does Islam address oppression?",answer:"Islam condemns all forms of oppression and mandates its removal through moral courage, truth-speaking, and institutional reform. Believers are encouraged to stand against wrongdoing, even if committed by those close to them, and to support the oppressed through solidarity, advocacy, and action rooted in faith and compassion."}]},{slug:"tahajjud-fuel-for-the-self-and-society",shortSummary:"",FAQs:[{question:"What are the virtues of <i>tahajjud</i>?",answer:"<i>Tahajjud</i> is a means of nearness to Allah, spiritual purification, and answered prayers. It elevates the believerâs rank, earns Allahâs praise, and distinguishes the sincere. Strengthening the soul, softening the heart, and increasing inner tranquility, it was a consistent practice of the Prophet ï·º and the righteous."},{question:"How do you pray <i>tahajjud</i>?",answer:"<i>Tahajjud</i> is prayed after waking from sleep in the last third of the night, in units of two rakâahs. There is no set limit, but the Prophet ï·º commonly prayed eleven rakâahs. It is recommended to conclude with Witr prayer, and one may recite long portions of the Qurâan and make heartfelt supplications."},{question:"What are the hadiths about <i>tahajjud</i>?",answer:"Among the hadiths concerning <i>tahajjud</i>, the Prophet ï·º said, âThe best prayer one can perform apart from the obligatory prayers is one performed at nightâ (<i>Sahih Muslim</i>, no. 1993). He ï·º also said, âUpon you is the prayer at night for it was the practice of the righteous before you, it is nearness to your Lord, a forgiveness of sin, and a protection from error.â (<i>JÄmiÊ¿ al-TirmidhÄ«</i>, no. 3549; <i>al-Mustadrak</i>, vol. 1, no. 308.)"}]},{slug:"coping-with-grief-a-spiritual-and-psychological-guide",shortSummary:"",FAQs:[{question:"How is grief dealt with in Islam?",answer:"Grief meets with <i>sabr</i> (patience), <i>duÊ¿a</i> (supplication) and <i>dhikr</i> (remembrance of Allah). Tears and sorrow are permitted while seeking solace through prayer, reliance on Allah (<i>tawakkul</i>) and support from family, community or professionals to address emotional, practical and spiritual needs."},{question:"What are the stages of grief in Islam?",answer:"Emotions typically flow through six overlapping phasesâdenial, anger, bargaining, depression, acceptance and finding meaningâeach illuminated by Prophetic examples and guided by the phrase <strong><i>aaddara Allah wa-ma shaʾa faÊ¿ala</i></strong> (Allah has decreed and what He wills, He does). While the different theories and models of grief can never fully convey what a person goes through during times of loss, the stages-of-grief model continues to be one that is useful for many reasons. It normalizes the emotions many of us experience and helps us to grasp them, cope with them, and work toward healing. "},{question:"Which hadiths address the death of loved ones?",answer:"âThe Messenger of Allah ï·º visited SaÊ¿d ibn Ê¿UbÄdah during his illness. He was accompanied by Ê¿Abd al-RaḥmÄn ibn Ê¿Awf, SaÊ¿d ibn AbÄ« WaqqÄá¹£ and Ê¿Abd AllÄh ibn Masʿūd. The Messenger ï·º began to weep. When his Companions saw this, their tears also started flowing. He said, âDo you not hear, Allah does not punish for the shedding of tears or the grief of the heart but punishes or bestows mercy for the utterances of thisâ âand he pointed to his tongue.â (<i>Sahih al-Bukhari</i>, no. 1304) When the Prophet ï·º witnessed his young son, Ibrahim, taking his final breaths, he began to cry and was questioned about this. In response to being questioned about his tears and clear sadness, the Prophet ï·º said, âThis is mercy.â Then he wept more and said, âThe eyes are shedding tears and the heart is grieved, and we will not say except what pleases our Lord, O IbrÄhÄ«m! Indeed we are grieved by your separation.â (<i>Sahih al-Bukhari</i>, no. 1303)"}]},{slug:"why-is-shirk-the-greatest-sin-of-all",shortSummary:"",FAQs:[{question:"What is <i>shirk</i>?",answer:"<i>Shirk</i> is to associate partners with Allah in His lordship, worship, or names and attributes. It includes believing that others share in His divine powers or deserve acts of devotion. This sin contradicts <i>tawḥīd</i> (the oneness of Allah), the foundation of Islam, and misdirects worship that rightfully belongs to Allah alone."},{question:"What does the Qur'an say about <i>shirk</i>?",answer:"The Qurâan repeatedly emphasizes that <i>shirk</i> is an unforgivable sin if one dies without repentance. Allah says He will not forgive associating partners with Him (Qurâan 4:48, 4:116), and that shirk nullifies all deeds (Qurâan 39:65). But as Ibn Taymiyya and others have pointed out, this must be qualified to a certain extent because God also gives the good tidings, âDo not despair of the mercy of God, for indeed God forgives all sins, indeed He is most forgiving and mercifulâ (Qur'an 39:53). This must at the very least mean that God forgives those who commit <i>shirk</i> but then repent. These verses highlight the severe spiritual consequences and finality of dying upon <i>shirk</i>."},{question:"What are modern manifestations of <i>shirk</i>?",answer:"Modern manifestations of <i>shirk</i> emerge when anything besides Him becomes the ultimate authority. For example, atheist activists claiming absolute moral truth, New Age followers mixing beliefs into personal spirituality, or social-media trends (hashtags, c
1ancel culture) dictating whatâs right and wrong."}]},{slug:"why-laylatul-qadr-the-significance-virtues-of-the-most-important-night-of-the-year",shortSummary:"",keyTakeaways:["Laylat al-Qadr is the most significant night of the Islamic year, described in the Qurâan as better than a thousand months. On this night, the angels descend by Allahâs permission and the yearly decrees of each personâs sustenance, lifespan, and affairs are apportioned.","The contingent decree held by the angels can be altered through supplication, making this night one of the believerâs greatest opportunities to seek forgiveness and avert calamity. The Prophet ï·º specifically instructed that the supplication for this night invoke Allahâs name al-Afuww (the Pardoner), whose linguistic root connotes the erasure and effacement of sins.","Allah concealed the precise date of Laylat al-Qadr, directing believers to seek it among the odd nights of the last ten nights of Ramadan. The rewards of the night remain accessible to all who worship with faith and hope, whether through congregational prayer, voluntary night prayers, Qurâanic recitation, or supplication."],FAQs:[{question:"What is Laylatul Qadr and why does it matter so much?",answer:'Laylatul Qadr (the Night of Decree) is described in the Qur\'an as "better than a thousand months," meaning worship on this single night outweighs worship spread over more than eighty years. It is the most emphasized night of the year, falling within the last ten nights of Ramadan. Allah granted this night as a gift to the umma of the Prophet Muhammad ï·º so that even a single sincere encounter with it can elevate a believer beyond what a lifetime might normally allow. The companion Anas ibn Malik reported that the Prophet ï·º said that whoever is deprived of its goodness is truly deprived.'},{question:"Why did Allah hide the exact date of Laylatul Qadr?",answer:"The Prophet ï·º instructed us to search for Laylatul Qadr in the odd nights of the last ten nights of Ramadan without specifying one fixed date. This concealment is a mercy, not a hardship. Ibn Qudama al-Maqdisi noted that Allah concealed this night so the umma would strive throughout the month, just as He concealed the special hour on Friday to increase supplication (<i>duÊ¿aʾ</i>) throughout the day. Not knowing the exact night fuels sustained worship across the last ten nights, deepens longing (<i>shawq</i>), and keeps repentance and hope alive beyond a single burst of emotion."},{question:"If everything is already decreed, what is the point of making duÊ¿aʾ on Laylatul Qadr?",answer:"Laylatul Qadr is the night when the yearly decree is delivered to the angels. Scholars distinguish between what is recorded with the angels and what is with Allah in the Preserved Tablet (<i>al-Lawḥ al-MaḥfÅ«dh</i>): Allah's knowledge and final decree do not change, while what the angels are given involves a contingent decree (<i>al-Qaá¸aʾ al-MuÊ¿allaq</i>) that can unfold in ways shaped by our choices, prayers, and repentance. The Prophet ï·º said that nothing averts fate except supplication. On these nights, a believer's plea for protection, forgiveness, and guidance may be the very means by which what is written changes in the angels' record before it is sealed for the coming year."},{question:"What should I focus on saying and asking for on Laylatul Qadr?",answer:'When Ê¿Aʾisha asked the Prophet ï·º what to say if she recognized Laylatul Qadr, he taught: <i>Allahumma innaka Ê¿afuwwun karim tuhibbu al-Ê¿afwa faÊ¿fu Ê¿anni</i> â "O Allah, You are Most Forgiving and Generous. You love to forgive, so forgive me." The Prophet ï·º singled out the name <i>al-Ê¿Afuww</i>, which carries the sense of erasing and wiping away. On this night, we ask Allah not only to forgive sin but to erase its traces from what may be decreed for the coming year. The Prophet ï·º also said that his knowledge of the specific night was lifted from him because of an argument between two people, reminding us that grudges can veil us from the pardon of the night.'},{question:"What if I feel like I missed Laylatul Qadr or did not do enough?",answer:"You do not have to know the exact night to re
1ceive its reward. The Prophet ï·º tied forgiveness to standing on Laylatul Qadr with faith and hope in reward, without making certainty about the date a condition. Ibn Ê¿Uthaymin noted that had knowledge of the night been necessary, the Prophet ï·º would have made it clear. Intention also carries weight â if someone sincerely wanted to worship but was prevented by illness or genuine constraints, Allah's generosity is greater than their limitations. Merely praying Isha and Fajr in congregation on that night counts as standing the entire night in prayer, according to the Prophet ï·º."},{question:'What does the name "Laylatul Qadr" actually mean?',answer:"The word <i>qadr</i> carries three layers of meaning. One is decree: this is the night when the matters of the coming year are delivered to the angels. Imam al-Nawawi considered this the most widely accepted interpretation. A second meaning is power and greatness, pointing to the immense rank of the night and the extraordinary weight of worship performed in it. A third meaning is restriction, in the sense that the earth becomes constricted by the vast descent of angels â the Prophet ï·º said the angels on this night are as numerous as the pebbles upon the earth. Each layer reinforces the others: the decree is immense, the night is powerful, and the heavens draw near to the earth."}]},{slug:"uniting-the-ummah-strategies-to-foster-solidarity-with-uyghur-muslims",shortSummary:"",keyTakeaways:["The Prophetâs model of brotherhood (<i>muʾÄkhÄ</i>) between the Medinan Helpers (<i>aná¹£Är</i>) and the Meccan Emigrants (<i>muhÄjirÅ«n</i>) offers a framework for active community integration that goes beyond passive sympathy. The <i>aná¹£Är</i> offered their wealth, livelihoods, and homes, while the Prophet ï·º ensured the <i>muhÄjirÅ«n</i> had opportunities for dignified work and meaningful participation.","Uyghur Muslims in the global diaspora report a deep sense of abandonment by the wider Muslim community at every level: individual expressions of sympathy without corresponding political advocacy, exclusion from communal supplications and mosque support, and the political betrayal of Muslim-majority governments allying with China for economic gain.","Solidarity with the Uyghur community requires a shift from charity alone to active allyship. This includes political mobilization against the Uyghur genocide, welcoming programs in mosques, boycotting products linked to forced Uyghur labor, and facilitating opportunities for teaching the Uyghur language to help preserve a culture under threat of erasure."],FAQs:[{question:"Is making duÊ¿aʾ and giving charity for Uyghur Muslims enough?",answer:"<i>DuÊ¿aʾ</i> and voluntary charity (<i>sadaqa</i>) matter deeply, and Uyghur voices describe them as genuinely needed. At the same time, many Uyghurs in the diaspora experience sympathy alone as empty words when it is not paired with visible solidarity. A fuller response means staying connected to Uyghur communities, learning directly from their stories, and moving outside the <i>sadaqa</i> box into allyship: speaking up, advocating, organizing for justice, and using our wealth more ethically â including supporting Uyghur causes and boycotting goods tied to forced Uyghur labor."},{question:"How can my local mosque practically support Uyghur refugee families?",answer:"The mosque can be more than a prayer space â it can be a place of refuge, support, and integration. A simple but powerful starting point is a newcomer family matching program where a newly arrived Uyghur family is paired with an established family to build social ties and belonging. Mosques can also offer resume workshops, parenting support circles, food banks, and volunteer programs. Regular community gatherings that include Uyghur food, arts, and culture make Uyghurs visible and welcomed. Where possible, mosques can provide space for Uyghur language instruction such as free classroom access for Uyghurche lessons."},{question:"What can an ordinary Muslim do to help stop the Uyghur genocide?",answer:"Start by getting educated. Misinformation makes this harder than
1it should be, so it takes intention to seek balanced coverage and listen directly to Uyghur community members. Then move from private concern to public solidarity. That can include urging your mosque to host a community event, attending Uyghur gatherings, joining protests, contacting representatives, and boycotting goods linked to forced Uyghur labor. The call is to practice allyship â support, social engagement, and advocacy alongside Uyghurs â not as a burst of emotion but as a sustained commitment."},{question:"What does the Prophetic example of the ansar and muhajirun teach us about welcoming Uyghur refugees today?",answer:"The migration to Medina shows that belonging does not happen passively. The <i>ansar</i> did not merely welcome the <i>muhajirun</i> with kind words; they actively built community and shared social support in ways that made newcomers feel seen, protected, and included. Uyghurs in the diaspora face a similar need for integration into the broader umma. The Prophetic model points toward active integration: creating real relationships, expanding access to community spaces, and building support systems that restore social ties and dignity â mosque-based buddy systems, regular communal gatherings that include Uyghur culture, and ensuring Uyghurs are part of the community's public concern."},{question:'What does "radical empathy" for Uyghur Muslims look like in Islam?',answer:"Empathy asks you to see the world through another's eyes. Radical empathy goes further by demanding change and commitment to justice, even at the cost of comfort or material ease. It is rooted in the Prophetic description of believers as one body, where another Muslim's pain should not remain distant. Radical empathy also pushes against empathetic distancing â the habit of only fully caring for people who look or live like us. In the Uyghur case, it means refusing to let their stories remain abstract: learning, listening, and then aligning our communities with justice through public advocacy, ethical spending, and mosque cultures that make Uyghurs visible, welcomed, and protected."}]},{slug:"how-the-quran-was-preserved-during-the-prophets-time-mechanisms-of-oral-and-written-transmission",shortSummary:"",keyTakeaways:["The Qurâan was preserved during the Prophetâs ï·º lifetime through a comprehensive system of oral transmission that went far beyond private memorization. At least sixteen methods of Prophetic teaching are documented, ranging from instant recitation upon revelation and one-on-one instruction to public recitation in prayers and sermons, the dispatch of teachers to distant regions, and the establishment of early learning circles such as DÄr al-Arqam and <i>al-á¹£uffa</i>.","The relatively small number of companions explicitly documented as having memorized the entire Qurâan does not reflect the actual scale of memorization. The companions held a stringent standard for true mastery that required direct learning from the Prophet ï·º, knowledge of abrogated verses and modes of recitation, understanding of legal rulings, and practical adherence to the Qurâanâs teachings. Many also concealed their memorization out of humility before Allah.","Oral transmission served as the primary method of preservation, while written documentation was simultaneously organized through appointed scribes. This dual system was reinforced by annual review with JibrÄ«l and a final double review in the last year of the Prophetâs ï·º life, which verified the recited form of the Qurâan. Alongside this, Qurâanic revelation was written on scattered materials, providing a written basis that later supported the companionsâ formal compilation of the <i>muṣḥaf</i> after his death."],FAQs:[{question:"How did Allah's promise to preserve the Qur'an take shape during the Prophet's ï·º lifetime?",answer:'Allah says, "Indeed, it is We who sent down the Reminder, and indeed, We will be its Guardian." That promise did not bypass human means. Preservation took shape through two intertwined pathways: oral and written. The Qur\'an was taught primarily through constant recitation, memorization, and verification â the Prophet ï·º reviewed the revelation with Jibril every Ramadan, and in his final year he reviewed it twice. Alongside this, the Prophet ï·º a
1ppointed scribes who documented revelation as it descended and placed verses in their assigned locations within each chapter.'},{question:"How did the Prophet ï·º teach the Qur'an to his companions on a daily basis?",answer:"Two core instructional methods structured Qur'anic learning. First, recitation-and-repetition (<i>iqraʾ</i>): the Prophet ï·º recited a passage and the companion repeated it back in the same manner. Second, recitation-back for verification (<i>Ê¿ará¸</i>): the companion recited from memory to the Prophet ï·º for review, correction, and precision. <i>Ê¿Ará¸</i> in particular required memorized recitation and exact articulation, creating an ongoing culture of supervised accuracy rather than informal learning by exposure."},{question:"What is the difference between oral and written Qur'anic preservation, and how did they complement each other?",answer:"Oral preservation is the Qur'an living in people's hearts and tongues through memorization, continual recitation, and supervised correction. Written preservation complemented this oral core â when new revelation descended, the Prophet ï·º called scribes to write it immediately and place it in its assigned chapter. Together, oral transmission preserved exact recitation while written records anchored what was recited in documented form. Neither channel operated in isolation; each reinforced the integrity of the other."},{question:"Did the Qur'an slowly \"evolve\" during the Prophet's ï·º time, as some Western scholars claim?",answer:"This claim does not hold up against the evidence. The Prophet ï·º was divinely commanded to recite the Qur'an to people, making oral delivery the primary vehicle of dissemination across a large community from the outset. At the same time, reports describe verses written on multiple materials, and the Prophet ï·º regularly summoned scribes to write new revelation and assign it within its chapter. This combination of mass oral transmission and immediate written documentation undercuts the idea of an open-ended, late evolution of the text during the Prophet's ï·º lifetime."},{question:"Could a verse of the Qur'an have been forgotten or lost before it reached us?",answer:"The safeguards against loss were overlapping and mutually reinforcing. The Prophet ï·º constantly recited the Qur'an and reviewed it with Jibril every Ramadan â in his final year, twice. At the community level, <i>Ê¿ará¸</i> required companions to recite from memory to the Prophet ï·º for correction, reducing the space for drift. Revelation was also documented immediately through appointed scribes when it descended. Together, repeated review, supervised recitation, and real-time documentation created multiple layers of protection against any verse being forgotten or lost."}]},{slug:"the-uthmanic-codex-understanding-how-the-quran-was-preserved",shortSummary:"",keyTakeaways:["The Ê¿UthmÄnic codex was compiled around 25 AH to unite the Muslim nation upon a single authoritative written text after disputes arose among Muslims in newly conquered lands over variant recitations. This was distinct from AbÅ« Bakrâs earlier compilation, which sought to gather the Qurâan into one document to prevent its loss after the martyrdom of many memorizers at the Battle of al-YamÄma.","The Ê¿UthmÄnic compilation was led by Zayd ibn ThÄbit, the Prophetâs preeminent scribe, alongside a committee of companions including Ê¿AbdullÄh ibn al-Zubayr, Saʿīd ibn al-Ê¿Äá¹£, and Ê¿Abd al-RaḥmÄn ibn al-ḤÄrith ibn HishÄm. No verse was transcribed on the basis of memory alone; each required the combined attestation of written materials, memorization, and direct testimony from those who had recorded the Qurâan from the Prophet ï·º himself.","The codex was written without consonantal dotting or vowelization markings, allowing its consonantal skeleton to accommodate a range of legitimate recitations. Copies were sent to major cities across the Islamic empire, while nonconforming written materials were ordered destroyed, establishing the unified standard that has been preserved to the present day."],FAQs:[{question:"What is the Ê¿Uthmanic codex and how does it differ from Abu Bakr's earlier compilation of the Qur'an?",answer:"After the Battle of al-Yamamah (12 AH), Abu Bakr authorized the first official compilation of the Qur'an in writing after many reciters were martyred. Zayd ibn Thabit led the work, requiring two written witnesses for each verse. The result was a complete written compilation kept in safekeeping while the community continued reciting as they had learned. The Ê¿Uthmanic codex was a later standardized set of written copies (<i>maá¹£Äḥif</i>) produced under Ê¿Uthman to unite the community upon a single written standard and end disputes tied to differing recitations. Official copies were sent to major regions and nonconforming materials were burned or corrected."},{question:"Why did Caliph Ê¿Uthman burn other copies of the Qur'an?",answer:"This was not done to erase the Qur'an but to end escalating disputes as Muslims in different regions argued over divergent recitations tied to the <i>aḥruf</i> and regional teaching lineages. Establishing a single authorized written standard gave the umma a common reference point. Eliminating nonconforming materials also reduced the risk of circulating personal codices containing scribal mistakes or companion commentary written alongside Qur'anic verses, which could confuse later readers. Since reviewing every private copy across an expanding empire was not feasible, standardizing around authorized exemplars was the practical solution. Burning was also a recognized respectful way to dispose of materials containing Qur'anic verses."},{question:"Were any verses of the Qur'an lost or left out during these compilations?",answer:"No. The companions who had memorized the Qur'an in its entirety knew exactly which verses were in the text. During Abu Bakr's compilation, Zayd ibn Thabit sought two written witnesses for each verse. He found only a single written copy for one passage â held by Khuzayma ibn Thabit al-Ansari, whose testimony the Prophet ï·º had declared equal to two witnesses. The fact that Zayd knew precisely which verse was unaccounted for in writing confirms the memorized text was complete. When Ê¿Uthman later commissioned his codex, the committee repeated the process. No verse was omitted; what was excluded were variant readings from the seven <i>aḥruf</i> that did not conform to the Ê¿Uthmanic written standard."},{question:"What are the seven ahruf and the qiraʾat, and how do they relate to the Ê¿Uthmanic mushaf?",answer:"The seven modes of recitation (<i>
1aḥruf</i>) were a divinely permitted concession so the Qur'an could be recited with ease by an early community that was largely unlettered and linguistically diverse. When Ê¿Uthman commissioned the standard codex, it was written in an early script without dots or vowel marks. That consonantal skeleton (<i>rasm</i>) could accommodate more than one valid recitation. The majority scholarly view is that the Ê¿Uthmanic <i>muṣḥaf</i> preserved some but not all of the seven <i>aḥruf</i> â namely what the <i>rasm</i> could carry. The canonical recitations (<i>qiraʾat</i>) are those that fit the Ê¿Uthmanic <i>rasm</i> and were transmitted through reliable chains back to the Prophet ï·º."},{question:"How do we know that the Qur'an we read today is the same as what the Prophet ï·º recited?",answer:"The Qur'an was preserved through two reinforcing channels: living recitation and written documentation. A large number of companions memorized the Qur'an in its entirety during the Prophet's ï·º lifetime. Abu Bakr then commissioned a written compilation using careful criteria drawing on memorization, written materials, and direct testimony. Later, Ê¿Uthman oversaw a standardized written exemplar distributed across major centers. Early manuscript evidence supports this history: surviving Qur'anic manuscripts share highly specific spelling conventions recurring in the same places across different copies, pointing to a common written archetype. Widespread memorization also functioned as a check â a written form could not persist unless it matched an established oral recitation."},{question:'Should I worry when I hear about "variant readings" and "anomalous recitations" of the Qur\'an?',answer:"No. The variations discussed in this field are small and controlled, not open-ended. The recognized recitations (<i>qiraʾat</i>) are those compatible with the Ê¿Uthmanic consonantal skeleton (<i>rasm</i>) and transmitted with reliable chains back to the Prophet ï·º. Readings that conflict with the Ê¿Uthmanic writing are classified as anomalous (<i>shadhdh</i>) and are not recited as Qur'an. The SanÊ¿aʾ palimpsest, for example, includes some non-Ê¿Uthmanic readings yet still shares the same verses and overall structure as the Ê¿Uthmanic text â demonstrating how carefully the community distinguished what remained Qur'an for recitation from what did not."}]},{slug:"is-hijab-religious-or-cultural-how-islamic-rulings-are-formed",shortSummary:"",FAQs:[{question:"Is hijab mandatory in Islam?",answer:"Hijab is a mandatory aspect of Islamic practice for Muslim women, as established through clear evidence in the Qurâan and the Sunnah. The command to cover, including the head and body, is rooted in the divine directive for modesty, and has been affirmed by the consensus of classical Islamic scholars across centuries."},{question:"What does wearing hijab actually entail?",answer:"Wearing hijab requires covering the entire bodyâthe <i>Ê¿awrah</i>âexcept what must necessarily show, namely the face and hands, with loose, opaque clothing. The <i>khimÄr</i> (headcover) is drawn over the chest so no adornment (<i>zÄ«nah</i>) is revealed, thereby upholding modesty in both dress and demeanor."},{question:"What does the Qurâan say about hijab?",answer:"The Qurâan commands believing women to draw their <i>khimÄr</i> (head covering) over their bosoms and not to display their adornment except to specific <i>mahrams</i> (male relatives they cannot marry) (Qurâan 24:31), and instructs the Prophetâs wivesâand by extension believing womenâto draw their <i>jilbÄb</i> (outer garment) over themselves for modesty and distinction (Qurâan 33:59)."}]},{slug:"religious-minorities-under-muslim-rule",shortSummary:"",keyTakeaways:["Religious minorities under Muslim rule were legally protected communities. The term <i>ahl al-dhimma</i> referred to people granted protection under the authority of the Muslim polity, and the system afforded them autonomy over their own religious practices, courts, and communal governance.","Regulations often thought to be discriminatory simply reflected the norms of the era, rather than a uniquely Islamic program of oppression. Distinctive dress codes in the Pact of Ê¿Umar were rooted in customs non-Muslim communities already followed, mirrored practices in the Byzantine and Sasanian empires, and applied in both directions, as the Prophet ï·º also commanded Muslims not to imitate non-Muslims in dress.","The <i>jizya</i>
1 was not a punitive tax but a civic obligation in lieu of military service. It applied only to able-bodied men; exempted women, children, monks, the poor, and the disabled; and was scaled to each personâs economic means, functioning comparably to the <i>zakat</i> required of Muslims."],FAQs:[{question:"What does the term <i>dhimmÄ«</i> mean in Islamic law?",answer:'The term <i>dhimmÄ«</i> originally carried a divine connotation, meaning "people under the protection of God and His Prophet." It referred not to a degraded legal class but to a binding obligation on the Muslim state to safeguard the lives, property, and religious autonomy of non-Muslim subjects. Over time it evolved into a technical legal designation, yet the foundational meaning embedded a moral responsibility: harming a <i>dhimmÄ«</i> was understood to incur divine punishment on the Day of Judgment.'},{question:"What was the <i>jizyah</i> and was it a form of religious persecution?",answer:"The <i>jizyah</i> was a poll-tax paid by non-Muslim subjects in exchange for military protection and exemption from military service obligations. Classical scholars including Ibn al-Qayyim stipulated it should never overburden those who could not afford it and could be paid in goods rather than cash. Women, children, monks, the elderly, and the disabled were uniformly exempt. When the general AbÅ« Ê¿Ubaydah could no longer guarantee security to the Syrian Christians he was protecting, he returned their <i>jizyah</i> in fullâan act that illustrates the tax was understood as a contract of protection, not an act of humiliation."},{question:"How did Muslim treatment of religious minorities compare to the Byzantine and Sasanian empires?",answer:"Historical scholarship consistently finds that the Muslim framework was less persecutory than its predecessors. The Byzantine Empire actively persecuted Christians who deviated from imperial orthodoxy; the Sasanian Empire prohibited intermarriage across religious lines. Milka Levy-Rubin demonstrates that Muslim practices were analogous to pre-Islamic Near Eastern norms, meaning conquered populations received structured security agreementsâconditions that the non-Muslim communities themselves had often set upon surrender. Crucially, there was never the kind of widespread systematic persecution of Christians under Muslim rule that characterized the late Roman Empire."},{question:"Did non-Muslims have legal autonomy under Islamic governance?",answer:"Non-Muslim communities maintained their own religious courts, legal codes, and communal leadership under the <i>dhimmÄ«</i> framework. Jewish communities adjudicated personal-status matters according to Talmudic law; Christian communities operated under their own ecclesiastical tribunals. This degree of internal self-governance was, as the paper argues, far more progressive than the religious uniformity demanded by the Byzantine state. The Pact of Ê¿Umar formalized these arrangements, securing communal institutions while requiring political loyalty to the Muslim polity."},{question:"What does the Qur'an say about treating non-Muslims justly?",answer:"The Qur'an instructs believers: 'Allah does not forbid you to have dealings with those who have not fought against you for religion's sake...from being righteous toward them and acting justly towards them. Indeed, Allah loves those who are just.' (Qur'an 60:8) Classical jurists like QÄá¸Ä« IsmÄʿīl ibn IsḥÄq cited this verse directly to defend the respectful treatment of non-Muslim officials serving in Muslim-governed states. The verse formed the scriptural foundation for the principle that justice toward non-Muslims is not merely permitted but a divine obligation."}]},{slug:"did-islam-spread-by-the-sword-a-critical-look-at-forced-conversions",shortSummary:"",keyTakeaways:["The claim that Islam was âspread by the swordâ through forced conversions is a centuries-old polemic rooted in the Crusades and reinforced by colonial-era historians. Leading present-day scholars have shown through historical and textual evidence that forced conversions were rare, as they violated the Qurâanic prohibition âthere is no compulsion in religionâ (Qurâan 2:256).","Demographic patterns contradict the forced-conversion thesis. Regions under the longest Muslim rule, such as the Gangetic Plain of India, had far lower Muslim populations than peripheral areas like Punjab and Bengal, while Southeast Asia and West Africaâhome to some of the largest Muslim populations todayâwere not primarily Islamized through Muslim military conquest.","Case studies of alleged forced conversion reveal that these episodes were shaped by complex political, economic, and social factors, and that rulers who implemented coercive policies often did so selectively and for political rather than religious purposes."],FAQs:[{question:"Does the Qur'an permit forcing people to convert to Islam?",answer:"The Qur'an explicitly prohibits compulsion in faith: 'Let there be no compulsion in religion, for the truth stands out clearly from falsehood.' (Qur'an 2:256) Ibn KathÄ«r, one of the most authoritative classical exegetes, interpreted this verse unambiguou
1sly: 'Do not force anyone to become Muslim, for Islam is plain and clear.' The Qur'an equally instructs the Prophet ï·º that his method was persuasion: 'Invite all to the Way of your Lord with wisdom and kind advice.' (Qur'an 16:125) Forced conversion was therefore a violation of Qur'anic principle, not an extension of it."},{question:"Did Muslim rulers historically force non-Muslims to convert?",answer:"Forced conversions occurred in Islamic history but were rare exceptions that violated established Islamic legal norms rather than expressions of systematic policy. The historian Ira Lapidus concluded: 'Conversion by force, while not unknown in Muslim countries, was, in fact, rare. Muslim conquerors ordinarily wished to dominate rather than convert.' Caliph Ê¿Umar's treaty with Jerusalem's patriarch explicitly prohibited forced conversions. Muslim rulers often preferred maintaining non-Muslim populations precisely because the <i>jizyah</i> they paid provided direct treasury revenueâgiving rulers a financial incentive against conversion campaigns."},{question:"What does the demographic evidence say about how Islam spread?",answer:"The demographic record contradicts the forced-conversion narrative. If conversion had been coerced systematically, regions under the longest and most intensive Muslim governance should show the highest Muslim populationsâyet they do not. Iran took more than 150 years after conquest to reach a 50% Muslim population. Bengal and Punjab, governed less intensively, became 70 to 90% Muslim, while the heavily administered Gangetic Plain remained 10 to 15% Muslim. Southeast Asia and West Africa, where Islam spread to its largest concentrations today, were never subjected to military conquest at allâIslam reached them through trade networks and traveling scholars."},{question:"What options were actually given to conquered peoples under early Muslim rule?",answer:"The standard framework offered non-Muslims three paths: voluntary conversion to Islam, acceptance of <i>dhimmÄ«</i> status with payment of <i>jizyah</i> and retention of full religious autonomy, or military resistance. The <i>dhimmÄ«</i> arrangement was the dominant outcome in the early centuries of Islamic expansionânon-Muslims comprised the majority of the population within the Islamic empire for more than two centuries after the initial conquests. The existence of large, thriving Jewish and Christian communities throughout the classical Islamic world is itself the most direct historical evidence against a policy of forced conversion."},{question:"Why do historians reject the claim that Islam spread by the sword?",answer:'Scholars including Marshall Hodgson, Richard Bulliet, and Ira Lapidus have systematically dismantled the forced-conversion narrative through demographic analysis, primary-source examination, and comparative imperial history. Colonial-era historians like Henry Elliot shaped this narrative by selectively reading ambiguous Persian sources where phrases meaning "submitted to Islam" referred to political submission to the Muslim state rather than individual religious conversion. Contemporary scholarship recognizes that the primary vehicles of Islamic expansion were trade, Sufi missionaries, scholarly networks, and the appeal of Islamic teachingsânot military coercion.'}]},{slug:"virtues-of-surah-al-baqara-healing-and-protection-in-the-qurans-longest-chapter",shortSummary:"",keyTakeaways:["Surah al-Baqara is a source of blessing, protection, and intercession for the one who recites it regularly and lives by its teachings. On the Day of Resurrection, it will come as a cloud or shade pleading on behalf of its companion.","Ayat al-Kursi (Qurâan 2:255) is the greatest verse in the Qurâan, affirming Allahâs divinity, oneness, life, knowledge, dominion, power, and will. Regular recitation after obligatory prayers and before sleep is linked to Allahâs protection and the promise of Paradise.","The final two verses of Surah al-Baqara (Qurâan 2:285â86), described as treasures from beneath the Throne, provide spiritual protection and sufficiency when recited nightly. These verses affirm core beliefs, obedience to Allah, and the assurance that Allah does not burden any soul beyond its capacity."],FAQs:[{question:"What are the virtues of Surah al-Baqarah?",answer:"Surah al-Baqarah holds an unparalleled rank among the chapters of the Qur'an. The Prophet ï·º said: 'Taking recourse to it is a blessing and abandoning it causes grief.' (<i>Sahih Muslim</i>) It will intercede for those who recited it on the Day of Judgment, appearing like two clouds or two flocks of birds standing in their defense. Ibn Taymiyya identified the chapter as establishing the three foundational pillars of Islamic creed: the oneness of Allah (<i>tawḥīd</i>), the truthfulness of the Prophet ï·º, and the reality of the Hereafterâmaking it not only a source of blessing but a complete theological foundation."},{question:"Why is Ayat al-Kursi considered the greatest verse in the Qur'an?",answer:"The Prophet ï·º confirmed that Ayat al-Kursi (Qur'an 2:255) is 'the greatest verse in the Qur'an.' (<i>Sahih Muslim</i>) The verse encapsulates seven foundational divine attributes in a single passage: absolute divinity, perfect oneness, eternal life, all-encompassing knowledge, unrestr
1icted dominion, supreme power, and complete will. No slumber or sleep overtakes Allah; His Footstool extends over the heavens and the earth. Reciting it after every obligatory prayer is among the greatest acts connecting a believer to divine protection, and the Prophet ï·º stated that whoever recites it upon sleeping will be protected by Allah through the night."},{question:"Does reciting Surah al-Baqarah protect the home from evil?",answer:"Yes. The Prophet ï·º said: 'Do not make your homes into graves. Indeed, the devil flees from the house in which Surah al-Baqarah is recited.' (<i>Sahih Muslim</i>) This narration establishes that the home should be a place of living worship, not merely a dwelling. Regular recitation of the chapter creates a spiritual environment that repels satanic influence. The Prophet ï·º further stated that whoever recites the last two verses of Surah al-Baqarah at night, they suffice him (<i>Sahih al-Bukhari</i>)âa narration scholars have explained to mean they provide sufficient protection and reward for the night."},{question:"What is the significance of the last two verses of Surah al-Baqarah?",answer:"The final two verses (Qur'an 2:285â286) hold extraordinary merit. The Prophet ï·º said that whoever recites them at night will be sufficed. (<i>Sahih al-Bukhari</i>, no. 5009) These verses affirm the complete faith of the believers, their submission to Allah's messengers without distinction, and end with a supplication that no soul be burdened beyond its capacityâa divine reassurance. The Prophet ï·º also reported that these verses were among the treasures granted to him from beneath the Throne of Allah on the night of his ascension (<i>al-IsrÄʾ</i>), a distinction shared by no other verses, underscoring their unique spiritual weight."},{question:"What lessons does Surah al-Baqarah draw from the story of the Children of Israel?",answer:"A substantial portion of Surah al-Baqarah recounts the history of the Children of Israelâtheir covenant with Allah, their repeated violations, and their spiritual complacencyânot to condemn them but to warn the Muslim community against repeating the same patterns. The surah presents their story as a mirror: communities that receive divine guidance, neglect it, and prioritize worldly interests over revealed obligations face spiritual deterioration. This historical-pedagogical function was intentional; the Qur'an addresses the Muslim community directly after each episode, calling believers to uphold their covenant with sincerity and to avoid the gradualism through which communities of faith can drift from their divine mission."}]},{slug:"living-abrahams-legacy-relevance-of-rites-and-rituals-in-the-modern-age",shortSummary:"",keyTakeaways:["Rituals are not relics of a premodern worldâthey are how human beings construct meaning, anchor identity, and connect to something larger than themselves. Modern life is full of rituals (graduations, anthems, courtroom procedures, sporting traditions). Islamic rituals are distinct in that they deliberately train the heart toward love of God and humility before Him through embodied repeated practice.","The Hajj rituals are a living inheritance from Prophet Abraham, his wife Hajar, and their son Ishmael (peace be upon them). <i>Tawaf</i>, <i>saÊ¿i</i>, the standing at Ê¿Arafa, the night at Muzdalifa, the <i>udhiya</i>, and the pelting of the stones (<i>jamarat</i>) each encode a specific spiritual lesson drawn from their story of submission, trust, and steadfastnessâmaking every pilgrim a participant in a four-thousand-year-old narrative.","The point of any Islamic ritual is the heart that performs it, not the physical motion itself. As the Qurâan says of the Hajj sacrifice, âTheir meat will not reach Allah, nor will their blood, but what reaches Him is piety from youâ (Qurâan 22:37). Outward conformity without inward presence (<i>hudur al-qalb</i>, presence of the heart) is not the goal Islam sets for its rites. However, even when worship falls short of experiencing heartful presence, it still retains merit with God as it signifies the effort to reach that level of presence."],FAQs:[{question:"What does Yaqeen's 'Living Abraham's Legacy' paper argue about Islamic rituals?",answer:"Authors Sh. Ibrahim Hindy and Dr. Nazir Khan argue that Islam
1ic rituals â particularly Hajj â are not relics of pre-modern thought but a coherent spiritual technology that connects believers to the legacy of Prophet Ibrahim (as) and reorients the heart toward Allah. Responding to the modern 'secularization thesis,' the paper shows that all societies practice rituals; Islam's rituals are distinguished by embodying loving submission (<i>'ubÅ«diyyah</i>) â a fusion, in Ibn Taymiyyah's words, of 'fulfillment of one's love paired with fulfillment of one's humility.'"},{question:"Why is Hajj called the legacy of Prophet Ibrahim (as)?",answer:"The Qur'an identifies Prophet Ibrahim (as) as the first proclaimer of the Hajj duty: 'And proclaim to the people the pilgrimage' (Qur'an 22:27), and the Prophet ï·º called Hajj 'a legacy from the legacies of Abraham.' Each Hajj rite re-enacts an episode from the lives of Ibrahim, Hajar, and IsmÄʿīl (as): the <i>saʿī</i> between á¹¢afÄ and Marwah recalls Hajar's desperate trust in Allah, the standing at 'Arafah commemorates the primordial covenant, the stoning of the JamarÄt mirrors Ibrahim's rejection of Shayá¹Än, and the <i>udhiya</i> re-enacts his willingness to surrender what he loved most."},{question:"Are Hajj rituals symbolic gestures or required physical actions?",answer:"They are both, and the paper argues neither dimension can be removed without distorting the worship. The physical form of each rite is binding, but spiritual meaning is what makes it accepted: 'Their meat will not reach Allah, nor their blood, but what reaches Him is piety from you' (Qur'an 22:37). Drawing on Ibn Taymiyyah and al-Ghazali, the paper concludes that form without intent is empty motion, and intent without form is incomplete worship â Hajj demands both."},{question:"What is the significance of the Day of 'Arafah according to this paper?",answer:"The paper describes 'Arafah as 'paramount' in Hajj, citing the Prophet's ï·º statement, 'Hajj is 'Arafah' (<i>Sunan AbÄ« DÄwÅ«d</i>, no. 1949). It is the day on which Allah grants more forgiveness than any other (<i>Sahih Muslim</i>, no. 1348), and Islamic theology links it to the primordial covenant in which all human souls testified to Allah's lordship (Qur'an 7:172) â making the standing at 'Arafah a return to one's original witness of Allah."},{question:"How does the paper interpret Prophet Ibrahim's (as) sacrifice of his son?",answer:"Citing Ibn al-Qayyim (d. 751 H), the paper explains that Allah's command was a test of pure devotion, not a moral instruction to harm â Allah ransomed IsmÄʿīl (as) with a great sacrifice precisely because Ibrahim's intention had already been accepted. The <i>udhiya</i> every Muslim performs on Eid al-Adha re-enacts that moment of total surrender, transforming a private moment of prophetic devotion into an annual communal act of worship."},{question:"How does Hajj transform the believer according to the paper?",answer:"The paper describes Hajj as a structured exercise in stripping away ego: pilgrims dress identically in <i>iḥrÄm</i>, walk the same path, supplicate with the same words, and stand together at 'Arafah regardless of race, wealth, or status. Malcolm X's letter from Hajj is cited as a modern testimony of this transformation, where pilgrims experienced 'a spirit of unity' across racial and national lines â illustrating how ritual creates a community that argument alone cannot."},{question:"Are religious rituals still relevant in the modern age?",answer:"Yes. Rituals remain deeply relevant because they shape a person in ways that belief does not. They form identity, build community, and train the heart through embodied, repeated practice. Modern secular life still runs on rituals: graduations, national anthems, courtroom procedures, sporting traditions. What distinguishes religious rituals is that they are <i>intentionally</i> designed to awaken the believerâs love of God and humility before Him through embodied, repeated practice. The Qurâan is explicit that ritual is a physical act with deeper metaphysical significance: âTheir meat will not reach Allah, nor will their blood, but what reaches Him is piety from youâ (Qurâan 22:37). In every age, human beings still need embodied ways to remember who they are, where they come from, and Whom they serve."},{question:"What is the connection between the Hajj rituals and the Prophet Abraham?",answer:"The rituals of Hajj (the annual pilgrimage to Mecca) reenact the story of the Prophet Abraham, his wife Hajar, and their son Ishmaelâso that every pilgrim physically steps inside a four-thousand-year legacy of trust in God. Islamic tradition treats the <i>saÊ¿i</i> (the walking between the hills of Safa and Marwa) as a direct inheritance from Hajar, whose effort and trust in God is memorialized in this ritual, and Hajj as the pilgrimage Abraham himself was commanded to call humanity to. Abraham built the Ka
1aba with Ishmael and was commanded by God to summon people to it: âAnd proclaim to the people the Hajj; they will come to you on foot and on every lean camel; they will come from every distant passâ (Qurâan 22:27). The <i>tawaf</i>, the <i>saÊ¿i</i>, the sacrifice on Eid al-Adha, and the pelting of the <i>jamarat</i> all trace back to specific moments in Abrahamâs familyâs life. Walking those same paths today places the pilgrim inside a continuous, multigenerational community of submission to one God."},{question:"What is the spiritual meaning of tawaf around the Kaaba?",answer:"<i>Tawaf</i>âcircling the Kaaba (the cube-shaped sanctuary in Mecca) seven timesâis a physical expression of placing God at the center of oneâs life. The Kaaba itself is not divine; it is made of stones and fabric. Its sanctity comes from God designating it as the direction Muslims face in prayer and the focal point of Hajj. Classical commentary on <i>tawaf</i> describes it as the body imitating what the heart already does in remembrance of God, and as a reflection of the angels who circle the Divine Throne in unceasing worship. The Qurâan ties outward symbols back to inward reverence: âAnd whoever honors the symbols of Allahâindeed, it is from the piety of heartsâ (Qurâan 22:32). Kissing or pointing toward the Hajar al-Aswad (the Black Stone) carries the same logic. The stone is not worshipped; the gesture is one of penitence and reverence, performed because the Prophet ï·º performed it. <i>Tawaf</i>, then, reminds us to place God at the center, and that every other concern is arranged around Him."},{question:"Why do Muslims walk between Safa and Marwa during Hajj?",answer:"The <i>saÊ¿i</i> (the walking and running between the hills of Safa and Marwa) follows the path of Hajar, the mother of the Prophet Ishmael, who searched the empty valley of Mecca for water for her infant son and was answered by God with the well of Zamzamâwater that still flows today. Every pilgrim retraces the same back-and-forth she walked between those two hills. The Qurâan honors the place itself: âIndeed, Safa and Marwa are among the symbols of Allahâ (Qurâan 2:158). For more than a millennium, Muslims of every background have walked in the footsteps of a woman who held no worldly status. She had been left in a barren place with an infant and a small bag of provisions, and she did not despair. Her trust in God in that moment of total vulnerability was met with mercy, and her example was preserved as one of the central rites of Islam. Status before God, in the logic of <i>saÊ¿i</i>, is built on faith and trust under hardship, not on gender or social rank."},{question:"What does the udhiya (sacrifice) on Eid al-Adha actually represent?",answer:"The <i>udhiya</i> (the ritual sacrifice of an animal on Eid al-Adha, the festival of sacrifice) commemorates the Prophet Abrahamâs willingness to give up what was most beloved to himâhis son Ishmaelâin obedience to God. When Abraham and Ishmael both submitted, God ransomed Ishmael with a great sacrifice (Qurâan 37:107). The act of slaughter was never the goal; the surrender of the heart was. The Qurâan states this with unusual directness: âTheir meat will not reach Allah, nor will their blood, but what reaches Him is piety from youâ (Qurâan 22:37). Classical commentary on this verse explains that what God sought from Abrahamâs trial was <i>istislam</i>: the firm and complete submission of both father and son, and not the death of Ishmael. The <i>udhiya</i> reenacts that surrender every year. In practice, the meat of the <i>udhiya</i> is shared with family, neighbors, and the poor, including non-Muslims, reflecting the humanitarian instinct Islam attaches to every act of worship: trust in God, then care for creation."}]},{slug:"what-to-do-on-the-day-of-arafah-making-the-most-of-a-blessed-day",shortSummary:"",FAQs:[{question:"What should a Muslim do on the Day of 'Arafah if not performing Hajj?",answer:"Yaqeen's guide outlines five priorities for non-pilgrims: fast the day (highly recommended sunnah), engage in continuous <i>duÊ¿Äʾ</i> and <i>dhikr</i>, perform sunnah prayers with focus and presence of heart, reflect on the Prophet's ï·º Final Sermon delivered at 'Arafah, and renew one's covenant with Allah by committing to one concrete spiritual change. The Prophet ï·º said the best supplication is the supplication on the Day of 'Arafah (<i>Sunan al-TirmidhÄ«</i>, no. 3585)."},{question:"Is fasting on the Day of 'Arafah obligatory?",answer:"It is highly recommended (sunnah) for those not performing Hajj, but not obligatory. The Prophet ï·º said fasting on this day 'expiates the sins of the previous year and the coming year' (<i>Sahih Muslim</i>, no. 1162). Pilgrims at 'Arafah do not fast, since they are engaged in the standing and need their strength for worship and supplication."},{question:"What did the Prophet ï·º say at 'Arafah in his Final Sermon?",answer:"On his only Hajj, the Prophet ï·º delivered the <i>Khuá¹bat al-WadÄÊ¿</i> (Farewell Sermon) at 'Arafah, addressing the sanctity of life and property, justice, the rights of women, racial equality ('no Arab has superiority over a non-Arab except by piety'), and the prohibition of <i>ribÄ</i> (usury). The verse 'This day I have perfected your religion for you' (Qur'an 5:3) was revealed at 'Arafah on that day, signaling the completion of revelation."},{question:"Why is the Day of 'Arafah considered the holiest day of the year?",answer:"The Prophet ï·º said, 'There is no day on which Allah frees more people from the Fire than the Day of 'Arafah' (<i>Sahih Muslim</i>, no. 1348). It is also linked to the primordial covenant in which Allah took testimony from all human souls (Qur'an 7:172), making 'Arafah a day of return to one's original witness of Allah's lordship â a renewal not just of practice, but of identity."},{question:"How should a non-pilgrim spend the Day of 'Arafah hour by hour?",answer:"The article recommends starting the day fasting, praying Fajr in congregation, dedicating extended time to <i>dhikr</i>
1 and personal supplication â especially the period from after 'Aá¹£r until Maghrib, which scholars identify as the most virtuous portion of the day â reflecting on the Final Sermon, and writing down one concrete spiritual change to commit to before the day ends."},{question:"What is the best dhikr to repeat on the Day of 'Arafah?",answer:"The Prophet ï·º said: 'The best of what I and the prophets before me have said is: <i>LÄ ilÄha illÄ AllÄh waḥdahu lÄ sharÄ«ka lah, lahu al-mulk wa lahu al-ḥamd, wa huwa Ê¿alÄ kulli shayʾin qadÄ«r</i>' â 'There is no deity except Allah alone, without partner; to Him belongs all dominion and praise, and He is over all things capable' (<i>Sunan al-TirmidhÄ«</i>, no. 3585)."}]},{slug:"important-duas-and-dhikr-for-the-day-of-arafah",shortSummary:"",FAQs:[{question:"What is the most important duÊ¿Äʾ to recite on the Day of 'Arafah?",answer:"The Prophet ï·º said the best <i>duÊ¿Äʾ</i> on the Day of 'Arafah is: <i>LÄ ilÄha illÄ AllÄh waḥdahu lÄ sharÄ«ka lah, lahu al-mulk wa lahu al-ḥamd, wa huwa Ê¿alÄ kulli shayʾin qadÄ«r</i> â 'There is no deity except Allah alone, without partner; to Him belongs all dominion and praise, and He is over all things capable' (<i>Sunan al-TirmidhÄ«</i>, no. 3585, graded <i>ḥasan</i> by al-AlbÄnÄ«)."},{question:"What duÊ¿Äʾ did 'Ali ibn AbÄ« ṬÄlib (ra) recite on 'Arafah?",answer:"'Ali (ra) is reported to have recited: <i>AllÄhumma aÊ¿tiq raqabatÄ« mina al-nÄr, wa awsiÊ¿ lÄ« mina al-rizq al-ḥalÄl, waá¹£rif Ê¿annÄ« fasaqat al-jinni wa al-ins</i> â 'O Allah, free my neck from the Fire, expand for me lawful provision, and turn away from me the wicked among the jinn and humankind' (al-SuyÅ«á¹Ä«, <i>al-Durr al-manthÅ«r</i>, 15:430)."},{question:"What dhikr did Ibn 'Umar (ra) repeat throughout the Day of 'Arafah?",answer:"Ê¿AbdullÄh ibn Ê¿Umar (ra) spent much of 'Arafah engaged in <i>takbÄ«r</i> and praise: <i>AllÄhu akbar, AllÄhu akbar, wa lillÄhi al-ḥamd</i> â 'Allah is the Greatest, Allah is the Greatest, and to Allah belongs all praise.' He would intersperse this dhikr with personal supplication throughout the day."},{question:"What duÊ¿Äʾ did Ibn 'Umar (ra) follow his takbÄ«r with?",answer:"He would recite: <i>AllÄhumma ihdinÄ« bi-al-hudÄ, wa qinÄ« bi-al-taqwÄ, waghfir lÄ« fÄ« al-Äkhirati wa al-Å«lÄ</i> â 'O Allah, guide me with Your guidance, protect me with Your <i>taqwÄ</i>, and forgive me in this life and the next' (Ibn Taymiyyah, <i>Sharḥ Ê¿umdat al-fiqh</i>, 3:509). He would then make quiet personal supplication for roughly the length of SÅ«rat al-FÄtiḥah."},{question:"When during the Day of 'Arafah are duÊ¿Äʾ most accepted?",answer:"Scholars identify the most virtuous portion of the day as the period from after 'Aá¹£r until sunset, when pilgrims at 'Arafah make their final standing. Non-pilgrims are encouraged to set aside this window for concentrated <i>duÊ¿Äʾ</i>, although the entire day is a time of acceptance â the Prophet ï·º called the supplication of 'Arafah 'the best of supplications.'"},{question:"Can I make personal duÊ¿Äʾ on the Day of 'Arafah, or must I use prophetic words?",answer:"Both are encouraged. The article emphasizes that while the Prophet's ï·º words and the supplications of the Companions carry the greatest authority and barakah, believers are also invited to 'let their hearts pour out' with personal <i>duÊ¿Äʾ</i> in their own language â for spiritual salvation, the people they love, worldly needs, and Paradise."}]},{slug:"a-sacred-invitation-what-to-do-in-the-first-10-days-of-dhul-hijjah",shortSummary:"",FAQs:[{question:"Why are the first 10 days of Dhul Hijjah considered sacred?",answer:"The Prophet ï·º said: 'There are no days during which righteous deeds are more beloved to Allah than these days,' referring to the first ten of Dhul Hijjah (<i>Sahih al-BukhÄrÄ«</i>, no. 969). Allah Himself swears by them in the Qur'an: 'By the dawn, and by the ten nights' (Qur'an 89:1â2), which the majority of <i>mufassirÅ«n</i> identify as the first ten nights of Dhul Hijjah â a divine endorsement of their unique weight."},{question:"What deeds are most recommended in the first 10 days of Dhul Hijjah?",answer:"Yaqeen's guide outlines nine categories: (1) learning about the days' virtues, (2) fasting â especially the 9th, the Day of 'Arafah, (3) increasing <i>dhikr</i>, (4) praying <i>tahajjud</i> and voluntary prayers, (5) giving charity, (6) refining one's character, (7) seeking forgiveness, (8) contributing to the community, and (9) offering <i>udhiya</i> on Eid al-Adha. The Prophet ï·º encouraged abundant <i>tahlÄ«l</i>, <i>takbÄ«r</i>, and <i>taḥmÄ«d</i> across all ten days."},{question:"Should I fast all 10 days of Dhul Hijjah?",answer:"Fasting the first nine days is recommended (sunnah); the 10th â Eid al-Adha â is forbidden to fast. The Day of 'Arafah (the 9th) is the most emphasized (<i>Sunan al-NasÄʾī</i>, no. 2372). If fasting all nine is not feasible, fasting the Day of 'Arafah alone â which expiates the sins of the previous and coming year â is the priority."},{question:"What dhikr is recommended during the first 10 days of Dhul Hijjah?",answer:"The Prophet ï·º encouraged abundant <i>tahlÄ«l</i> (LÄ ilÄha illÄ AllÄh), <i>takbÄ«r</i> (AllÄhu akbar), and <i>taḥmÄ«d</i>
1 (al-ḥamdu lillÄh) throughout these days. The <i>takbÄ«r</i> is recited audibly in markets, homes, and after prayers â reviving the prophetic practice of Ibn 'Umar and AbÅ« Hurayrah (ra), who would walk through the markets of Madinah reciting it loudly so that others would join."},{question:"What is the reward for praying Fajr in congregation during these days?",answer:"The Prophet ï·º said that whoever prays Fajr in congregation, then sits in the remembrance of Allah until sunrise, then prays two <i>rakÊ¿ahs</i>, receives 'the reward of a complete Hajj and 'umrah' (<i>Sunan al-TirmidhÄ«</i>, no. 586) â a practice especially valuable during the first ten days, when every righteous deed is multiplied."},{question:"What is udhiya, and is it required during Dhul Hijjah?",answer:"<i>Udhiya</i> is the ritual sacrifice of an animal â sheep, goat, cow, or camel â on the days of Eid al-Adha (the 10th, 11th, 12th, and in some madhÄhib the 13th of Dhul Hijjah), with the meat distributed among family, neighbors, and the poor. The Prophet ï·º said that no deed on the day of <i>naḥr</i> (the 10th) is more beloved to Allah than the <i>udhiya</i> (<i>Sunan Ibn MÄjah</i>, no. 3126). It is an emphasized sunnah for those who can afford it (<i>wÄjib</i> in the ḤanafÄ« school)."}]},{slug:"centering-sacrifice-the-importance-of-the-first-10-days-of-dhul-hijjah",shortSummary:"",FAQs:[{question:"What does it mean to 'center sacrifice' during Dhul Hijjah?",answer:"The article argues that the first ten days of Dhul Hijjah are not merely a season of reward but a season of <i>sacrifice</i> â willingly giving up comfort, time, sleep, and resources for the sake of Allah. It distinguishes 'convenient sacrifice' (giving what is easy to give) from 'costly devotion' (giving what genuinely strains us), arguing that the latter is what these days call for, in imitation of Ibrahim (as)."},{question:"How does Prophet Ibrahim's (as) story shape Dhul Hijjah?",answer:"Each major rite of Dhul Hijjah commemorates a sacrifice from Ibrahim's family: Hajar's running between á¹¢afÄ and Marwah re-enacts a mother's desperate trust in Allah; the <i>udhiya</i> re-enacts Ibrahim's willingness to sacrifice his son IsmÄʿīl (as); and the stoning of the JamarÄt re-enacts Ibrahim's rejection of Shayá¹Än's whispers. Dhul Hijjah is, in essence, an annual return to Ibrahim's family's posture of total surrender."},{question:"Why does Allah swear by the 10 days of Dhul Hijjah in the Qurâan?",answer:"Allah says, 'By the dawn, and by the ten nights' (Qur'an 89:1â2). When Allah swears by something in the Qur'an, He is drawing attention to its immense weight and worth. The Prophet ï·º confirmed this by saying that no good deeds are more beloved to Allah than those done in these ten days (<i>Sahih al-BukhÄrÄ«</i>, no. 969) â a rare convergence of Qur'anic and prophetic emphasis on a single time period."},{question:"How is sacrifice in Dhul Hijjah different from charity in Ramadan?",answer:"The article frames Ramadan as a season of <i>restraint</i> (giving up food, drink, and desire from dawn to dusk) and Dhul Hijjah as a season of <i>surrender</i> (giving up something one already owns and loves, willingly, for Allah). Both are forms of <i>taqwÄ</i>, but Dhul Hijjah specifically commemorates Ibrahim's act of releasing what he loved most â making the spirit of these days less about abstaining and more about offering."},{question:"How can a Muslim 'sacrifice' in these 10 days without performing Hajj?",answer:"By identifying what is genuinely costly and offering it: extra night prayer when sleep is desired, fasting through demanding workdays, charity that affects the budget rather than the surplus, mending a broken relationship, and patience with people who frustrate us. The article urges believers to ask, 'What am I willing to give up for Allah this Dhul Hijjah?' â and to act on the honest answer."}]},{slug:"convert-connection-dhul-hijjah-reflections-with-sh-abdullah-oduro",shortSummary:"",FAQs:[{question:"Why does Dhul Hijjah carry special meaning for converts to Islam?",answer:"Sh. Abdullah Oduro reflects that converts often feel a particular resonance with Prophet Ibrahim's (as) story during Dhul Hijjah â leav
1ing familiar family, community, and identity behind for the sake of Allah. The themes of patience, sacrifice, and hope embedded in Hajj and Eid al-Adha mirror the convert's own journey, and Ibrahim's experience of standing alone for the truth becomes a source of comfort rather than isolation."},{question:"What does Sh. Abdullah Oduro say about loneliness during Eid al-Adha?",answer:"He shares that after his first Eid prayer, he returned home alone â expecting celebration but finding silence. His advice to converts struggling with this isolation: build new traditions intentionally, gather other new Muslims, host Eid meals, and remember that Ibrahim (as) himself stood alone for the truth before any community formed around him. 'You may feel like no one hears you, understands you, or supports you,' he says â but the prophetic example shows that solitude in obedience is not abandonment."},{question:"How can converts include their non-Muslim families in Dhul Hijjah?",answer:"Sh. Oduro recounts using accessible educational tools â like <i>The Illustrated Guide to Islam</i> â to explain the Abrahamic roots of Hajj rituals to his family. Because Ibrahim is honored across the Abrahamic faiths, converts can use Hajj season as a bridge to discuss shared spiritual heritage rather than perceived difference, often turning skepticism into curiosity and even support."},{question:"What three lessons from Prophet Ibrahim (as) does Sh. Oduro highlight for converts?",answer:"Patience â managing family relationships with kindness even when faith is misunderstood; Sacrifice â relinquishing social standing and acceptance for spiritual conviction; and Hope â trusting Allah's mercy through periods of loneliness and confusion. These map directly onto Ibrahim's leaving his homeland, his offering of his son, and his trust as he placed Hajar and IsmÄʿīl in the desert â a prophetic blueprint for the convert's own journey."},{question:"How can a convert prepare emotionally for their first Hajj?",answer:"Sh. Oduro emphasizes that emotional and mental preparation matters as much as logistical preparation. Reading about Ibrahim's life, learning the meaning of each Hajj rite in advance, and connecting with the convert community before traveling helps the journey become a continuation of one's conversion rather than an isolated event â a pilgrimage not only to the KaÊ¿bah but back to the same act of trust that began the convert's Islam."}]},{slug:"dhul-hijjah-10-day-gameplan",shortSummary:"",FAQs:[{question:"What is the Yaqeen Dhul Hijjah 10-Day Gameplan?",answer:"The Gameplan is a free printable day-by-day checklist published by Yaqeen Institute that pairs each of the first ten days of Dhul Hijjah with a focused deed and a tracking checkbox. It is designed to help worshippers stay consistent across the ten most beloved days of the year (<i>Sahih al-BukhÄrÄ«</i>, no. 969) without becoming overwhelmed."},{question:"How is the Dhul Hijjah 10-Day Gameplan structured?",answer:"Each day in the plan includes a single primary deed, supporting reminders, and a tracking checkbox. The structure builds intentionally toward the Day of 'Arafah (day 9) and Eid al-Adha (day 10), with the early days emphasizing habit formation â increased <i>dhikr</i>, regular prayer, small acts of charity â and the later days emphasizing intensity of worship, fasting, and final preparation for the day of <i>naḥr</i>."},{question:"What deeds does the Dhul Hijjah Gameplan prioritize?",answer:"The plan rotates through the deeds the Prophet ï·º specifically encouraged in these ten days: increased <i>dhikr</i> (especially <i>takbÄ«r</i>, <i>taḥmÄ«d</i>, and <i>tahlÄ«l</i>), fasting (the 9th in particular), reading and reflecting on the Qur'an, giving charity, praying <i>tahajjud</i>, mending relationships, and preparing for <i>udhiya</i>. Each anchor deed is drawn from prophetic guidance for these days."},{question:"Is the Dhul Hijjah Gameplan suitable for beginners?",answer:"Yes â the plan is intentionally accessible, requiring no specialized knowledge, and focuses on small daily commitments rather than an overwhelming list. It is especially useful for new Muslims, returning Muslims, or anyone who has not previously structured their Dhul Hijjah worship and wants a frictionless way to engage."},{question:"How do I download the Dhul Hijjah 10-Day Gameplan?",answer:"The Gameplan is available as a free printable PDF on the Yaqeen Institute blog under the article 'Dhul Hijjah 10-Day Gameplan' at yaqeeninstitute.org. It is sized for home printing or phone reference and is republished annually so the latest version always aligns with the current year's Dhul Hijjah dates."}]},{slug:"attaching-to-allah-10-duas-for-this-dhul-hijjah",shortSummary:"",FAQs:[{question:"What is the 'Attaching to Allah' Dhul Hijjah duÊ¿Äʾ list?",answer:"It is a printable collection of ten <i>duÊ¿Äʾs</i> curated by Dr. Omar Suleiman and Ustadha Sarah Sultan to accompany Yaqeen Institute's 'Attaching to Allah' video series on the life of Prophet Ibrahim (as). Each <i>duÊ¿Äʾ</i> is presented with Arabic, transliteration, and English translation, organized around different 'areas of attachment' â provision, family, hardship, hope, and forgiveness."},{question:"Who are Dr. Omar Suleiman and Sarah Sultan?",answer:"Dr. Omar Suleiman is the founder and president of Yaqeen Institute and an imam well
1known for his Ramadan and Dhul Hijjah series. Ustadha Sarah Sultan is a licensed mental health therapist and Yaqeen Institute Fellow whose work bridges Islamic spirituality and psychological well-being. Together they co-authored the 'Attaching to Allah' series, exploring Prophet Ibrahim's (as) deep reliance on Allah at every stage of his life."},{question:"Why are these 10 duÊ¿Äʾs recommended for Dhul Hijjah?",answer:"Dhul Hijjah is the season in which Ibrahim's (as) attachments â to his family, his comfort, even his son â were tested, and he responded each time by reattaching to Allah alone. The ten <i>duÊ¿Äʾs</i> in the list are themed around the attachments Ibrahim faced and ask Allah to redirect those same attachments back to Him in the worshipper's own life."},{question:"Are these duÊ¿Äʾs from the Qur'an or the Sunnah?",answer:"Many are direct supplications of Prophet Ibrahim (as) preserved in the Qur'an â including his asking Allah for righteous offspring (Qur'an 37:100), for Makkah to be made secure (Qur'an 14:35), and for forgiveness for himself and his parents (Qur'an 14:41). Others are from the Prophet Muhammad ï·º, drawn from authentic hadith collections, woven together so the worshipper inherits both prophetic legacies."},{question:"How should I use the 10-duÊ¿Äʾ list during Dhul Hijjah?",answer:"The authors suggest taking one <i>duÊ¿Äʾ</i> per day across the ten days â memorizing it, reflecting on its meaning, and integrating it into daily prayers and personal moments. The list is designed to be used alongside the 'Attaching to Allah' video series, with each <i>duÊ¿Äʾ</i> reinforcing a theme from the corresponding episode about Ibrahim's life."}]},{slug:"holistic-healing-islams-legacy-of-mental-health",shortSummary:"",FAQs:[{question:"Is it true that a good Muslim shouldn't struggle with depression or anxiety?",answer:'This idea has no grounding in the Qur\'an or Sunnah. The ayah sometimes cited to support it, "there will be no fear for them, nor will they grieve" (2:277), was understood by early scholars to describe the state of believers in the hereafter, not in this life. This world, by its very nature, is a place of trials. The Prophet ï·º himself experienced grief so deep during a period of bereavement that chroniclers coined it "the year of sadness." But it is important to distinguish between sadness, which is a normal human emotion, and clinical conditions like depression and anxiety, which can be chronic and debilitating. Muslim scholars recognized this distinction centuries ago. Ibn al-Qayyim categorized anxiety, sadness, depression, and anger as distinct diseases of the heart, each requiring its own form of treatment. Al-Balkhi went further, refining diagnostic criteria for depression, anxiety, phobias, and obsessive-compulsive disorder, and urging his readers to seek treatment regardless of whether they attributed the cause to biological or spiritual factors. Far from dismissing mental illness, the Islamic tradition built hospitals with dedicated psychiatric wards and developed early forms of antidepressants. Strength of faith does not make a person immune to psychological illness, and seeking help for it has deep precedent in our tradition.',citations:[{name:"Qur'an 2:277",url:"https://quran.com/2/277"}]},{question:"How did the Prophet ï·º deal with grief and sadness?",answer:'He ï·º did not suppress his emotions or pretend they were not there. While watching his son Ibrahim take his last breaths, tears streamed down his blessed face and he said: "Indeed, the eyes shed tears and the heart feels sorrow. Yet we do not say anything except that which is pleasing to our Lord. Your departure, O Ibrahim, surely leaves us all deeply saddened." He grieved openly and completely, while anchoring his words in contentment with Allah\'s will. Beyond personal loss, he ï·º also carried the weight of people rejecting the message he was sent to deliver. That anguish ran so deep that Allah Himself intervened, telling him not to destroy himself in regret over their disbelief (35:8). In both cases, the response was never to stop feeling, but to find a way through.',citations:[{name:"Qur'an 35:8",url:"https://quran.com/35/8"},{name:"Sahih al-Bukhari (hadith of the Prophet at his son Ibrahim's death)",sameAs:"https://www.wikidata.org/wiki/Q1023470"}]},{question:"Does Islam encourage seeking professional help for mental health, or only spiritual remedies?",answer:'The Prophetic approach was holistic. The Prophet ï·º instructed the companions directly: "Seek cures, O servants of God, for God has placed a cure for every ailment that He has allowed." Early Muslim scholars took this seriously. By the ninth century, Muslim scholars were already writing about conditions we now recognize as depression, anxiety, and obsessive-compulsive disorder, and encouraging those who suffered from them to seek treatment. Muslim hospitals built dedicated psychiatric wards and developed early forms of antidepressants centuries before comparable institutions existed in Europe. Spiritual remedies, physical care, diet, and social and emotional support were treated as interrelated dimensions of care. Seeking therapy or medication is not a departure from faith but an extension of the same Prophetic encouragement to pursue every available means of healing.',citations:[{name:"Sunan Abu Dawud (hadith on seeking cures)",url:"https://sunnah.com/abudawud:3855"}]},{question:"Did Muslim scholars throughout history take mental health seriously, or is this a modern Western concept?",answer:"Muslim scholars were writing about depression, anxiety, phobias, and obsessive-compulsive disorder centuries before modern psychiatry gave these conditions their current names. Al-Balkhi (d. 934 CE), in his <i>Masalih al-abdan wa-l-anfus</i> (<i>Sustenance of the Soul</i>
1), described symptoms of obsessive-compulsive disorder so precisely that they closely match the diagnostic standards used by psychiatrists today. He argued that psychological illnesses are at least as serious as physical ones, because virtually everyone will face them at some point. Ibn al-Qayyim similarly devoted significant scholarship to what he called diseases of the heartâanxiety, sadness, depression, and angerâtreating them as real conditions requiring real treatment. This is not a borrowed concept; it is a part of our tradition."},{question:"Why do so many Muslims still avoid mental health treatment, even when they are clearly struggling?",answer:"The stigma we see today is largely a product of history, not of Islam itself. Colonialism reshaped many Muslim societies and Muslim-majority societies in ways that severed communities from their own intellectual heritage. Colonial and postcolonial educational reforms often privileged Western-style secular institutions and helped institutionalize a sharper separation between religion and modern scientific knowledge. In some Muslim contexts, this contributed to ambivalence toward psychology and professional mental-health care, especially where these fields were perceived as secular. Alongside biomedical and psychological explanations, some Muslim communities have retained or revived spiritualized explanations of mental illness. Where these explanations become exclusive, professional help may be stigmatized and sufferers may think of therapy as an admission of weak faith. Add to that fears of being judged by Muslim providers or misunderstood by non-Muslim ones, and these factors have resulted in countless people suffering in silence."}]},{slug:"coping-with-pandemics-psychological-and-spiritual-lessons-from-islamic-history",shortSummary:"",FAQs:[{question:"Is a pandemic a punishment from Allah, or is it a test?",answer:"Neither a simple yes nor a wholesale dismissal is accurate. The Prophet ï·º himself described the plague as simultaneously a punishment for those who persisted in sin and disbelief, and a mercy for the believers who remain patient. No human being can look at a specific epidemic and declare with certainty which of these it is for any given person or community. Scholars explain that even a Muslim living in sinfulness who is struck by the plague is shown mercy, because their sins are being expiated in this life rather than the next. The wiser posture, then, is to use a calamity as a mirror: examine what needs correcting in your own life, seek forgiveness sincerely, and hold on to hope rather than despair. A primary source of comfort for Muslims was the Prophetic assurance that the one who endures the plague with patience, seeking reward from God, receives a reward like that of the martyr.",citations:[{name:"Sahih al-Bukhari 5734 (the reward of a person who suffers plague with patience)",url:"https://sunnah.com/bukhari:5734"}]},{question:"How do I know when to take precautions and when to just trust Allah?",answer:"This is one of the most important clarifications our tradition offers: Taking precautions and trusting Allah are not opposites. They work together. The Prophet ï·º himself said: \"If you hear that there is plague in a land, do not enter it, and if it breaks out in a land you are in, do not leave it.\" This instruction is not a sign of doubting Allah's power; it is following the natural order Allah created. Taking the <i>asbab</i> (the everyday means He has placed at our disposal) is itself an act of obedience. A physician who puts on gloves and a mask does not love Allah any less than the one who refuses; in fact, abandoning one's post out of a misplaced sense of <i>tawakkul</i> (reliance on Allah) would be a dereliction of responsibility. What the Muslim heart holds on to, while using every available means, is the certainty that those means are precautions only, and that the ultimate outcome rests entirely with Allah.",citations:[{name:"Sahih al-Bukhari 5728 (the Prophet's instruction on entering or leaving a plague-stricken land)",url:"https://sunnah.com/bukhari:5728"}]},{question:"I've been so isolated lately and it's really affecting me. Is there any spiritual meaning in loneliness?",answer:'Yes, and the tradition addresses this directly. Imam Ibn Ê¿Ataʾ Allah al-Sakandari wrote in his <i>Aphorisms</i>: "When God isolates you from His creation, know that He wants to open the door of intimacy with Him for you." Loneliness, as painful as it is, can reveal how dependent we had become on social life for things that only Allah can truly provide. Isolation strips away the noise and forces a kind of reckoning: What has been distracting me from a real personal relationship with my L
1ord? This does not mean the pain of loneliness should be minimized. The Prophet ï·º himself spent much of his time with his companions, teaching them, joking with them, and caring for them. Social connection is deeply embedded in Islam. But when isolation is imposed on us, the tradition gives us a way to receive it as something other than pure loss. When that season of separation lifts, the believer often finds they appreciate righteous company with a gratitude they never had beforeâand they carry with them a stronger connection to Allah that the crowd had never allowed them to build.'},{question:"Is it wrong to feel afraid of getting sick or dying during a pandemic?",answer:"Fear is not a shortcoming in one's faith. Even in the centuries of plague, communities across the Islamic world experienced genuine terror. Scholars recorded widespread panic: children talking in the streets about approaching disease, survivors so preoccupied with burying the dead they had little time for anything else. This fear was real and documented. No one was condemned for feeling it. What the tradition cautions against is allowing fear to consume you to the point of despair or to push you toward selfish and harmful behavior. Classical scholars captured this with a striking image: fear and hope are like the two wings of a bird; if they are balanced, the bird flies well, but if one wing fails, the bird is in danger. Fear of Allah's power, paired with genuine hope in His mercy, is not a spiritual defect. It is the posture of a heart that is taking both this life and the next seriously. The problem arises only when the wings fall entirely out of balance."}]},{slug:"hijab-gendered-islamophobia-and-the-lived-experiences-of-muslim-women",shortSummary:"",FAQs:[{question:"Why do Muslim women who wear hijab experience Islamophobia differently from Muslim men?",answer:"Islamophobia does not fall equally on all Muslims. For Muslim women who wear hijab, religious identity is immediately visible in ways it often is not for Muslim men. This visibility means they navigate Islamophobia not only as a religious minority but also as women, with both dimensions compounding each other. Kimberle Crenshaw's framework of intersectionality helps explain this layering: Those who belong to more than one marginalized group experience structural violence in ways that cannot be reduced to any single identity. The result is a distinctly gendered form of Islamophobia in which the same woman may face xenophobic harassment, assumptions about terrorism, sexual objectification, and gendered stereotypes simultaneously. In mainstream narratives, hijab-wearing Muslim women are cast either as imperiled victims in need of saving or as threats to liberal values. Understanding Islamophobia without accounting for gender leaves out the lived reality of a significant portion of the Muslim community."},{question:"Why does wearing hijab cause some people to treat a Muslim woman as a foreigner, even if she was born and raised here?",answer:'Wearing a hijab can place a woman outside the boundaries of what some perceive as "normal" in the West, regardless of her actual citizenship or roots. This is not accidental. Through decades of media, political rhetoric, and colonial-era narratives, Islamic symbols like hijab have been racialized so that they signal "foreigner" to some observers. Some Muslim women, including converts with no ethnic ties to Muslim-majority countries, report being told to "go back to your country" or facing verbal and physical attacks they never experienced before wearing hijab. Their ethnicity did not shield them once they became visibly Muslim. This is how the racialization of Islam works: it collapses ethnic and cultural differences into a single perceived "Muslim race," and hijab becomes its most visible marker. Being perceived as belonging to a society becomes contingent on conformity to majoritarian norms; the moment a woman veers away, she is cast into the realm of Otherness.'},{question:"When Muslim women in hijab face harassment, is that just individual ignorance or part of something bigger?",answer:'Both, and it is worth holding both realities at once. Some incidents genuinely stem from individual ignorance or bi
1as, and people can and do act on prejudice without any awareness of the broader forces shaping their assumptions. At the same time, those assumptions do not form in a vacuum. Colonial powers used the image of the veiled woman to justify military occupation and cultural intervention. Post-9/11 media repeatedly linked hijab with terror, oppression, and civilizational "clash." These narratives, produced and reproduced across news, film, and political discourse, shape how people perceive Muslim women before they ever meet one. Recognizing these structural forces is not about adopting a posture of victimhood. Muslim women who wear hijab navigate these realities with resilience and agency every day. But understanding the ecosystem that fuels both casual ignorance and targeted hostility is essential to addressing either one effectively.'},{question:"Why do hijabi students often feel pressured to speak on behalf of all Muslims?",answer:'This phenomenon has a name: "spotlighting." It refers to students from minority religious or cultural backgrounds being called uponâexplicitly or implicitlyâto represent and explain their entire community. Research on Muslim women\'s experiences in North American schools found that many who began wearing hijab as teenagers felt they went from being regular students to designated spokespeople overnight. Before hijab, they could sit through class discussions about Islam like anyone else; afterward, every question was directed at them. Spotlighting reproduces the myth that Islam and Muslims are monolithicâthat one Muslim can account for the actions of all others. It also produces something particularly painful: guilt by association, where a teenager is implicitly expected to explain acts of violence she had no part in and did not support.'},{question:"How should Muslim women make sense of their identity when the world keeps projecting onto them?",answer:"The dominant narratives about hijab-wearing Muslim women in the West offer two options: the imperiled victim in need of saving or the threat to liberal values. Neither reflects reality, and both deny Muslim women the complexity of their actual lives. In truth, Muslim women navigate family, school, community, faith, and belonging in ways that far exceed any single trope. The hijab is perceived through racial, sexual, cultural, and national lenses all at onceâand the women who wear it know this better than anyone. Recognizing the layered nature of gendered Islamophobia, how it operates through race, history, media, and interpersonal violence simultaneously, is itself a form of clarity. It allows Muslim women to name what they experience accurately, to understand it as systemic rather than personal, and to stand in their identity without apology."}]},{slug:"the-systematic-rohingya-genocide-and-the-muslim-moral-imperative",shortSummary:"",FAQs:[{question:"Who are the Rohingya and why are they being targeted?",answer:'The Rohingya are a distinct Muslim ethnic group indigenous to the Arakan region of present-day Myanmar. Census records from the period of British colonial rule document the presence of a Muslim minority called the "Rooinga" in that land before the 1820s, suggesting centuries of established presence. Yet from the 1960s onward, successive military regimes systematically stripped the Rohingya of their citizenship, confined them to internal camps, limited them to having two children, and barred them from health care, education, and economic opportunity. The regime portrayed them as foreign Bengali migrants to manufacture a pretext for persecution. This targeting was driven not by evidence but by political expediency: As Myanmar\'s economy collapsed under disastrous military rule, the regime needed an internal "Other" to blame. The Rohingya were an easy targetâdifferent ethnically, religiously, and linguistically from the Burmese Buddhist majority, and less able to mount armed resistance than other minorities in the region.'},{question:"Is what happened to the Rohingya really a genocide?",answer:"Genocide is a precise term, and the evidence in the case of the Rohingya meets its criteria. Scholars describe genocide as a process unfolding in eight stages: classification, symbolization, dehumanization, organization, polarization, preparation, extermination, and denial. Each of these stages is identifiable in Myanmar's treatment of the Rohingya over several decades. The stage of extermination became undeniable in August 2017, when over 9,000 Rohingya were killed in a single month, entire villages were torched, and mass rapes of women and girls were carried out. The scale and coordination of that violence cannot be explained without organized military and extremist mob mobilization. Canada formally recognized it as genocide in 2018, Gambia filed suit at the International Court of Justice in 2019, and in 2024 the International Criminal Court prosecutor sought an arrest warrant against Myanmar's military chief for crimes against humanity."},{question:"Why did the international community fail to intervene in the Rohingya genocide?",answer:"Part of the answer lies in how the crisis was framed. Myanmar's 2015 democratic transition, led by Nobel Peace Prize laureate Aung San Suu Kyi, was celebrated
1worldwide as a sign of progress. That narrative made it difficult for the international community to reconcile its image of a democratizing nation with the reality of organized mass atrocities. The violence was further sanitized by the appearance of civilian governance, even though the military retained control of 25% of parliament and key security ministries. Suu Kyi herself defended the military before the International Court of Justice. The result was that the systematic extermination of the Rohingya unfolded behind a veneer of democratic legitimacy that the world was reluctant to look past. International recognition of the genocide has come slowly: Canada recognized it in 2018, Gambia filed a case at the ICJ in 2019, and the ICC prosecutor did not seek an arrest warrant against Myanmar's military leader until November 2024."},{question:"Does Islamic history offer models for responding to crises like the Rohingya genocide?",answer:"This is one of the most painful questions surrounding the crisis, and the collective response has been inadequate. However, Islamic history offers instructive precedents. During the famine of 639 CE, Caliph Ê¿Umar ibn al-Khattab refused to turn away a single refugee, shared the city's resources equitably, and paired all the refugees with families in the city until the famine was over. When Muslim women were taken captive by the Byzantines in the ninth century, the Abbasid Caliph MuÊ¿tasim personally led a campaign in response. When the Circassians faced genocide at the hands of Czarist Russia in 1864, the Ottomans negotiated with Russia on humanitarian grounds, opened their lands to survivors, and over decades enabled a full Circassian cultural renaissance. Decisive, costly, and sustained solidarity with persecuted Muslims has deep roots in our traditionâand indifference was never the norm."},{question:"I feel overwhelmed by the Rohingya genocide crisis. What can I actually do?",answer:"That feeling is understandable when confronting a catastrophe of this scale. Over 1.1 million Rohingya currently live in densely packed refugee camps in Cox's Bazar, Bangladesh, with no resolution in sight. But feeling small in the face of something enormous is not a reason for inaction; it is a reason to start with what is within your reach. The first and most fundamental act is <i>dua</i>. Allah has power over all things, and praying sincerely for our Rohingya brothers and sisters is not a passive actâit is a duty. After that, financial support to reputable aid organizations working inside the camps provides food, shelter, and medical care to people surviving on the barest necessities. And learning about this crisis and sharing what you learn breaks the silence that allows these tragedies to be forgotten. Knowledge, after all, is lightâand it is only with light that we can extinguish the darkness of our ignorance and indifference."}]},{slug:"islamophobia-and-the-law-unpacking-structural-islamophobia",shortSummary:"",FAQs:[{question:"What is the difference between everyday anti-Muslim prejudice and structural Islamophobia?",answer:"When a stranger makes an abrasive remark on the subway or a neighbor gives you a dirty look because of your hijab, that is what scholars call private Islamophobia. It is painful, real, and personal. Structural Islamophobia is something different: it is anti-Muslim bias embedded in laws, institutions, and policies. Rather than isolated acts of individual prejudice, it operates through systems that subordinate Muslim communities and vilify Islam. Through law, state power is used to subordinate Muslim communities and vilify Islam. The distinction matters because structural Islamophobia essentially legalizes discrimination. A random person's prejudice cannot strip you of your job, detain you without evidence, or deport you. Because structural Islamophobia operates through legislation framed in neutral language, it is far more insidiousâand far harder to challengeâthan what we encounter on the street."},{question:"How can laws that never mention Muslims still be Islamophobic?",answer:'This is precisely what makes structural Islamophobia so difficult to confront. Laws policing "face coverings" or promoting "state neutrality" are written in general terms, with no specific group named. Yet in practice, they overwhelmingly target Muslim communities. France\'s 2004 ban on religious clothing in state schools was publicly referred to as the "veil law" in both political debate and media coverage. Belgium\'s face-covering ban was upheld by the European Court of Human Rights despite its disproportionate impact on Muslim women. Latvia implemented a face-veil ban despite there being only three known instances of people wearing such clothing in the entire country. Framing discrimination as a security measure or a secularist ideal does not make it neutral. It simply makes it harder to name it for what it is.'},{question:"Why are Muslim women specifically targeted by so many of these laws?",answer:"Structural Islamophobia most frequently manifests through laws restricting what scholars call visual signifiers of Muslimness in the public sphere, and Muslim women bear the heaviest weight of that targeting. Across Europe, countries including Belgium, France, Bulgaria, Latvia, Austria, Denmark, and the Netherlands have all passed legislation restricting the niqab, burqa, or hijab in varying public contexts. Quebec's Bill 21 prohibits public sector employees from wearing religious symbols, which disproportionately affects hijab-wearing women in education. This pattern has deep colonial roots. Frantz Fanon documented how French colonizers in Algeria viewed removing the headscarf as a deliberate strategy for dismantling Algerian culture. The logic that Muslim women's dress is an affront to national identity did not begin in the twenty-first century;
1 it was inherited from that colonial project and continues to shape legislation today."},{question:"Is the UK's Prevent program actually targeting Muslims unfairly, or is that just a perception?",answer:"The data is unambiguous. Muslims make up roughly 5 percent of the UK population and account for approximately 5 percent of terrorist-related activity in the country. Despite this, Muslims represent 65 percent of all referrals to the Prevent counterextremism programâmeaning they are 40 to 50 times more likely than non-Muslims to be referred. A quarter of those referrals involve youth under the age of 15, and 95 percent of Muslim referrals require no further intervention, meaning the vast majority of people flagged pose no threat whatsoever. The consequences are real: Muslim parents must now think carefully about how they teach their children about their own faith, and Muslim children as young as four have been misidentified by the program. In North America, similar dynamics play out through the USA PATRIOT Act and Canada's Anti-Terrorism Act, where provisions have enabled indefinite detention, secret evidence, and the use of agent provocateurs who have actively manufactured the appearance of criminal activity in Muslim communities."},{question:"Why do so many young Muslims feel they have to prove they belong in their own countries?",answer:'When the state legislates laws that treat Muslim identity as a security threat or as culturally incompatible, it sends a clear message: Being visibly Muslim disqualifies you from full belonging. That message seeps into how young people understand themselves. Research on young American Muslims found that many felt they had to continuously demonstrate their "Americanness" in ways their non-Muslim peers never had to. The vast majority of young Muslim women interviewed who wore hijab had considered removing it out of fear, and nearly half had actually done so in certain settings because they felt threatened. This legal Othering does not stay confined to courtrooms; it reshapes identity. Some Muslim youth begin to see their religious and national identities as mutually exclusive. Silence in the face of these laws is not neutrality; it carries real cost for Muslim communities.'}]},{slug:"islamophobia-in-american-society-culture-politics",shortSummary:"",FAQs:[{question:"What is Islamophobia? Is it just people being rude to Muslims?",answer:'Islamophobia is far more than individual acts of rudeness or hostility. It is a form of racism that sustains and perpetuates negatively evaluated meanings about Muslims and Islam, constructing Muslims as the fundamental "Other" in society. This Othering operates on two levels. Structurally, it works through laws, policies, and government programs that subordinate Muslim communities and vilify Islamâlegislation like the USA PATRIOT Act, which authorized the monitoring of religious groups, indefinite detention, and the use of secret evidence, resulting in thousands of Muslims being rounded up, fingerprinted, and deported. Privately, it manifests through the fear, mistrust, and violence enacted by individuals and groups not directly tied to the state. Understanding both dimensions is essential because structural Islamophobia legalizes discrimination, making it far more insidious than what any single person can inflict.'},{question:"Did Islamophobia start after 9/11?",answer:'Many people assume 9/11 was the origin point, but Islamophobia is one of many strands of a much older legacy of racism embedded in American society. Over two hundred years before any modern "Muslim ban," Muslims were legally prevented from becoming naturalized American citizens. From 1790 to 1944, Muslim identity was treated by law as incompatible with American citizenship. Under the Naturalization Act of 1790, citizenship was restricted to "white" Christians, and whiteness itself was defined partly by Christianityâmeaning Arab Christians could be classified as white, while Muslim Arabs were categorized as an "enemy race." What happened after 9/11, and again under the Trump administration\'s Executive Order 13769, was not a new phenomenon; it was an updated version of exclusions that had been practiced for centuries.'},{question:"Why do people always assume Muslim men are violent and Muslim women are oppressed?",answer:'These assumptions are rooted in a long tradition of Orientalism, the Western intellectual framework that constructed the "East" as primitive, irrational, and opposed to Western civilization. In the context of the War on Terror, these older stereotypes were reconfigured into three dominant archetypes: the dangerous Muslim man, the imperiled Muslim woman, and the civilized Westerner positioned as rescuer. Muslim men were framed as violent and misogynistic; Muslim women as passive victims in need of salvation from their own culture. Over a thous
1and films throughout the twentieth century reinforced such portrayals, and post-9/11 media continued circulating them. Even some feminist groups endorsed the War on Terror under the guise of advocating women\'s rights, while the voices of Muslim women themselves were largely excluded from a debate that was ostensibly about them.'},{question:'What is the "good Muslim/bad Muslim" framework and why does it matter?',answer:'This framework, as described by political theorist Mahmood Mamdani, divides Muslims into two camps based on how closely they conform to Western secular norms. "Good Muslims" are modern, Westernized, and unquestioningly supportive of US foreign policy. "Bad Muslims" are those who hold visibly to religious identity, traditional dress, or any critical stance toward that foreign policy. Visual markers determine the sorting: A lighter complexion, Western clothing, and an American accent signal "good"; a beard, hijab, foreign accent, or darker skin signal "bad." The framework matters because it is designed never to be satisfiedâa "good Muslim" must be even more Westernized than Westerners to legitimize their credentials. The pressure to constantly prove loyalty, condemn terrorism on behalf of all Muslims, or distance yourself from your own faith is not a reasonable social expectation.'},{question:"Why do Sikhs get attacked by people who think they are Muslim? What does that tell us about Islamophobia?",answer:'The fact that Sikh men wearing turbans have been harassed and attacked by people who assume they are Muslim reveals something important about how Islamophobia operates. It works in part through racialized visual markers: a turban, a beard, brown skin. Anyone who visually "reads" as Muslim can become a target, regardless of their actual faith. This confirms that Islam has been racialized in American society, with ethnic, cultural, and religious differences collapsed into a single perceived category. At the same time, American history shows that being Muslim has also been a direct basis for legal exclusion. Under the Naturalization Act of 1790, Arab Christians could be classified as "white" and granted citizenship, while Muslim Arabs were classified as an enemy race and barred from naturalization. It was specifically their Islamic faith that determined their racial status. Taken together, these realities show that Islamophobia is not just one thing. The Sikh experience and the history of Muslim exclusion from citizenship show that Islamophobia can be driven by what someone believes and by what someone looks like, and the two do not always overlap.'}]},{slug:"the-far-rights-love-affair-with-islamophobia",shortSummary:"",FAQs:[{question:"Why has Islamophobia become the defining issue for far-right movements in the West?",answer:'Far-right political parties and street protest movements have existed in Europe and North America for decades, but anti-Muslim racism has increasingly become their central organizing principle. Groups like the English Defence League in the UK, the Bloc Identitaire in France, and La Meute in Quebec have defined themselves almost exclusively by their opposition to Islam and Muslims. Politicians like Geert Wilders in the Netherlands devoted nearly half his election manifesto to the "de-Islamization" of the country, including proposals to ban the Qur\'an, close all mosques, and impose a tax on hijab. This is not incidental. Islamophobia gives far-right movements a broadly appealing enemy that lets them rebrand white nationalism as a defense of "civilization" and "values." In doing so, parties that were once considered fringeâlike France\'s Front National or the PVVâhave entered mainstream politics and shifted the entire political discourse to the right.'},{question:"Are these just fringe groups, or do far-right anti-Muslim views actually have mainstream support?",answer:"In the 2017 French election, Marine Le Pen's Front Nationalâa party founded by neofascists and opponents of decolonizationâsecured 34 percent of the vote in a runoff against Emmanuel Macron. In the Netherlands, Wilders's PVV went from a fringe minority party in 2006 to the third-largest party in parliament by 2010. In the UK, the Brexit campaign drew heavily on fears of Muslim immigration, using imagery of refugee columns to suggest that \"dark-skinned Others\" were poised to erode English culture. In Canada, researchers found no fewer than one hundred far-right extremist groups, and a study commissioned by the Canadian Broadcasting Corporation found that Islamophobic language online increased by 200 percent from 2015 to 2016 alone. Far-right Islamophobic views are increasingly normalized in public and political discourse across the West."},{question:'How do far-right groups use the idea of "protecting Western civilization" to justify targeting Muslims?',answer:'This framing draws on a long Orientalist tradition that constructs Islam as the antithesis of Western values. Many far-right movements invoke nostalgia for a "golden age" predating the arrival of Muslim communities and incorporate Crusades-era imagery into their messaging and branding. Steve Bannon, the former White House Chief Strategist, explicitly framed the conflict as civilizational, arguing that the "Judeo-Christian West" was in the early phases of an apocalyptic war with Islam. By casting Muslims as an existential threat to civilization itself, far-right figures elevate what is in reality anti-Muslim racism to the level of cultural self-defense.'},{question:"Why do far-right groups in Europe keep targeting Muslim women's dress specifically?",answer:"Policing Muslim women's clothing has been a central strategy for far-right movements because visual signifiers of Muslimness are the easiest targets for legislation framed as defending national values. In France, the trajectory is clear: a ban on hijab in public schools in 2004, a niqab ban in 2010, attempted burkini bans in 2016, and public pressure that forced Europe's largest sports retailer to abandon plans to sell a sports hijab. These measures are presented as upholding <i>laicite</i> (French secularism), but as scholars have documented, French secularism was originally designed to separate Catholicism from the stateâit was only in recent decades that Islam became its primary target. The Stasi Commission Report of 2003, which laid the groundwork for much of this legislation, explicitly associated Islam with polygamy, genital mutilation, and forced marriages. This is not secularism applied neutrally; it is the far right's civilizational framing translated into law."},{question:'Is far-right extremism actually a greater security threat than the "radical Islam" these groups claim to be fighting?',answer:'Canada\'s intelligence service, CSIS, has noted that the threat posed by far-right and white supremacist ideologies outweighs that of radical Muslim religious ideologies with regard to national security. In the United States, from 2008 to 2016, the number of domestic terrorist acts by far-right extremist groups were more than double those committed by Muslim extremists. From 2011 to 2016, only 12 percent of terrorist attacks in the US were committed by Muslims, while more than half were carried out by white supremacists, neo-Nazis, and other far-right groups. Despite this, under the Trump administration, Countering Violent Extremism funding for Muslim organizations and groups tackling white supremacist violence was cut, while the program was reoriented to focus almost exclusively on what officials called "radical Islam."'}]},{slug:"we-used-to-have-no-regard-for-women-gender-equity-the-advent-of-islam",shortSummary:"",keyTakeaways:["The advent of Islam transformed the status of women in seventh century Arabia within a remarkably short period of time. Deeply ingrained practices such as female infanticide, forced marriages, the inheritance of widows as property, and the humiliating year-long mourning ritual of <i>iftidad</i>
1 were abolished, replaced by a framework that recognized womenâs inherent value and rights.","Islam affirmed womenâs rights across societal, familial, and spiritual spheres. Women retained their names and property after marriage, could represent themselves in court, could initiate divorce, and could participate in public life, as seen when Caliph Ê¿Umar appointed Samraʾ bint Nuhayk and Shifaʾ bint Ê¿Abdullah as market supervisors. The Prophet ï·º himself mandated a womanâs consent as a condition for a valid marriage.","Spiritually, the Qurâan places men and women on equal footing. The story of Adam and Eve assigns blame to both, not Eve alone, and figures like Mary and Asiya are held up as role models for all believers regardless of gender. This spiritual equality gave rise to a rich legacy of female scholarship, from Ê¿Aʾisha to Sayyida Nafisa to Nana Asmaâu."],FAQs:[]},{slug:"courage-commitment-the-femininity-of-muslim-women",shortSummary:"",keyTakeaways:["Western ideals of femininity, exported globally through colonial rule, media, and postwar American sitcoms, produced a false archetype of the docile, domesticated woman that was never rooted in Islamic tradition. Muslims absorbed this image uncritically, turning it into the assumed standard in khutbahs and <i>halaqa</i>s, even though it bore little resemblance to the women of the Qurâan and the early Muslim community.","The women of the Qurâan offer a radically different model of femininity, built on confidence, courage, and commitment to God. From Maryam giving birth alone and returning to her people without fear, to Asiya defying Pharaoh, to Bilqis leading her kingdom with wisdom, these women are defined not by their social status or relationship to a man but by their agency, faith, and moral conviction.","Muslim history is rich with women who embodied this model as scholars, jurists, and institution builders. Ê¿Aʾisha laid the foundation of a legacy of female scholarship, Fatima al-Fihri founded the worldâs oldest degree-granting university in ninth century Fez, and countless others, like Nafisa al-Tahira and Karima bint Ahmad, shaped Islamic learning across centuries, giving Muslim women today a tradition of strength and leadership to draw from."],FAQs:[]},{slug:"gender-uniqueness-in-islam-and-the-significance-of-fatherhood",shortSummary:"",keyTakeaways:["Islam affirms the equal dignity of men and women while recognizing that they are not identical. The modern assumption that men and women are essentially interchangeable has become a hindrance to genuine equity, pressuring women to measure their worth against male standards rather than their own God-given potential.","Fatherlessness is a social crisis with severe consequences. Children raised without fathers or father figures face dramatically higher rates of incarceration, suicide, substance abuse, teen pregnancy, and poor academic performance. Seventy percent of adolescents in US juvenile correctional facilities come from fatherless homes, and the presence of grandparents or other male figures only partially mitigates these outcomes.","Fathers offer children distinct contributions that mothers cannot fully replicate: paternal authority, paternal affection, and financial security. A fatherâs presence can instill discipline, emotional regulation, and a sense of accountability, while his affection provides a form of reassurance and masculine modeling that children need. Recognizing these distinct contributions, rather than treating parental roles as interchangeable, is essential for the well-being of children and the stability of the family."],FAQs:[]},{slug:"and-we-created-you-in-pairs-islam-and-the-gender-question",shortSummary:"",keyTakeaways:["Modern gender theory reduces gender to a social construct disconnected from biology and spiritual meaning. It gains traction partly because contemporary culture itself expresses gender in superficial ways, through dress, stereotypes, and sexualized performance, producing easy targets for critics to dismantle without engaging with deeper traditions of thought.","The Islamic tradition treats gender as far more than biology or social role. Drawing on the Qurâanic principle that Allah âcreated everything in pairs in order that you reflect,â Muslim thinkers have long used the masculine and feminine as symbols through which humans come to understand Godâs attributes, the structure of creation, and their own purpose as stewards.","True freedom does not come through erasing the distinction between men and women. The creation story of Adam and Hawwaʾ traces a movement from oneness to duality to multiplicity, affirming that gender is woven into what it means to be human. Rather than a hindrance, gender is a vehicle for worship and stewardship, allowing believers to reflect divine qualities and live in deeper connection with creation."],FAQs:[]},{slug:"islam-and-the-lgbt-question-reframing-the-narrative",shortSummary:"",keyTakeaways:["The contemporary LGBT discourse is rooted in a secular humanistic worldview that positions the individual, rather than God, as the ultimate arbiter of right and wrong. Islam operates from a theocentric framework in which morality is derived from divine revelation, making these two paradigms fundamentally incompatible on questions of gender and sexual ethics.","Western liberalism conflates three things that Islam distinguishes: desire, action, and identity. In the Islamic framework, experiencing a desire does not justify acting on it, nor should it define a personâs identity. Individuals are dignified by their creation, not reduced to their inclinations.","Muslims who accept orthodox Islamic teachings but struggle with same-sex attractions or gender dysphoria should be met with support and sincere counsel, not rejection. At the same time, upholding what Allah has prohibited is nonnegotiable and cannot be revised to accommodate prevailing cultural norms."],FAQs:[]},{slug:"raising-resilient-muslim-youth-strategies-for-building-a-strong-muslim-identity-in-children",shortSummary:"",keyTakeaways:["Muslim children growing up as minorities in the West face unique pressures that can erode their connection to Islam. A strong Islamic identity, rooted in the understanding that their core purpose is the worship of Allah, equips them to navigate peer pressure, societal marginalization, and competing value systems with confidence and stability.","Building resilience in children is not something that can wait until a crisis hits. Parents who integrate Islamic principles into their childrenâs upbringing early on, nurturing their self-esteem, self-efficacy, and self-trust within an Islamic framework, give them the tools to turn toward their faith during hardship rather than away from it.","Parents play a central role by conveying their childrenâs value through genuine interest, consistent presence, and modeling the Prophetâs example of warmth and engagement with young people. Overly rigid or controlling parenting can push children away from Islam, while a loving and supportive relationship creates the safety children need to embrace their identity as Muslims."],FAQs:[]},{slug:"exploring-the-faith-and-identity-crisis-of-american-muslim-youth",
1shortSummary:"",keyTakeaways:["Islamophobia does not only affect how non-Muslims view Islam, it also shapes how young Muslims view themselves. Interviews with thirty American Muslim youth revealed that many had internalized negative portrayals of their faith, with one in three children reluctant to tell others they were Muslim and nearly half unsure whether they could be both Muslim and American.","Young Muslim women bear a disproportionate share of this burden. Of the participants who experienced Islamophobic encounters, the vast majority were women, and all fifteen hijab-wearing participants had considered removing it out of fear. Many also felt that mosques reinforced rather than relieved their struggle, with poor treatment of women in Islamic spaces making Islamophobic stereotypes feel more credible.","The crisis facing Muslim youth is not only one of identity but of belonging. When mosques are unwelcoming, parents are perceived as culturally rigid, and non-Muslim therapists project biased assumptions, young Muslims are left without safe outlets to process their struggles. Those who did have access to engaged imams and supportive communities reported significantly more confidence in their faith."],FAQs:[]},{slug:"will-my-children-be-muslim-the-development-of-religious-identity-in-young-people",shortSummary:"",keyTakeaways:["Parents are the single most powerful influence on their childrenâs religious identity. Research consistently shows that children are more likely to retain their faith when parents actively practice Islam themselves, engage in bidirectional conversations about religion, and maintain a warm yet structured relationship. Approximately 20 percent of those raised Muslim in America do not identify as Muslim in adulthood, making intentional religious socialization essential.","Peers become increasingly influential during adolescence and can either reinforce or compete with parental religious values. Youth with religious friends tend to be more religious themselves, while those in less religious peer networks are more likely to disengage from their faith. Parents can shape this dynamic by channeling their children into peer groups, schools, and community institutions that support Islamic values.","Higher education, mass media, and Islamophobia all shape the environment in which Muslim youth negotiate their religious identity. Exposure to secular philosophies in university, negative media coverage of Muslims, and experiences of discrimination can all erode religious commitment, especially for youth who lack strong community support structures such as campus-based Muslim organizations."],FAQs:[]},{slug:"what-is-islamophobia-race-power-and-the-roots-of-anti-muslim-discrimination",shortSummary:"",keyTakeaways:["Islamophobia rests on the assumption that Islam has an inherently violent essence, producing a persistent divide in political and media discourse between âgoodâ Muslims who have assimilated into Western modernity and âbadâ Muslims who have not. This binary has been repeated across administrations and political lines, positioning the West as the arbiter of which Muslims are acceptable.","The Muslim has been constructed as an enemy subject within Western nation-states through profiling, surveillance, and counterextremism programs that criminalize ordinary religious practice. Everyday markers of Muslim identity such as growing a beard, wearing hijab, or attending the mosque have been flagged as indicators of potential radicalization, effectively making the act of being visibly Muslim grounds for suspicion.","Islamophobia is not only cultural prejudice but a form of racialization with deep historical roots. The othering of Muslims predates 9/11 by centuries, tracing back to European imperial projects where religious difference from Christianity became a basis for exclusion. This history produced a racialized Muslim figure that collapses diverse ethnicities and nationalities into a single suspect category, affecting Arabs, South Asians, Black Muslims, and even non-Muslims perceived to be Muslim."],FAQs:[]},{slug:"ancestral-knowledge-and-american-muslims-rooting-cultural-resistance-in-islam",shortSummary:"",keyTakeaways:["Islam has always functioned as a filter rather than an eraser of culture. As it spread across the world, it enhanced and refined the goodness within local cultures rather than replacing them. The Prophet ï·º modeled this when he welcomed Salman the Persianâs tactical knowledge during the Battle of the Trench and allowed Ethiopian companions to continue their cultural practices in his presence.","In
1some American Muslim spaces, the cultural norms and practices of immigrant communities have been treated as standard Islam, often at the expense of the lived experiences of Black, Latino, and Indigenous American Muslims. This pattern echoes broader colonial dynamics in which one groupâs knowledge is elevated as universal while others are rendered invisible or irrelevant.","Ancestral knowledgeâthe accumulated wisdom, resistance strategies, and cultural practices of Indigenous and minoritized peoplesâis not only compatible with Islam but essential for American Muslims seeking to address systemic injustices. Islamic ethics demand justice, but translating those ethics into effective action in a settler colonial context requires drawing on the deep navigational knowledge that communities like Black Americans have developed over centuries."],FAQs:[]},{slug:"stoning-and-hand-cutting-understanding-the-hudud-and-the-shariah-in-islam",shortSummary:"",keyTakeaways:["The Sharia is not a fixed legal code but a broad legal tradition drawn from the Qurâan, Sunnah, scholarly consensus, and analogical reasoning. Like other major legal systems, it contains tremendous internal diversity in how it has been applied across centuries and regions, and cannot be reduced to its most severe punishments.","The <i>hudud</i> punishments were designed to be nearly impossible to carry out in practice. The evidentiary standards set by Islamic law are extraordinarily high. For adultery, four eyewitnesses to the act itself are required, and for theft, numerous conditions must be met before amputation applies. In the roughly five hundred years that the Ottoman Empire ruled Constantinople, only one instance of stoning for adultery took place. Even in modern times, out of 4,925 theft convictions between 1981 and 1992 in Saudi Arabia, only 2 resulted in amputation; out of 659 convictions for sexual crimes in the same period, none resulted in stoning.","The Shariaâs criminal law operates on the principle that doubt should prevent punishment, not enable it. The Prophet ï·º instructed that <i>hudud</i> penalties be averted wherever possible, and scholars across the tradition emphasized that it is better for a ruler to err on the side of pardon than on the side of punishment. The vast majority of offenses were historically handled through <i>taÊ¿zir</i>, discretionary penalties carried out by the executive."],FAQs:[]},{slug:"the-issue-of-apostasy-in-islam",shortSummary:"",keyTakeaways:["The Sharia ruling on apostasy was historically tied to the protection of public order in societies where religious identity defined political belonging. While the majority of premodern Muslim scholars categorized it among the <i>hudud</i> crimes, leading voices in the Hanafi school placed it under <i>siyasa</i>, the domain of governance. In either case, enforcement was a matter for the state, not a fixed individual obligation.","Apostasy in premodern Muslim societies was not understood as a mere private change of belief. Publicly renouncing Islam was treated as an act of communal betrayal, since questioning Islamâs primacy was seen as undermining the societal order itself. What distinguished the apostate from someone who simply drifted away was active opposition to the community they had left.","Given that the conditions that originally justified the punishment have fundamentally changed, contemporary Muslim governments can exercise their legitimate right under Islamic law to set punishments for apostasy aside. This position is not a departure from the tradition but an application of it, since the Sharia has always distinguished between laws that remain fixed and those that adapt to changing circumstances."],FAQs:[]},{slug:"hijab-spotlighting-servitude-to-god",shortSummary:"",keyTakeaways:["The true purpose of hijab has been buried under layers of political controversy, Islamophobic rhetoric, and feminist critiques that frame it as a symbol of oppression. These external debates have distorted the discourse and overshadowed what the hijab is at its core: an act of worship and obedience to God.","Hijab is grounded in the broader Islamic concept of <i>hayaʾ</i> (modesty), and its foundation is <i>Ê¿ibada</i> (servitude to God). When servitude to God is placed at the forefront and becomes the lens through which all acts of obedience are understood, it provides the sole proper and timeless motivation for observing the hijab, independent of shifting cultural or political pressures.","Serving God liberates the believer from being pulled in competing directions by social pressures, ego, or the expectations of others. The Qurâan contrasts a person torn between quarreling masters with one devoted to a single master, illustrating that submission to God alone provides the coherence and freedom that no other allegiance can offer. The hijab, understood in this light, is an expression of that singular devotion."],FAQs:[]},{slug:"how-islam-spread-throughout-the-world",shortSummary:"",keyTakeaways:["Islam spread through diverse channels, including <i>dawah</i>, trade, intermarriage, migration, and the influence of key political and religious figures. Southeast Asia and West Africa, where Islam has its largest concentrations today, were never subjected to military conquest. Islam reached them through trade networks and traveling scholars.","The reasons non-Muslims embraced Islam after being exposed to it were as important as the means of exposure itself. Islamâs emphasis on justice, its principle of human equality regardless of race or class, and the universality of its message resonated across vastly different cultures, from the Malabar Coast of India to the East African ports to Central Asia.","The conversion of entire regions to Islam was not a sudden event but a process that unfolded over generations. Even Syria, among the first territories to come under Muslim political rule, was still undergoing Islamization nearly a thousand years later when the Ottomans conquered the region in 1516."],FAQs:[]},{slug:"faith-in-mind-islams-role-in-mental-health",shortSummary:"",keyTakeaways:["Religiosity and mental health are deeply linked for Muslims, and spiritual health cannot be separated from psychological well-being. Yaqeenâs BASIC survey â measuring the role of (B)eliefs, (A)ttitudes, (S)piritual behaviors, (I)nstitutional connection to the Muslim community, and (C)ontribution to society â found that religiosity was the strongest predictor of positive mental health outcomes, including life purpose, life satisfaction, and overall well-being, outperforming other factors such as age, gender, and education.","Mainstream definitions of mental health have historically left out religiosity and spirituality. For Muslims, whose purpose in life is the worship of Allah and whose serenity is tied to His remembrance, any meaningful framework for mental health must include faith as a core component rather than treat it as peripheral or irrelevant.","Islam has a rich intellectual heritage in addressing mental health, from classical scholars who wrote on purification of the soul and the treatment of depression and anxiety, to the Qurâan and Sunnah themselves as sources of healing. The article argues that effective mental health care for Muslims should integrate both evidence-based therapies and the spiritual resources of the Islamic tradition."],FAQs:[]}
1,{slug:"the-colonized-mind-and-the-decline-of-the-islamic-education-system",shortSummary:"",keyTakeaways:["Beginning in the eighteenth century, European colonialism introduced educational systems into the Muslim world that were grounded in a secular paradigm fundamentally at odds with an Islamic worldview. Older models of education, which had integrated religious and worldly knowledge, were displaced by institutions built on foreign epistemologies.","The mismatch between the secular foundations of Western-style education and the religious foundations of Muslim societies produced an educated class that was culturally alienated from its own intellectual heritage. Rather than bridging the gap between tradition and modernity, these systems deepened it.","Contemporary portrayals of traditional Islamic institutions like the madrassa as backward and frozen in time reflect the persistence of colonial-era assumptions about knowledge and progress. These narratives, found in media, think tanks, and governmental bodies, continue to shape how Islamic education is perceived and discussed today."],FAQs:[]},{slug:"the-structure-of-scientific-productivity-in-islamic-civilization-orientalists-fables",shortSummary:"",keyTakeaways:["The dominant Western account of Islamic scientific history frames it as a conflict between religion and reason, crediting Muslim scientific achievements to foreign influences while blaming Islamic values for their decline. Recent scholarship has shown this framework to be inconsistent with the historical data.","A more coherent reading of the evidence shows that Islamic values actively and passively supported scientific productivity, particularly through the rejection of Aristotelian natural philosophy. The tendency to project the Western experience of conflict between religion and science onto Islamic history has led to selective readings and the suppression of evidence that does not fit the predetermined narrative.","The decline of scientific productivity in the Muslim world, which became visible around the sixteenth century, coincided with growing dependence on European scientific institutions and technologies. The causes of this decline remain undetermined by historians of science, in large part because the assumptions behind the dominant narrative went unchallenged for so long that alternative explanations are only now being seriously explored."],FAQs:[]}]},17257:(e,t,a)=>{"use strict";a.d(t,{R:()=>s,y:()=>l});var i=a(57002),r=a(32738),n=a(43425);let s=e=>{var t;let a=[],n=(0,r.lm)(e),s=(0,r.F4)(e);return[i.xj.Events,i.xj.News].includes(null==(t=(0,r.gt)(e))?void 0:t.slug)&&a.push({title:"Discover",href:"/discover"}),n&&a.push({title:n,href:(0,r.E0)(e)}),s&&a.push({title:s,href:(0,r.OZ)(e)}),a},l=e=>{let t=[{title:"Watch",href:"/watch"}],a=(0,r.eF)(e);return null!=a&&a.name&&t.push({title:null==a?void 0:a.name,href:(0,n.F1)(a,i.g6.Watch)}),t}},17325:(e,t,a)=>{"use strict";a.d(t,{p:()=>i});let i=e=>{let t=r(e);return`${n(t)} ${t.getDate()}, ${t.getFullYear()}`},r=e=>{let[t,a,i,r,n,s]=e.split(/[- :T]/);return new Date(t,a-1,i,r,n,s)},n=e=>["January","February","March","April","May","June","July","August","September","October","November","December"][e.getMonth()]},17597:()=>{},18998:(e,t,a)=>{"use strict";a.d(t,{S:()=>h});var i=a(54587),r=a.n(i),n=a(18012),s=a(69174),l=a(12587),o=a(86400),c=a(42129),d=a(37876);let h=()=>(0,d.jsxs)("div",{className:"flex flex-col md:flex-row w-full gap-4 xl:gap-6",children:[(0,d.jsxs)("div",{className:"items-center bg-[#0052FF] py-6 px-8 rounded-lg md:w-[50.2%] w-full hidden md:flex",children:[(0,d.jsx)(r(),{src:"/static/images/icons/new_logo_2025.svg",alt:"New logo",width:64,height:64,className:"ml-4"}),(0,d.jsx)(s.qh,{href:"/new-look",onClick:()=>{(0,n.$s)("brand_refresh","click")},children:(0,d.jsxs)("div",{className:"flex flex-col ml-6",children:[(0,d.jsx)(l.E,{weight:"font-extrabold",color:"text-carrot-500",fontSize:"xl:text-3xl",lineHeight:"leading-none",letterSpacing:"tracking-tight-2",children:"New look, same vision."}),(0,d.jsx)(l.E,{weight:"font-extrabold",color:"text-white",fontSize:"xl:text-3xl",lineHeight:"leading-none",letterSpacing:"tracking-tight-2",children:"Learn more about our brand refresh!"})]})})]}),(0,d.jsx)(s.qh,{href:"/ameenapp",className:"w-full md:w-[49.8%]",onClick:()=>{(0,n.$s)("ameen_app_banner","click")},children:(0,d.jsxs)("div",{className:"flex items-center py-4 px-6 rounded-lg w-full relative overflow-hidden hidden md:flex ",style:{backgroundImage:"linear-gradient(to right, #5EB5FF 0%, #BEE3FF 100%)",backgroundSize:"cover"},children:[(0,d.jsxs)("div",{className:"flex items-center gap-2 flex-grow",children:[(0,d.jsx)(r(),{src:"/static/images/ameen.png",alt:"Ameen app phones",width:140,height:140}),(0,d.jsxs)("div",{className:"flex flex-col",children:[(0,d.jsx)(l.E,{weight:"font-bold",color:"text-white",lineHeight:"leading-none",fontSize:"text-sm",letterSpacing:"tracking-[0.36px]",className:"mb-2 text-right",children:"FOR ALL YOUR DU'A NEEDS"}),(0,d.jsx)(l.E,{weight:"font-extrabold",color:"text-endeavour-500",fontSize:"xl:text-3xl text-2xl",lineHeight:"leading-none",letterSpacing:"tracking-tight-2",className:"text-right",children:"Download the Ameen app"})]})]}),(0,d.jsx)("div",{className:"ml-8",children:(0,d.jsx)(r(),{src:"/static/images/qrcode_Download_Ameen_2025.png",alt:"QR Code",width:78,height:78,loader:
1o.R2})})]})}),(0,d.jsx)(s.qh,{href:"/new-look",onClick:()=>{(0,n.$s)("brand_refresh","click")},children:(0,d.jsxs)("div",{className:"flex items-center bg-blue-600 py-4 pr-4 pl-5 rounded-lg w-full md:hidden",children:[(0,d.jsx)(r(),{src:"/static/images/icons/new_logo_2025.svg",alt:"New logo",width:64,height:64}),(0,d.jsxs)("div",{className:"flex flex-col",children:[(0,d.jsx)(l.E,{color:"text-carrot-500",fontSize:"text-[20px]",lineHeight:"leading-[1rem]",letterSpacing:"tracking-[-2.5%]",className:"mb-[1.3px] ml-[16px]",weight:"font-extrabold",children:"New look, same vision."}),(0,d.jsx)(l.E,{weight:"font-extrabold",color:"text-white",fontSize:"text-[20px]",lineHeight:"leading-[1.5rem]",letterSpacing:"tracking-tight-2",className:"ml-4",children:"Learn more about our brand refresh!"})]})]})}),(0,d.jsx)("div",{className:"w-full md:hidden",children:(0,d.jsx)("div",{className:"flex flex-col items-center pt-[15px] pb-0 px-6 rounded-lg w-full relative overflow-hidden",style:{backgroundImage:"linear-gradient(to bottom, #5EB5FF 0%, #BEE3FF 100%)",backgroundSize:"cover"},children:(0,d.jsxs)("div",{className:"flex items-center gap-2 flex-grow justify-end w-full",children:[(0,d.jsx)(r(),{src:"/static/images/ameen.png",alt:"Ameen app phones",width:160,height:160}),(0,d.jsxs)("div",{className:"flex flex-col flex-grow items-end",children:[(0,d.jsxs)(s.qh,{href:"/ameenapp",onClick:()=>{(0,n.$s)("ameen_app_banner","click")},className:"flex flex-col items-end",children:[(0,d.jsx)(l.E,{as:"h3",weight:"font-bold",color:"text-white",fontSize:"text-[9.8px]",letterSpacing:"tracking-[0.75px]",className:"mb-[2px]",children:"FOR ALL YOUR DU'A NEEDS"}),(0,d.jsx)(l.E,{as:"h3",weight:"font-extrabold",color:"text-endeavour-500",fontSize:"text-xl",lineHeight:"leading-none",letterSpacing:"tracking-tight-2",className:"mb-[20px] text-right",children:"Download the Ameen app"})]}),(0,d.jsx)(c.A,{height:28,width:85})]})]})})})]})},19646:(e,t,a)=>{"use strict";a.d(t,{f:()=>f});var i=a(14232),r=a(54587),n=a.n(r),s=a(18125),l=a(22115),o=a(450),c=a(17199),d=a(46824),h=a(56409),u=a(69174),m=a(86400),p=a(58508),g=a(37876);let f=e=>{let{items:t,unit:a}=e,{0:r,1:n}=(0,i.useState)(1),s=Math.ceil(t.length/4),l=(r-1)*4,o=t.slice(l,l+4);return(0,g.jsx)(g.Fragment,{children:t.length>0&&(0,g.jsxs)("div",{className:"flex flex-col items-start justify-start w-full px-0 md:px-5 py-5 md:py-6 gap-4 bg-grey-50 rounded-lg",children:[(0,g.jsx)("div",{className:"px-4 md:px-0",children:(0,g.jsx)(u.EY,{as:"p",color:"text-endeavour-500",weight:"font-semibold",fontSize:"text-xl md:text-2xl",letterSpacing:"-tracking-[0.012rem]",lineHeight:"leading-7 md:leading-8",children:"Worksheets"})}),(0,g.jsx)("div",{className:"flex flex-row block lg:hidden container mx-auto gap-3 w-full overflow-hidden relative",children:(0,g.jsx)(d.A,{enableMouseEvents:!0,style:{padding:"0 1rem"},slideStyle:{paddingRight:"0.75rem",width:"fit-content"},children:t&&t.sort((e,t)=>e.order-t.order).map(e=>(0,g.jsx)(x,{resource:e,unit:a},e.name))})}),(0,g.jsx)("div",{className:"hidden lg:grid grid-cols-4 gap-6 w-full",children:o.map(e=>(0,g.jsx)(x,{resource:e,unit:a},e.name))}),t.length>4&&(0,g.jsx)(y,{currentPage:r,totalPages:s,onPreviousPage:()=>{n(e=>Math.max(e-1,1))},onNextPage:()=>{n(e=>Math.min(e+1,s))},setCurrentPage:n})]})})},x=e=>{let{resource:t,unit:a}=e,{name:i,url:r,type:l,thumbnail:o}=t,{handleDownload:d}=(0,p.A)();return(0,g.jsxs)("div",{className:"flex flex-col items-center justify-center bg-white box-border border border-grey-200 rounded-lg w-[292px] lg:w-auto",children:[(0,g.jsx)("div",{className:"relative w-full aspect-square h-[292px]",children:(0,g.jsx)(n(),{src:o||"https://i.yaqeeninstitute.org/?src=/2023/05/test_worksheet_thumbnail.png",loader:m.R2,alt:i,layout:"fill",className:"rounded-t-lg object-top w-full h-full"})}),(0,g.jsx)("div",{className:"flex flex-col grow items-start justify-start h-[52px] lg:h-[60px] w-full px-3 lg:px-4 py-2 lg:py-3 gap-3 box-border border-t border-grey-200",children:(0,g.jsxs)("div",{className:"flex flex-row items-center justify-between w-full gap-2",children:[(0,g.jsx)(u.EY,{as:"div",className:"flex-1 text-grey-900 whitespace-nowrap overflow-hidden overflow-ellipsis",fontSize:"text-sm",weight:"font-semibold",lineHeight:"leading-5",children:(0,c.Ay)(i)}),l===h.vt.PDF&&(0,g.jsx)("div",{id:"worksheet-download",className:"flex-shrink-0",children:(0,g.jsx)(u.$
1n,{"aria-label":"Download all resources",className:"flex flex-col items-center justify-center h-9 w-9 bg-white hover:bg-grey-100 rounded box-border border border-gray-200 p-2",onPress:()=>{d({type:h.X2.DownloadResource,resourceType:h.ES.Worksheet,url:r,log:{category:"curriculum-unit",action:"download-worksheet",label:`item_name: ${a.name} - ${i}`},unit:a})},children:(0,g.jsx)(s.g,{icon:"download",className:"h-5 w-5text-grey-900"})})})]})})]},i)},y=e=>{let{currentPage:t,totalPages:a,onPreviousPage:i,onNextPage:r,setCurrentPage:n}=e,s=t<a,c=t>1;return(0,g.jsxs)("div",{className:"flex items-center justify-between border-t border-grey-200 px-4 sm:px-0 w-full hidden lg:flex",children:[(0,g.jsx)("div",{className:"-mt-px flex w-0 flex-1",children:(0,g.jsx)("div",{className:"inline-flex items-center border-t-2 border-transparent pr-1 pt-4 text-sm font-medium text-grey-500 hover:border-grey-300 hover:text-grey-700",children:(0,g.jsxs)(u.$n,{isDisabled:!1===c,onPress:i,className:"inline-flex flex-row justify-end",children:[(0,g.jsx)(l.A,{className:"mr-3 h-5 w-5 text-grey-500","aria-hidden":"true"}),(0,g.jsx)(u.EY,{as:"p",className:"text-center",weight:"font-bold",fontSize:"text-sm",color:c?"text-carrot-600 hover:text-carrot-800":"text-grey-800",lineHeight:"leading-5",children:"Previous"})]})})}),(0,g.jsx)("div",{className:"hidden md:-mt-px md:flex",children:Array.from({length:a},(e,a)=>{let i=a+1,r=i===t;return(0,g.jsxs)("div",{className:"inline-flex flex-col items-start justify-start",children:[r&&(0,g.jsx)(u.EY,{as:"p",className:"inline-flex items-center border-t-2 border-carrot-500 px-4 pt-4 text-sm text-carrot-600",fontSize:"text-sm",weight:"font-semibold",lineHeight:"leading-5",children:i}),!r&&(0,g.jsx)(u.$n,{onPress:()=>n(i),children:(0,g.jsx)(u.EY,{as:"p",className:"inline-flex items-center border-t-2 border-transparent px-4 pt-4 text-grey-700 hover:border-grey-300 hover:text-grey-900",fontSize:"text-sm",weight:"font-semibold",lineHeight:"leading-5",children:i})})]},`page-${i}`)})}),(0,g.jsx)("div",{className:"-mt-px flex w-0 flex-1 justify-end",children:(0,g.jsx)("div",{className:"inline-flex items-center border-t-2 border-transparent pl-1 pt-4 text-sm font-medium hover:border-grey-300",children:(0,g.jsxs)(u.$n,{isDisabled:!1===s,onPress:r,className:"inline-flex flex-row justify-end",children:[(0,g.jsx)(u.EY,{as:"p",className:"text-center",weight:"font-bold",fontSize:"text-sm",color:s?"text-carrot-600 hover:text-carrot-800":"text-grey-800",lineHeight:"leading-5",children:"Next"}),(0,g.jsx)(o.A,{className:"ml-3 h-5 w-5 text-grey-500","aria-hidden":"true"})]})})})]})}},20355:(e,t,a)=>{"use strict";a.d(t,{Wh:()=>u,I:()=>x,h0:()=>m,lE:()=>p,F7:()=>f,hP:()=>g,T3:()=>h});var i=a(66284),r=a(31303),n=a(96370),s=a(26195);let l=function(e){return e.incomplete="incomplete",e.incomplete_expired="incomplete_expired",e.trialing="trialing",e.active="active",e.past_due="past_due",e.canceled="canceled",e.unpaid="unpaid",e}({});var o=a(37876);function c(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,i)}return a}function d(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?c(Object(a),!0).forEach(function(t){(0,i.A)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):c(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}let h=e=>!0===e.refunded?s.nW.refunded:["Succeeded","Completed"].includes(e.status)?s.nW.success:["Failed","Denied"].includes(e.status)?s.nW.failed:e.status,u=e=>{let{status:t}=e,a="bg-blue-100 text-blue-800";return t===s.nW.blocked&&(a="bg-yellow-100 text-yellow-800"),t===s.nW.failed&&(a="bg-red-100 text-red-800"),t===s.nW.canceled&&(a="bg-grey-100 text-grey-900"),t===s.nW.refunded&&(a="bg-blue-100 text-blue-800"),t===s.nW.success&&(a="bg-green-100 text-green-800"),(0,o.jsx)("span",{className:`inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-semibold ${a} capitalize`,children:t})},m=e=>{var t;return d(d({},e),{},{data:null==(t=e.data)?void 0:t.map(p)})},p=e=>d(d({},e),{},{account:e.account}),g=e=>{var t,a,i,o;
1if(!e)return[];let c=Object.values(r.sf);return e.subscription_id&&(null==(t=e.subscription_data)?void 0:t.status)!==l.canceled||(c.splice(c.indexOf(r.sf.STOP_SUBSCRIPTION),1),c.splice(c.indexOf(r.sf.MODIFY_SUBSCRIPTION),1)),e.subscription_id&&(null==(a=e.subscription_data)?void 0:a.status)!==l.active&&c.splice(c.indexOf(r.sf.RESEND_RECEIPT),1),(e.refunded||e.status===s.ET.Failed||e.status===s.ET.Denied)&&(c.splice(c.indexOf(r.sf.REFUND),1),c.splice(c.indexOf(r.sf.RESEND_RECEIPT),1)),e.subscription_id&&e.donation_type!==n.ZU.Monthly&&c.splice(c.indexOf(r.sf.MODIFY_SUBSCRIPTION),1),i=new Date(e.created),o=e.platform,Math.ceil(Math.abs(new Date().getTime()-i.getTime())/864e5)<=r.UL[o]||c.splice(c.indexOf(r.sf.REFUND),1),c},f=(e,t,a)=>null===e||isNaN(e)||0===e?t-a:e,x={paypal:"PayPal",cc:"Card",unknown:"",card:"Card","apple-pay/gpay":"Apple Pay / Google Pay",gpay:"Google Pay","apple-pay":"Apple Pay"}},22240:(e,t,a)=>{"use strict";a.d(t,{im:()=>i});let i=e=>e('p a[href^="#ftnt_ref"], div a[href^="#ftnt_ref"]').length>0},22242:(e,t,a)=>{"use strict";a.d(t,{f6:()=>c,oE:()=>k,wC:()=>p,Qc:()=>f,Jq:()=>v,Hj:()=>g,eZ:()=>h,$w:()=>d,Rb:()=>w,Tu:()=>u,Ns:()=>n.Ns,m7:()=>n.m7,Tk:()=>n.Tk,xZ:()=>N,Oc:()=>y,MS:()=>x,Z:()=>n.Z,cS:()=>j,cr:()=>s,dS:()=>r.dS,sN:()=>l,r6:()=>b,$i:()=>o,F5:()=>r.F5,vw:()=>r.vw,H8:()=>m});var i=a(96370),r=a(76075),n=a(8465);let s=["AUD","CAD","CZK","DKK","EUR","HKD","ILS","MXN","NZD","NOK","PHP","PLN","GBP","RUB","SGD","SEK","CHF","THB","USD","MYR"],l=["HUF","JPY","TWD"],o=[{title:"USD",symbol:"$",code:"usd",minAmount:1,maxAmount:999999},{title:"CAD",symbol:"$",code:"cad",minAmount:1,maxAmount:999999},{title:"MYR",symbol:"RM",code:"myr",minAmount:5,maxAmount:999999},{title:"AED",symbol:"AED",code:"aed",minAmount:4,maxAmount:999999},{title:"AFN",symbol:"؋",code:"afn",minAmount:78,maxAmount:999999},{title:"ALL",symbol:"Lek",code:"all",minAmount:104,maxAmount:999999},{title:"AMD",symbol:"AMD",code:"amd",minAmount:527,maxAmount:999999},{title:"ANG",symbol:"ƒ",code:"ang",minAmount:2,maxAmount:999999},{title:"AOA",symbol:"AOA",code:"aoa",minAmount:619,maxAmount:999999},{title:"ARS",symbol:"$",code:"ars",minAmount:91,maxAmount:999999},{title:"AUD",symbol:"$",code:"aud",minAmount:2,maxAmount:999999},{title:"AWG",symbol:"ƒ",code:"awg",minAmount:2,maxAmount:999999},{title:"AZN",symbol:"ман",code:"azn",minAmount:2,maxAmount:999999},{title:"BAM",symbol:"KM",code:"bam",minAmount:2,maxAmount:999999},{title:"BBD",symbol:"$",code:"bbd",minAmount:2,maxAmount:999999},{title:"BDT",symbol:"BDT",code:"bdt",minAmount:85,maxAmount:999999},{title:"BGN",symbol:"лв",code:"bgn",minAmount:2,maxAmount:999999},{title:"BMD",symbol:"$",code:"bmd",minAmount:1,maxAmount:999999},{title:"BND",symbol:"$",code:"bnd",minAmount:2,maxAmount:999999},{title:"BOB",symbol:"$b",code:"bob",minAmount:7,maxAmount:999999},{title:"BRL",symbol:"R$",code:"brl",minAmount:6,maxAmount:999999},{title:"BSD",symbol:"$",code:"bsd",minAmount:1,maxAmount:999999},{title:"BWP",symbol:"P",code:"bwp",minAmount:12,maxAmount:999999},{title:"BZD",symbol:"BZ$",code:"bzd",minAmount:2,maxAmount:999999},{title:"CDF",symbol:"CDF",code:"cdf",minAmount:1985,maxAmount:999999},{title:"CHF",symbol:"CHF",code:"chf",minAmount:1,maxAmount:999999},{title:"CNY",symbol:"¥",code:"cny",minAmount:7,maxAmount:999999},{title:"COP",symbol:"$",code:"cop",minAmount:3600,maxAmount:999999},{title:"CRC",symbol:"₡",code:"crc",minAmount:613,maxAmount:999999},{title:"CVE",symbol:"CVE",code:"cve",minAmount:93,maxAmount:999999},{title:"CZK",symbol:"Kč",code:"czk",minAmount:23,maxAmount:999999},{title:"DKK",symbol:"kr",code:"dkk",minAmount:7,maxAmount:999999},{title:"DOP",symbol:"RD$",code:"dop",minAmount:58,maxAmount:999999},{title:"DZD",symbol:"DZD",code:"dzd",minAmount:134,maxAmount:999999}
1,{title:"EGP",symbol:"£",code:"egp",minAmount:16,maxAmount:999999},{title:"ETB",symbol:"ETB",code:"etb",minAmount:41,maxAmount:999999},{title:"EUR",symbol:"€",code:"eur",minAmount:1,maxAmount:999999},{title:"FJD",symbol:"$",code:"fjd",minAmount:3,maxAmount:999999},{title:"FKP",symbol:"£",code:"fkp",minAmount:1,maxAmount:999999},{title:"GBP",symbol:"£",code:"gbp",minAmount:1,maxAmount:999999},{title:"GEL",symbol:"GEL",code:"gel",minAmount:4,maxAmount:999999},{title:"GIP",symbol:"£",code:"gip",minAmount:1,maxAmount:999999},{title:"GMD",symbol:"GMD",code:"gmd",minAmount:53,maxAmount:999999},{title:"GTQ",symbol:"Q",code:"gtq",minAmount:8,maxAmount:999999},{title:"GYD",symbol:"$",code:"gyd",minAmount:212,maxAmount:999999},{title:"HKD",symbol:"$",code:"hkd",minAmount:8,maxAmount:999999},{title:"HNL",symbol:"L",code:"hnl",minAmount:25,maxAmount:999999},{title:"HRK",symbol:"kn",code:"hrk",minAmount:7,maxAmount:999999},{title:"HTG",symbol:"HTG",code:"htg",minAmount:77,maxAmount:999999},{title:"IDR",symbol:"Rp",code:"idr",minAmount:14434,maxAmount:0x2540be3ff},{title:"ILS",symbol:"₪",code:"ils",minAmount:4,maxAmount:999999},{title:"INR",symbol:"₹",code:"inr",minAmount:73,maxAmount:999999},{title:"ISK",symbol:"kr",code:"isk",minAmount:128,maxAmount:999999},{title:"JMD",symbol:"J$",code:"jmd",minAmount:150,maxAmount:999999},{title:"KES",symbol:"KES",code:"kes",minAmount:110,maxAmount:999999},{title:"KGS",symbol:"лв",code:"kgs",minAmount:85,maxAmount:999999},{title:"KHR",symbol:"៛",code:"khr",minAmount:4062,maxAmount:999999},{title:"KYD",symbol:"$",code:"kyd",minAmount:1,maxAmount:999999},{title:"KZT",symbol:"лв",code:"kzt",minAmount:421,maxAmount:999999},{title:"LAK",symbol:"₭",code:"lak",minAmount:9380,maxAmount:999999},{title:"LBP",symbol:"£",code:"lbp",minAmount:1508,maxAmount:999999},{title:"LKR",symbol:"₨",code:"lkr",minAmount:197,maxAmount:999999},{title:"LRD",symbol:"$",code:"lrd",minAmount:175,maxAmount:999999},{title:"LSL",symbol:"LSL",code:"lsl",minAmount:16,maxAmount:999999},{title:"MAD",symbol:"MAD",code:"mad",minAmount:10,maxAmount:999999},{title:"MDL",symbol:"MDL",code:"mdl",minAmount:18,maxAmount:999999},{title:"MKD",symbol:"ден",code:"mkd",minAmount:52,maxAmount:999999},{title:"MMK",symbol:"MMK",code:"mmk",minAmount:1412,maxAmount:999999},{title:"MNT",symbol:"₮",code:"mnt",minAmount:2859,maxAmount:999999},{title:"MOP",symbol:"MOP",code:"mop",minAmount:8,maxAmount:999999},{title:"MRO",symbol:"MRO",code:"mro",minAmount:36,maxAmount:999999},{title:"MUR",symbol:"₨",code:"mur",minAmount:40,maxAmount:999999},{title:"MVR",symbol:"MVR",code:"mvr",minAmount:16,maxAmount:999999},{title:"MWK",symbol:"MWK",code:"mwk",minAmount:784,maxAmount:999999},{title:"MXN",symbol:"$",code:"mxn",minAmount:22,maxAmount:999999},{title:"MZN",symbol:"MT",code:"mzn",minAmount:74,maxAmount:999999},{title:"NAD",symbol:"$",code:"nad",minAmount:16,maxAmount:999999},{title:"NGN",symbol:"₦",code:"ngn",minAmount:394,maxAmount:999999},{title:"NIO",symbol:"C$",code:"nio",minAmount:35,maxAmount:999999},{title:"NOK",symbol:"kr",code:"nok",minAmount:9,maxAmount:999999},{title:"NPR",symbol:"₨",code:"npr",minAmount:117,maxAmount:999999},{title:"NZD",symbol:"$",code:"nzd",minAmount:2,maxAmount:999999},{title:"PAB",symbol:"B/.",code:"pab",minAmount:1,maxAmount:999999},{title:"PEN",symbol:"S/.",code:"pen",minAmount:4,maxAmount:999999},{title:"PGK",symbol:"PGK",code:"pgk",minAmount:4,maxAmount:999999},{title:"PHP",symbol:"₱",code:"php",minAmount:49,maxAmount:999999},{title:"PKR",symbol:"₨",code:"pkr",minAmount:158,maxAmount:999999},{title:"PLN",symbol:"zł",code:"pln",minAmount:4,maxAmount:999999},{title:"QAR",symbol:"﷼",code:"qar",minAmount:4,maxAmount:999999},{title:"RON",symbol:"lei",code:"ron",minAmount:5,maxAmount:999999},{title:"RSD",symbol:"Дин.",code:"rsd",minAmount:99,maxAmount:999999},{title:"RUB",symbol:"руб",code:"rub",minAmount:74,maxAmount:999999},{title:"SAR",symbol:"﷼",code:"sar",minAmount:4,maxAmount:999999},{title:"SBD",symbol:"$",code:"sbd",minAmount:8,maxAmount:999999},{title:"SCR",symbol:"₨",code:"scr",minAmount:22,maxAmount:999999},{title:"SEK",symbol:"kr",code:"sek",minAmount:9,maxAmount:999999},{title:"SGD",symbol:"$",code:"sgd",minAmount:2,maxAmount:999999}
1,{title:"SHP",symbol:"£",code:"shp",minAmount:1,maxAmount:999999},{title:"SLL",symbol:"SLL",code:"sll",minAmount:10215,maxAmount:999999},{title:"SOS",symbol:"S",code:"sos",minAmount:580,maxAmount:999999},{title:"SRD",symbol:"$",code:"srd",minAmount:15,maxAmount:999999},{title:"SZL",symbol:"SZL",code:"szl",minAmount:16,maxAmount:999999},{title:"THB",symbol:"฿",code:"thb",minAmount:31,maxAmount:999999},{title:"TJS",symbol:"TJS",code:"tjs",minAmount:12,maxAmount:999999},{title:"TOP",symbol:"TOP",code:"top",minAmount:3,maxAmount:999999},{title:"TRY",symbol:"TRY",code:"try",minAmount:8,maxAmount:999999},{title:"TTD",symbol:"TT$",code:"ttd",minAmount:7,maxAmount:999999},{title:"TWD",symbol:"NT$",code:"twd",minAmount:29,maxAmount:999999},{title:"TZS",symbol:"TZS",code:"tzs",minAmount:2319,maxAmount:999999},{title:"UAH",symbol:"₴",code:"uah",minAmount:28,maxAmount:999999},{title:"UYU",symbol:"$U",code:"uyu",minAmount:45,maxAmount:999999},{title:"UZS",symbol:"лв",code:"uzs",minAmount:10520,maxAmount:999999},{title:"WST",symbol:"WST",code:"wst",minAmount:3,maxAmount:999999},{title:"XCD",symbol:"$",code:"xcd",minAmount:3,maxAmount:999999},{title:"YER",symbol:"﷼",code:"yer",minAmount:252,maxAmount:999999},{title:"ZAR",symbol:"R",code:"zar",minAmount:16,maxAmount:999999},{title:"ZMW",symbol:"ZMW",code:"zmw",minAmount:22,maxAmount:999999}],c=[{description:"I literally listened yesterday, woke up and prayed my first (I think?) tahajjud since converting, and my mood and emotions so far today have improved significantly alhamdulilah. Allah reward you and everyone involved with this talk.",author:{name:"Lauren K",designation:'on the "Tahajjud" DoubleTake Episode, Instagram'}},{description:"I have read dozens and dozens of papers on your website - but this, for me, was, so far, by far the best paper I have ever read on any islamic website. Jazakallah khayr.",author:{name:"Anonymous",designation:'on "The Art of Worship: How to Make the Most of Ramadan Nights" by Dr Ovamir Anjum'}},{description:"JazakAllah for this series.. I am a mother of two toddlers and I need parenting guidance from Islamic perspective.. This series is so helpful in enlightening me. I will be striving to act upon ur profound recommendations and advices..",author:{name:"Faiza Idrees",designation:'on the "Keys to Parenting" Series'}},{description:"My siblings and I particular enjoy the infographics, we find them to be captivating, informative yet with digestible information which I think is key for the generation today given how much content is flying about and capturing the attention of the youth in the matter of Deen is often a challenge.",author:{name:"Anonymous",designation:null}},{description:"I am happy that this video made me cry. It's like a wake up call for me to reconnect with my creator and his messenger. I also felt the love I have for the messenger.",author:{name:"Asma Amin",designation:'on the "Meeting Muhammad " Series'}},{description:"it is educative, informative it is simply amazing. i like how the lessons from the articles and publications are briefly explained through short videos to give an overcome of the topics, and everything else is just superb MashaAllah. jazakallahu khairan.",author:{name:"Anonymous",designation:"on Yaqeen's app"}}],d=[{platform:"YouTube",link:"https://www.youtube.com/c/YaqeenInstituteforIslamicResearch"},{platform:"Instagram",link:"https://www.instagram.com/yaqeeninstitute/"},{platform:"Facebook",link:"https://www.facebook.com/yaqeeninstitute/"},{platform:"Twitter",link:"https://twitter.com/yaqeeninstitute"},{platform:"Tiktok",link:"https://www.tiktok.com/@yaqeeninstitute"},{platform:"LinkedIn",link:" https://www.linkedin.com/company/yaqeen-institute/"}],h=[{title:"Reminding you of the best of creation ï·º",excerpt:"Download the wallpaper below",image:"https://i.yaqeeninstitute.org/?src=2022/07/Yaqeen_Wallpapers_1920x1200.jpg",cta:{text:"Download wallpaper",href:"https://yaqeen.org/wp-content/uploads/2020/06/Hadith-Wallpaper.jpg"}}],u=[{title:"Mobile",url:"https://i.yaqeeninstitute.org/?src=2022/07/Yaqeen_Wallpapers_1170x2532.jpg"},{title:"Desktop",url:"https://i.yaqeeninstitute.org/?src=2022/07/Yaqeen_Wallpapers_2160x1080.jpg"},{title:"Tablet",url:"https://i.yaqeeninstitute.org/?src=2022/07/Yaqeen_Wallpapers_1640x2360.jpg"}],m=[{title:"(GMT) Greenwich Mean Time",name:"GMT",offsetHrs:0,offsetMinutes:0},{title:"(GMT +1:00) European Central Time",name:"ECT",offsetHrs:-1,offsetMinutes:0},{title:"(GMT +2:00) Eastern European Time",name:"EET",offsetHrs:-2,offsetMinutes:0},{title:"(GMT +2:00) (Arabic) Egypt Standard Time",name:"ART",offsetHrs:-2,offsetMinutes:0},{title:"(GMT +3:00) Eastern African Time",name:"EAT",offsetHrs:-3,offsetMinutes:0},{title:"(GMT +3:30) Middle East Time",name:"MET",offsetHrs:-3,offsetMinutes:-30},{title:"(GMT +4:00) Near East Time",name:"NET",offsetHrs:-4,offsetMinutes:0},{title:"(GMT +5:00) Pakistan Lahore Time",name:"PLT",offsetHrs:-5,offsetMinutes:0},{title:"(GMT +5:30) India Standard Time",name:"IST",offsetHrs:-5,offsetMinutes:-30},{title:"(GMT +6:00) Bangladesh Standard Time",name:"BST",offsetHrs:-6,offsetMinutes:0},{title:"(GMT +7:00) Vietnam Standard Time",name:"VST",offsetHrs:-7,offsetMinutes:0},{title:"(GMT +8:00) Malaysian Standard Time",name:"MST",offsetHrs:-8,offsetMinutes:0},{title:"(GMT +8:00) China Taiwan Time",name:"CTT",offsetHrs:-8,offsetMinutes:0},{title:"(GMT +9:00) Japan Standard Time",name:"JST",offsetHrs:-9,offsetMinutes:0},{title:"(GMT +9:30) Australia Central Time",name:"ACT",offsetHrs:-9,offsetMinutes:-30},{title:"(GMT +10:00) Australia Eastern Time",name:"AET",offsetHrs:-10,offsetMinutes:0},{title:"(GMT +11:00) Solomon Standard Time",name:"SST",offsetHrs:-11,offsetMinutes:0},{title:"(GMT +12:00) New Zealand Standard Time",name:"NST",offsetHrs:-12,offsetMinutes:0},{title:"(GMT -11:00) Midway Islands Time",name:"MIT",offsetHrs:11,offsetMinutes:0},{title:"(GMT -10:00) Hawaii Standard Time",name:"HST",offsetHrs:10,offsetMinutes:0},{title:"(GMT -9:00) Alaska Standard Time",name:"AST",offsetHrs:9,offsetMinutes:0},{title:"(GMT -8:00) Alaska Daylight Time",name:"ADT",offsetHrs:8,offsetMinutes:0},{title:"(GMT -7:00) Pacific Daylight Time",name:"PDT",offsetHrs:7,offsetMinutes:0},{title:"(GMT -6:00) Central Standard Time",name:"CST",offsetHrs:6,offsetMinutes:0},{title:"(GMT -6:00) Mountain Daylight Time",name:"MDT",offsetHrs:6,offsetMinutes:0},{title:"(GMT -5:00) Central Daylight Time",name:"CDT",offsetHrs:5,offsetMinutes:0},{title:"(GMT -4:00) Eastern Daylight Time",name:"EDT",offsetHrs:4,offsetMinutes:0},{title:"(GMT -4:00) Puerto Rico and US Virgin Islands Time",name:"PRT",offsetHrs:4,offsetMinutes:0},{title:"(GMT -3:30) Canada Newfoundland Time",name:"CNT",offsetHrs:3,offsetMinutes:30},{title:"(GMT -3:00) Atlantic Daylight Time",name:"ADT",offsetHrs:3,offsetMinutes:0},{title:"(GMT -3:00) Argentina Standard Time",name:"AGT",offsetHrs:3,offsetMinutes:0},{title:"(GMT -3:00) Brazil Eastern Time",name:"BET",offsetHrs:3,offsetMinutes:0},{title:"(GMT -2:30) Newfoundland Daylight Time",name:"NDT",offsetHrs:2,offsetMinutes:30},{title:"(GMT -1:00) Central African Time",name:"CAT",offsetHrs:1,offsetMinutes:0}],p=.3,g=2.2,f=25,x={[i.u0.General]:"General donation",[i.u0.Endowment]:"Yaqeen's dedicated endowment <i>(waqf)</i>"},y={[i.jt.my]:"General donation",[i.jt.ca]:"General donation",[i.jt.us]:"General donation",[i.jt.ed]:"This donation will be made to Yaqeen Endowment, a non profit corporation (EIN: 83-4372176), dedicated to supporting Yaqeen Institute for Islam
1ic Research",[i.jt.ca_ed]:"Yaqeen's dedicated endowment (waqf)",[i.jt.uk]:"General donation"},b={[i.vq.Equally]:"Give the same amount each night",[i.vq.MoreOnOdd]:"Give more on odd nights",[i.vq.MoreOn27th]:"Give more on the 27th night"},v=[i.Sj.SGD,i.Sj.MYR,i.Sj.IDR],w=[i.Sj.GBP,i.Sj.EUR],j=[...v,...w],k="Cards issued in India cannot be used for recurring donations. Please use a different card or make a one-time donation instead.",N={[i.Sj.USD]:"US",[i.Sj.CAD]:"CA",[i.Sj.MYR]:"MY",[i.Sj.GBP]:"UK",[i.Sj.EUR]:"UK"}},22451:(e,t,a)=>{"use strict";a.d(t,{zc:()=>n,$u:()=>l,L5:()=>s}),a(65087),a(64141);var i=a(99742);let r=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2?arguments[2]:void 0;if(!i.env.HS_ACCESS_TOKEN)return console.error("HS_ACCESS_TOKEN is not configured; skipping HubSpot newsletter-submission check"),t;let n=`https://api.hubapi.com/events/v3/events/?objectType=CONTACT&eventType=e_submitted_form&objectProperty.email=${e}`;a&&(n+=`&after=${a}`);try{var s,l,o,c;let a=await fetch(n,{method:"get",headers:{"Content-Type":"application/json","X-HubSpot-Request-Source":"js",Authorization:`Bearer ${i.env.HS_ACCESS_TOKEN}`}}),d=await a.json();if(!a.ok||!(null!=d&&d.results)||0===d.results.length)return t;for(let e of d.results)if((null==e||null==(l=e.properties)?void 0:l.hs_form_id)===hubspotForms.newsletter.formId){if(null!=e&&null!=(o=e.properties)&&o.hs_title.includes("paper")){t.paper||(t.paper=!0);continue}t.general||(t.general=!0)}if(null!=d&&null!=(s=d.paging)&&null!=(s=s.next)&&s.after)return await r(e,t,null==d||null==(c=d.paging)||null==(c=c.next)?void 0:c.after);return t}catch(e){return console.error("Error checking HS form submitted",{error:e}),t}},n=async e=>{try{let t=await fetch(`/api/v1/hs-forms/submitted?formId=${encodeURIComponent(e)}`);
1if(!t.ok)return!1;let a=await t.json();return!!(null!=a&&a.submitted)}catch(e){return console.error("Error checking HS form submission via API",{error:e}),!1}},s=async()=>{var e;let t=await fetch("/api/v1/hs-forms/newsletter/submission");if(!t.ok)return;let a=await t.json();return!!(null!=a&&null!=(e=a.newsletterSubmissions)&&e.paper)},l=async()=>{var e;let t=await fetch("/api/v1/hs-forms/newsletter/submission");if(!t.ok)return;let a=await t.json();return!!(null!=a&&null!=(e=a.newsletterSubmissions)&&e.general)}},22463:(e,t,a)=>{"use strict";a.d(t,{_:()=>c});var i=a(54587),r=a.n(i),n=a(18012),s=a(69174),l=a(86400),o=a(37876);let c=e=>{let{backgroundImageSrc:t,foregroundImageSrc:a,imageAlt:i,CTAs:c,bannerId:d}=e,h=0===c.length;return(0,o.jsxs)("section",{className:"relative w-full h-[56vw] min-h-[280px] max-h-[700px] overflow-hidden",children:[(0,o.jsx)(r(),{alt:i,src:t,loader:l.R2,layout:"fill",priority:!0,className:"object-cover object-center",sizes:"100vw"}),h?(0,o.jsx)(r(),{alt:i,src:a,loader:l.R2,layout:"fill",priority:!0,className:"object-contain",sizes:"100vw"}):(0,o.jsxs)("div",{className:"absolute inset-0 flex flex-col items-center justify-center pt-12 sm:pt-0 pb-8 sm:pb-12 md:pb-16 lg:pb-20 px-4",children:[(0,o.jsx)("div",{className:"w-[57%] max-w-[227px] sm:max-w-[324px] md:max-w-[405px] lg:max-w-[486px] xl:max-w-[567px] mb-6 sm:mb-8 lg:mb-10",children:(0,o.jsx)(r(),{alt:i,src:a,loader:l.R2,width:792,height:166,layout:"responsive",sizes:"(max-width: 640px) 227px, (max-width: 768px) 324px, (max-width: 1024px) 405px, (max-width: 1280px) 486px, 567px"})}),(0,o.jsx)("div",{className:"flex flex-col sm:flex-row justify-center items-center gap-2 sm:gap-4",children:c.map((e,t)=>(0,o.jsx)(s.qh,{onClick:()=>{(0,n.$s)(`${d}_${t+1}`,"click",`item_name: ${e.title}`)},href:e.href,scroll:!1,className:`inline-flex min-h-[44px] items-center justify-center ${0===t?"bg-carrot-500 hover:bg-carrot-800 text-white":"border border-white"} px-4 sm:px-6 md:px-8 lg:px-10 py-2 sm:py-2.5 md:py-3 transition-colors`,children:(0,o.jsx)(s.EY,{as:"span",fontSize:"text-base sm:text-lg md:text-lg lg:text-xl",color:0===t?"text-white":"text-grey-40",weight:"font-semibold",className:"text-center whitespace-nowrap",children:e.title})},t))})]})]})}},23001:(e,t,a)=>{"use strict";a.d(t,{aJ:()=>W,m5:()=>Y,Ni:()=>L,L_:()=>U,qQ:()=>B});var i=a(66284),r=a(14232),n=a(74382),s=a.n(n),l=a(17199),o=a(10180),c=a(18012),d=a(32008),h=a(5602),u=a(57002),m=a(69174),p=a(67579),g=a(16192),f=a(36708),x=a(18125),y=a(37876);let b=new Set(["p","div","blockquote","li"]),v=e=>{if("string"==typeof e)return e;if("number"==typeof e)return e.toString();if(Array.isArray(e))return e.map(v).join("");if(e&&"object"==typeof e&&"props"in e){var t;let a=null==(t=e.props.dangerouslySetInnerHTML)?void 0:t.__html,i="string"==typeof a?(e=>{if("undefined"==typeof document)return e.replace(/<[^>]*>/g,"");let t=document.createElement("div");return t.innerHTML=e,t.textContent||""})(a):v(e.props.children);return"string"==typeof e.type&&b.has(e.type)?`${i} 2 3`:i}return""},w=e=>{let{content:t,source:a,sourceAlign:i="left"}=e,[n,s]=r.useState(!1),l=async()=>{let e=v(t).trim(),i=v(a).trim(),r=window.location.href,n=`"${e}" 4 5â ${i} 6 7Read more at: ${r}`;navigator.share?navigator.share({text:n}):(await navigator.clipboard.writeText(n),s(!0),setTimeout(()=>s(!1),2e3))};return(0,y.jsx)("div",{className:"bg-[#fff3d3] rounded-xl lg:p-9 p-6 flex flex-col items-left justify-left relative",children:(0,y.jsxs)("div",{className:"w-full",children:[(0,y.jsx)(m.EY,{as:"div",fontSize:"lg:text-xl text-lg",fontFamily:"font-source-serif-pro",lineHeight:"lg:leading-7 leading-[1.37]",color:"text-[#cc5702]",className:"text-left",children:t}),a&&(0,y.jsxs)("div",{className:"mt-6 flex items-baseline justify-between",children:[(0,y.jsxs)("div",{className:"flex items-baseline flex-1",children:[("right"===i||"center"===i)&&(0,y.jsx)("div",{className:"h-[1px] bg-[#a1430b] flex-1 mr-3"}),(0,y.jsx)(m.EY,{as:"p",fontSize:"text-base",fontFamily:"font-source-serif-pro",color:"text-[#a1430b]",className:"right"===i?"text-right":"center"===i?"text-center":"text-left",children:a}),("left"===i||"center"===i)&&(0,y.jsx)("div",{className:"h-[1px] bg-[#a1430b] flex-1 ml-3"})]}),(0,y.jsxs)("button",{onClick:l,className:"px-3 py-2 hover:bg-[#a1430b]/10 rounded-full transition-colors flex items-center gap-1",title:n?"Copied to clipboard!":"Share quote with source",children:[(0,y.jsx)(x.g,{icon:f.t5Z,className:" w-3 h-3 text-[#a1430b]"}),(0,y.jsx)(m.EY,{as:"span",fontSize:"lg:text-base text-sm",weight:"font-semibold",color:"text-[#a1430b]",children:n?"Copied!":"Share"})]})]})]})})};var j=a(66135),k=a(1056),N=a(82611),_=a(2209),S=a(96938),A=a(61300),C=a(61381),P=a(44221);let T=e=>e.replace(/–/g,"â").replace(/ /g," ").replace(/’/g,"'").replace(/'/g,"'").replace(/ /g," "),O=/(\(Qur(?:['']|’|')an[^)]*\))/,E=e=>{let t=s().load(e),a=t("cite").text().trim(),i=t("cite").length>0,r=(e=>{e("cite").remove();let t=e("blockquote").first();return t.length&&t.replaceWith(t.html()||""),(e("body").html()||"").trim()})(t);if(i)return{cleanContent:r,formattedSource:T(a)};let n=r.match(O);return{cleanContent:n?r.replace(O,"").trim():r,formattedSource:n?T(n[1]).replace(/<[^>]*>/g,""):void 0}};var I=a(22240),D=a(68831);function q(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,i)}return a}function M(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};
7t%2?q(Object(a),!0).forEach(function(t){(0,i.A)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):q(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}let $=/[Ø-Û¿Ý-ݿࢠ-ࣿï-ï·¿ï¹°-]/g,H=/[A-Za-z]/g,R=e=>{if(!e.includes("#ftnt"))return e;let t=s().load(e),a=t('sup > a[href^="#ftnt"]');return a.length?(a.each((e,a)=>{t(a).parent().replaceWith(a)}),t("html body").html()||e):e},z=(0,C.zn)({Popover:e=>(0,y.jsx)(p.FootnotePopover,M({},e)),styleContent:e=>U(B(e))}),F=(0,C.Zh)(z),Y=e=>{let{paragraphs:t,trendingPapers:a,editorsPickPapers:i,similarPapers:n,footnotes:f,isCustomElement:x=!1,slug:b,isFirstParagraph:v=!1,isBlog:T=!1,postType:O=null,rootTab:q,rootSection:z=0,blockIndices:Y,sectionIndex:L=0,duaAnchors:B}=e,W=0,G=B??new Set;return t.map((e,t)=>{let B,Z=(0,P.h5)(e,t),Q=(0,S.Uu)(e),V=null,K=[];if(Q)W+=1,B=(0,S.j6)(Q.duaId,L,W,G);else{var J;K=((null==(J=V=(0,S.EM)(e))?void 0:J.parts)??[]).map(e=>(W+=1,(0,S.j6)(e.duaId,L,W,G)))}let X=(e=>{let{html:t,key:a,trendingPapers:i,editorsPickPapers:n,similarPapers:o,isCustomElement:f,slug:x,isFirstParagraph:b=!1,isBlog:v=!1,footnotes:T=[],postType:O=null,duaParts:q=null,duaAnchorId:z,duaPlan:Y=null,duaPlanAnchorIds:L=[]}=e,B=t.trim().split(A.sS).join(""),W=Y?(0,S.BH)(Y.parts.map((e,t)=>(0,S.ai)(e,{key:`${a}-dua-${t}`,anchorId:L[t],variant:v?"blog":"paper",processFootnotes:e=>F(e,T),preprocessPartHtml:R}))):void 0;Y&&(B=Y.html.split(A.sS).join(""));let G=e=>W?(0,l.Ay)(e,W):(0,l.Ay)(e),Z=(0,A.ld)(t.trim());if(Z)return(0,y.jsx)("div",{className:"mb-6",children:(0,y.jsx)(h.A,{videoId:Z,containerClassName:"aspect-w-16 aspect-h-9",onReady:()=>{(0,c.$s)("video_in_article","ready",`slug: ${x}`)},onPause:()=>{(0,c.$s)("video_in_article","pause",`slug: ${x}`)},onEnd:()=>{(0,c.$s)("video_in_article","end",`slug: ${x}`)},onPlay:()=>{(0,c.$s)("video_in_article","play",`slug: ${x}`)},onError:e=>{(0,c.$s)("video_in_article","error",`slug: ${x}`),d.A.error("Error in YouTube video in article ",{error:e,slug:x})}})},a);let{tagName:Q,attributes:V}=(0,P.ED)(B),K=s().load(B),J=K("div.wp-block-image > figure");
7if(!W&&J.length)return(0,y.jsx)(p.ConvertImage,{html:J.html(),postType:O});if(!W&&K("div.yaqeen-aligned-quote").length)return((e,t)=>{let a=s().load(e),i=a("div.yaqeen-aligned-quote");i.find("meta").remove();let r=[],n=null,l="right";return i.children("p").each((e,t)=>{let i=a(t),s=i.attr("class")||"",o=i.html()||"";if(!o.trim())return;if(s.includes("yaqeen-aligned-quote__citation")){n=(0,y.jsx)("span",{dangerouslySetInnerHTML:{__html:o}}),l=(e=>e.includes("has-text-align-center")?"center":e.includes("has-text-align-right")?"right":"left")(s);return}let c=s.includes("yaqeen-aligned-quote__arabic")||(e=>{let t=(e.match($)||[]).length;return 0!==t&&t>=(e.match(H)||[]).length})(i.text()),d=(e=>e.includes("has-text-align-center")?"text-center":e.includes("has-text-align-right")?"text-right":e.includes("has-text-align-left")?"text-left":"")(s),h=r.length>0?"mt-6":"";r.push((0,y.jsx)("p",M(M({},c?{lang:"ar",dir:"rtl"}:{}),{},{className:`${d} ${h}`.trim().replace(/\s+/g," "),dangerouslySetInnerHTML:{__html:o}}),`alq-${e}`))}),(0,y.jsx)(w,{content:(0,y.jsx)(y.Fragment,{children:r}),source:n??void 0,sourceAlign:l},t)})(B,a);if(q){let e=(0,S.ai)(q,{key:a,anchorId:z,variant:v?"blog":"paper",processFootnotes:e=>F(e,T),preprocessPartHtml:R});if(e)return e}let X=s().load(B),ee=X('sup > a[href^="#ftnt"]');switch(ee.length>0&&(ee.each((e,t)=>{X(t).parent().replaceWith(t)}),B=X("html body").html()),Q){case"h3":return(0,y.jsx)("h3",{id:V.id,className:`text-xl xl:text-2xl font-proxima-nova !mt-12 !mb-8 font-semibold tracking-tight-1 leading-[1.25] ${v?"text-endeavour-800":"text-[#193cb8]"}`,dangerouslySetInnerHTML:{__html:(0,P.R3)(B.replace(/<\/?strong>/gi,""),Q)}},a);case"blockquote":if(v){let{cleanContent:e,formattedSource:t}=E(B),a=U(e),i=(0,y.jsx)(y.Fragment,{children:G(a)}),r=(0,C.ZV)(i,"#ftnt")?F(i,T):i;return(0,y.jsx)(w,{content:r,source:t})}let{cleanContent:et,formattedSource:ea}=E(B),ei=(0,D.Y2)(s().load(et)("body").text()),er=(0,D.Jh)(ei),en=er.length>0?et.replace(D.R$,""):et;return(0,y.jsxs)(r.Fragment,{children:[(0,y.jsx)("blockquote",{className:"border-l-4 border-[#ff7800] pl-6 font-source-serif-pro text-lg sm:text-xl text-[#0f172b] leading-8 space-y-5",children:G((0,P.R3)(en,Q))}),ea&&(0,y.jsx)("p",{className:"border-l-4 border-[#ff7800] pl-6 text-right font-source-serif-pro text-lg sm:text-xl text-[#0f172b] leading-8",children:ea}),er.map((e,t)=>(0,y.jsx)(N.A,{verses:e.verseRef},`quran-blockquote-${e.verseRef}-${t}`))]},a);case"ol":return(0,y.jsx)(j.A,{as:"ol",start:null==V?void 0:V.start,isCustomElement:f,children:G((0,P.R3)(B,Q))},a);case"ul":return(0,y.jsx)(j.A,{as:"ul",isCustomElement:f,children:G((0,P.R3)(B,Q))},a);case"span":return(0,y.jsx)("span",{dangerouslySetInnerHTML:{__html:(0,P.R3)(B,Q)}},a);case"figure":{let e=s().load(B);return e("table").length>0?(0,y.jsx)("div",{className:"mb-5",children:G((0,P.M$)(e))},a):(0,y.jsx)(p.ConvertImage,{html:(0,P.R3)(B,Q),postType:O})}case"table":{let e=s().load(B);return(0,y.jsx)("div",{className:"mb-5 overflow-scroll",children:G((0,P.M$)(e))},a)}case"img":return(0,y.jsx)(p.ConvertImage,{html:t.trim(),postType:O});case"donate-cta":return(0,y.jsx)(p.DonateCTA,{});case"subscribe-cta":return(0,y.jsx)("div",{className:"xl:hidden",children:(0,y.jsx)(_.H,{})});case"trending-papers":return(0,y.jsx)("div",{children:(0,y.jsx)("div",{className:"xl:hidden",children:i&&(0,y.jsx)(k.A,{title:"Trending papers",posts:i,analytic:"trending_papers"})})});case"editorspick-papers":return(0,y.jsx)("div",{children:(0,y.jsx)("div",{className:"xl:hidden",children:n&&(0,y.jsx)(k.A,{title:"Editor's Picks",posts:n,analytic:"editorspick_papers"})})});case"similar-papers":return(0,y.jsx)("div",{children:(0,y.jsx)("div",{className:"xl:hidden",children:!f&&o&&(0,y.jsx)(k.A,{title:"Explore similar papers",posts:o,analytic:"similar_papers"})})});case"pillar":return(0,y.jsx)("div",{className:"pt-5",children:(0,y.jsx)(g.A,{url:V.url,title:V.title,description:V.description})});default:let es=s().load(B);if((0,I.im)(es))return(0,y.jsx)("div",{className:"xl:max-w-2xl font-source-serif-pro text-sm xl:text-base text-grey-900 break-words",dangerouslySetInnerHTML:{__html:(0,P.R3)(B,Q)}},a);if(B.includes("<callout>")&&B.includes("</callout>"))return(0,y.jsx)("div",{className:"text-grey-900 font-source-serif-pro font-semibold sm:text-4xl xs:text-2xl !my-12 leading-tight",children:G((0,P.R3)(B.replace(/<callout>/g,"").replace(/<\/callout>/g,"").replace(/ /g," "),Q))},a);if(B.includes("<paper_proposal_cta>")&&B.includes("</paper_proposal_cta>")||B.includes("<paper_proposal_cta>")&&B.includes("</paper_proposal_cta>")){let e=s().load(B)("a").first(),t=e.attr("href"),i=e.text();return(0,y.jsx)("div",{className:"text-center my-8",children:(0,y.jsx)("a",{target:"_blank",href:t,onClick:()=>{(0,c.$s)("paper_proposal","click","cta_button")},className:"inline-block px-6 py-3 bg-carrot-500 text-white rounded-md hover:bg-carrot-600 transition-colors font-semibold",rel:"noreferrer",children:i||"Submit your paper proposal"})},a)}let el=es("p").text().startsWith("\xa7");if(!f&&el){let{translationNumber:e,rest:t}=(0,P.jn)(B);return(0,y.jsx)(p.Translation,{translationNumber:e,content:G((0,P.R3)(t,Q))},a)}if(O===u.xj.Events){let e=s().load(B)(".wp-block-button");if(e.length>0){let t=e.find("a").first();if(t.length>0){let e=t.attr("href"),a=t.text();return(0,y.jsx)("div",{className:"w-full flex justify-center m-0",children:(0,y.jsx)(m.qh,{href:e,target:"_blank",children:(0,y.jsx)(m.$n,{type:"button",className:"focus:border-jordy-400 focus:outline-none border-transparent bg-carrot-500 hover:bg-carrot-800 px-3 py-[9px] rounded-sm",children:(0,y.jsx)(m.EY,{weight:"font-bold",as:"p",color:"text-white",fontSize:"text-md",children:a})})})})}}}let eo=f?"text-grey-800":"text-grey-900",ec=f?"":"font-source-serif-pro",ed=(0,D.Y2)(es("body").text()),eh=(0,D.Jh)(ed);if(eh.length>0){let e=B.replace(D.R$,"");return(0,y.jsxs)("div",{children:[(0,y.jsx)("div",{className:`text-base xl:text-lg xl:leading-7 leading-[1.5] tracking-normal font-normal oldstyle-nums proportional-nums break-words ${b?" first-letter:float-left lg:first-letter:mr-2 first-letter:mr-1 lg:first-letter:text-8xl first-letter:text-5xl first-letter:font-normal first-letter:text-grey-900 first-letter:align-top lg:first-letter:-mt-2 first-letter:-mt-4":""} ${eo} ${ec}`,children:G((0,P.R3)(e,Q))}),eh.map((e,t)=>(0,y.jsx)(N.A,{verses:e.verseRef},`quran-${e.verseRef}-${t}`))]},a)}return(0,y.jsx)("div",{className:`text-base xl:text-lg xl:leading-7 leading-relaxed tracking-normal font-normal break-words ${b?" first-letter:float-left lg:first-letter:mr-2 first-letter:mr-1 lg:first-letter:text-8xl first-letter:text-5xl first-letter:font-normal first-letter:text-grey-900 first-letter:align-top lg:first-letter:-mt-2 first-letter:-mt-4":""} ${eo} ${ec}`,children:G((0,P.R3)(B,Q))},a)}})({html:e,key:Z,trendingPapers:a,editorsPickPapers:i,similarPapers:n,isCustomElement:x,slug:b,isFirstParagraph:v&&0===t,isBlog:T,footnotes:f,postType:O,duaParts:Q,duaAnchorId:B,duaPlan:V,duaPlanAnchorIds:K}),ee=(0,C.ZV)(X,"#ftnt")?F(X,f):X;return q?(0,P.EN)(ee,(0,o.MG)({tab:q,section:z,block:(null==Y?void 0:Y[t])??t})):ee})},L=e=>{var t;return(null==e||null==(t=e.filter(e=>e.length>0))?void 0:t.map(e=>e.map(e=>B(e)).map(U)))||[]},B=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default",a="default"===t?"url":"url-dark-mode",i=s().load(e);return i("a").addClass(a),i('a[href*="#ftnt"]').removeClass(a),i('a[href*="#ftnt_ref"]').removeClass(a),i("html body").html()},U=e=>{let t=s().load(e);return t('a[href*="#ftnt"]').each((e,a)=>{let i=t(a);!(i.attr("href")||"").includes("#ftnt_ref")&&(i.parent().is("sup")||i.wrap("<sup></sup>"))}),t('a[href*="#ftnt"]').addClass("font-bold text-[#ff7800] font-source-serif-pro"),t('a[href*="#ftnt"]').each((e,a)=>(0,P.kJ)(t,t(a))),t('a[href*="#ftnt_ref"]').each((e,a)=>{let i=t(a),r=i.text().trim();i.text(`${r}. ^`)}),t('a[href*="#ftnt_ref"]').addClass("font-bold text-[#ff7800] font-source-serif-pro"),t("html body").html()},W=(e,t)=>{let a=t===u.KT.Dark?"dark":"default",i=s().load(B(e,a)),r="default"===a?"url":"url-dark-mode";return i("*").contents().filter(function(){return"text"===this.type&&/https?:\/\//.test(i(this).text())}).each(function(){if(i(this).closest("a").length)return;let e=i(this).text().replace(/(https?:\/\/[^\s<>"'()]+)/g,`<a href="$1" target="_blank" rel="noopener noreferrer" class="${r}">$1</a>`);i(this).replaceWith(e)}
7),["p","ol","ul"].forEach(e=>{i(e).addClass("pb-5")}),i("html body").html()}},25636:(e,t,a)=>{"use strict";a.d(t,{RV:()=>i,_Z:()=>d,cf:()=>l,ee:()=>o,iu:()=>u,nK:()=>r,rm:()=>s,uD:()=>h});let i=e=>e.replace(/^ftnt_ref?/,""),r=e=>{e("div > a").each((t,a)=>{let i=e(a),r=(i.attr("href")||"").trim();if(i.addClass("inline"),r){if(/^https?:\/\//i.test(r)){i.attr("target","_blank"),i.attr("rel","noopener noreferrer");return}/^(\/|mailto:|tel:)/i.test(r)||i.removeAttr("href")}})},n=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ref";return"ref"===t?`ftnt_ref${e}`:`ftnt${e}`},s=e=>{let t=e.replace(/<a[^>]*href="#ftnt_ref[^"]*"[^>]*>[\s\S]*?<\/a>\s*/,"");return t.replace(/^\s*\d+\.?\s*\^?\s*/,"")},l=()=>{let e=document.querySelectorAll("[data-footnote-ref]"),t=[];return e.forEach(e=>{let a=e.getAttribute("data-footnote-ref");if(a){let i=e=>{e.preventDefault();let t=document.getElementById(`ftnt_ref${a}`);t&&t.scrollIntoView({behavior:"smooth",block:"center"})};e.addEventListener("click",i),t.push({element:e,handler:i})}}),()=>{t.forEach(e=>{let{element:t,handler:a}=e;t.removeEventListener("click",a)})}},o=()=>{Array.from(document.getElementsByTagName("sup")).forEach(e=>{Array.from(e.getElementsByTagName("a")).forEach(e=>{if(!e.id){let t=e.href.split("#")[1];t&&(e.id=t.replace("ftnt","ftnt_ref"))}})}),Array.from(document.querySelectorAll('[href^="#ftnt_ref"]')).forEach(e=>{if(!e.id){let t=e.href.split("#")[1];t&&(e.id=t.replace("ftnt_ref","ftnt"))}})},c=function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return t?e.replace(/^ftnt(?=\d)/,"ftnt_ref"):e.replace(/^ftnt_ref/,"ftnt")},d=(e,t,a)=>{if(t&&t.startsWith("ftnt_ref"))return t;if(e){let t=(e=>{let t=e.match(/#ftnt[_ref]?(\d+)/);return t?t[1]:""})(e);if(t)return n(t,"ref")}if(null!=a){let e=String(a).replace(/[\[\]]/g,"");if(e)return n(e,"ref")}return t?c(t,!0):""},h=e=>({className:"text-sm font-source-serif-pro text-carrot-600 font-bold flex-shrink-0 cursor-pointer hover:text-carrot-700 hover:underline transition-colors","data-footnote-ref":e,title:`Go back to footnote ${e} in the article`}),u=(e,t)=>({key:e,className:"break-inside-avoid mb-4 break-words overflow-wrap-anywhere",id:`ftnt${t}`})},26036:(e,t,a)=>{"use strict";a.d(t,{L:()=>i,N:()=>r});let i=[{title:"Blog",href:"/read/post"},{title:"News",href:"/news"},{title:"Events",href:"/events"}],r=[{title:"Discover",href:"/discover"}]},26195:(e,t,a)=>{"use strict";a.d(t,{ET:()=>r,li:()=>i,nW:()=>n});let i=function(e){return e.Stripe="stripe",e.PayPal="paypal",e.Offline="offline",e}({}),r=function(e){return e.Succeeded="Succeeded",e.Failed="Failed",e.Pending="Pending",e.Refunded="Refunded",e.Denied="Denied",e.ClosedWon="Closed Won",e.Pledged="Pledged",e.Completed="Completed",e}({}),n=function(e){return e.success="successful",e.blocked="blocked",e.canceled="canceled",e.failed="failed",e.refunded="refunded",e}({})},26591:()=>{},27365:(e,t,a)=>{"use strict";a.d(t,{$:()=>x});var i=a(14232),r=a(18125),n=a(95311),s=a(42484),l=a(854),o=a(45999),c=a(18012),d=a(94030),h=a(64141),u=a(65083),m=a(38311),p=a(69174),g=a(4797),f=a(37876);let x=e=>{let{isOpen:t,onClose:a,onDismiss:x}=e,{isVerified:y,currentUser:b}=(0,s.l)(),{0:v,1:w}=(0,i.useState)(!1),{showPaperNewsletterForm:j,updateState:k}=(0,m.K)(),N=async()=>{w(!0),(0,d.h6)("Subscribe");let[e,t]=await (0,o.r)("/api/v1/hs-forms/newsletter",{email:b.email,yaqeen_subscriber_source:h.xY.PAPER_PAGE,pageUri:window.location.href,pageName:"paper_subscribe_popup"});(0,c.$s)("paper_subscribe_popup","subscribe",`loggedIn: ${y}, alreadySubmitted: ${t}, success: ${e}`),w(!1),e?(k("paper",!0),(0,g.ge)(t?"You're already on the list":"Thank you! You're all signed up for paper updates.",{closeButton:!0,autoClose:6e3})):(0,g.ge)("Error while subscribing. Please try again.",{closeButton:!0,autoClose:6e3}),a()},_=j&&y&&t,S=(0,i.useRef)(!1);return((0,i.useEffect)(()=>{if(!_){S.current=!1;return}S.current||(S.current=!0,(0,c.$s)("paper_subscribe_popup","display"))},[_]),j)?(0,f.jsxs)(f.Fragment,{children:[v&&(0,f.jsx)(u.p8,{}),y&&(0,f.jsx)(n.so,{children:(0,f.jsx)(p.lG,{title:"Get Updates",isOpen:t,modalClassName:"justify-center p-4 text-center sm:items-center sm:p-0",children:(0,f.jsxs)("div",{className:"rounded-lg bg-white px-4 pb-4 pt-5 text-left shadow-xl sm:my-8 sm:w-full sm:max-w-lg sm:p-6",children:[(0,f.jsxs)("div",{className:"pb-6",children:[(0,f.jsx)("div",{className:"mx-auto flex h-12 w-12 items-center justify-center rounded-full bg-jordy-50",children:(0,f.jsx)(r.g,{icon:l.y_,className:"h-8 w-8 text-jordy-900",fixedWidth:!0})}),(0,f.jsxs)("div",{className:"mt-3 text-center sm:mt-5",children:[(0,f.jsx)(p.DZ,{color:"text-grey-900",fontSize:"text-3xl",weight:"font-semibold",lineHeight:"leading-9",className:"text-center",children:"Enjoyed this read? There's more."}),(0,f.jsx)("div",{className:"mt-2",children:(0,f.jsx)("p",{className:"text-sm text-grey-800",children:"Get our weekly curated reads delivered straight to your inbox, for a deeper understanding of Islam and the world around us."})})]})]}),(0,f.jsxs)("div",{className:"sm:grid sm:grid-flow-row-dense sm:grid-cols-2 sm:gap-3",children:[(0,f.jsx)(p.$n,{onPress:()=>x(),className:"inline-flex w-full justify-center rounded-md bg-white px-4 py-3 rounded ring-1 ring-inset ring-grey-200 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600 sm:col-start-2",children:(0,f.jsx)(p.EY,{as:"p",color:"text-grey-900",weight:"font-bold",letterSpacing:"tracking-tight-1",lineHeight:"leading-tight",children:"Don't ask me again"})}),(0,f.jsx)(p.$n,{onPress:()=>N(),className:"mt-3 inline-flex w-full justify-center rounded-md bg-carrot-500 px-4 py-3 sm:col-start-1 sm:mt-0",children:(0,f.jsx)(p.EY,{as:"p",color:"text-white",weight:"font-bold",letterSpacing:"tracking-tight-1",lineHeight:"leading-tight",children:"Subscribe"})})]})]})})})]}):(0,f.jsx)(f.Fragment,{})}},28450:(e,t,a)=>{"use strict";a.d(t,{h2:()=>ee.CookieBanner,NI:()=>K,pO:()=>J.p,ms:()=>W,zY:()=>X.z});var i=a(14232),r=a(9361),n=a(65083),s=a(66284),l=a(89099),o=a(85669),c=a(18012),d=a(43445),h=a(37876);function u(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,i)}return a}function m(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};
7t%2?u(Object(a),!0).forEach(function(t){(0,s.A)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):u(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}let p={enabled:!0,startDate:null,endDate:null,showOnDesktop:!1,showOnAllPages:!1},g={body:(0,h.jsx)(h.Fragment,{children:"Read along with us in the Yaqeen Book Club."}),cta:"Join the book club",url:"https://yqn.io/app",dismissible:!0,dismissalKey:"book-club-sticky-dismissed",variant:"book-club-sticky-v1",events:{view:"book_club_banner_view",click:"book_club_banner_click",dismiss:"book_club_banner_dismiss"}},f=m(m({},g),{},{hideOnDesktop:!0}),x=m(m({},g),{},{hideOnDesktop:!1}),y=e=>{if(!e)return null;let t=new Date(e).getTime();return Number.isNaN(t)?null:t},b=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date;return!p.enabled||!(e=>{let t=y(p.startDate),a=y(p.endDate),i=e.getTime();return(null===t||!(i<t))&&(null===a||!(i>a))})(t)||(0,d.bP)()||e.startsWith("/donate")?null:p.showOnAllPages||"/read"===e||e.startsWith("/read/")?p.showOnDesktop?x:f:null};var v=a(6143),w=a(323),j=a(79955);function k(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,i)}return a}function N(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?k(Object(a),!0).forEach(function(t){(0,s.A)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):k(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}let _=e=>{let{0:t,1:a}=(0,i.useState)(!1),{0:n,1:s}=(0,i.useState)(!1),{firebaseAuth:{userInfo:l}}=(0,w.m)(),o=async()=>{if(l.authState!==r.j_.VerifiedAuth)return;let e=await fetch("/api/v1/hs-forms/newsletter/submission");if(!e.ok)return;let t=await e.json();null!=t&&t.newsletterSubmissions?(t.newsletterSubmissions.paper&&s(!1),t.newsletterSubmissions.general&&a(!1),v.Cj.setItem(v.UT.NewsletterSubmission,t.newsletterSubmissions)):v.Cj.setItem(v.UT.NewsletterSubmission,{paper:!1,general:!1})};return(0,i.useEffect)(()=>{(()=>{if(null!==v.Cj.getItem(v.UT.NewsletterSubmission)){let e=v.Cj.getItem(v.UT.NewsletterSubmission);null!=e&&e.paper||s(!0),null!=e&&e.general||a(!0);return}v.Cj.setItem(v.UT.NewsletterSubmission,{paper:!1,general:!1}),a(!0),s(!0)})(),o()},[l.authState]),(0,h.jsx)(j.A.Provider,{value:{showNewsletterForm:t,showPaperNewsletterForm:n,updateState:(e,t)=>{"paper"===e&&s(!t),"general"===e&&a(!t);let i=v.Cj.getItem(v.UT.NewsletterSubmission);v.Cj.setItem(v.UT.NewsletterSubmission,N(N({},i),{},{[e]:t}))}},children:e.children})};var S=a(67579),A=a(54587),C=a.n(A),P=a(51097),T=a(32984),O=a(41205),E=a.n(O),I=a(8218),D=a(69174),q=a(82410),M=a(4797);let $={Read:{groups:[{links:[{label:"Papers",href:"/read/papers"},{label:"Blog",href:"/read/blogs"},{label:"eBooks",href:"/read/books"},{label:"Series",href:"/read/series"},{label:"Infographics",href:"/infographics"},{label:"Reports",href:"/read/data/reports"},{label:"Translations",href:"/translations"},{label:"Printables",href:"/tag/printables"}]}]},Watch:{groups:[{links:[{label:"Latest Videos",href:"/watch/videos"},{label:"Series",href:"/watch/series"},{label:"Animation",href:"/watch/animation"},{label:"Khutbah",href:"/watch/khutbah"},{label:"Lectures",href:"/watch/lecture"},{label:"Reflections",href:"/watch/reflection-video"},{label:"Webinars",href:"/watch/webinar-video"}]}]},Explore:{groups:[{title:"Discover",links:[{label:"Topics A-Z",href:"/topics"},{label:"News",href:"/news"},{label:"Events",href:"/events"},{label:"Listen",href:"/listen"},{label:"Yaqeen Compass",href:"/compass"}]},{title:"Learn",links:[{label:"Curriculum",href:"/curriculum"},{label:"Conversations",href:"/conversations"},{label:"Conviction Circles",href:"/conviction-circles"},{label:"Talk Toolkits",href:"/talk-toolkits"},{label:"What Islam Says About",href:"/what-islam-says-about"}]}]},"About us":{groups:[{links:[{label:"Our Mission",href:"/about-us/our-mission"},{label:"Team",href:"/team"},{label:"Ask Yaqeen",href:"/askyaqeen"},{label:"Careers",href:"/careers"},{label:"Volunteer",href:"/volunteer"},{label:"Contact Us",href:"/contact-us"},{label:"Annual Reports",href:"/annual-reports"},{label:"Publish on Yaqeen",href:"/submit-your-paper-proposal"}]}]}},H=e=>{let{label:t,href:a,data:r,isNavActive:n}=e,{0:s,1:l}=(0,i.useState)(!1),o=(0,i.useRef)(),d=(0,i.useRef)(),u=(0,i.useRef)(null),m=(0,i.useCallback)(()=>{clearTimeout(d.current),o.current=setTimeout(()=>l(!0),100)},[]),p=(0,i.useCallback)(()=>{clearTimeout(o.current),d.current=setTimeout(()=>l(!1),200)},[]);return(0,i.useEffect)(()=>()=>{clearTimeout(o.current),clearTimeout(d.current)},[]),(0,h.jsxs)("div",{ref:u,className:"relative flex items-center h-full",onMouseEnter:m,onMouseLeave:p,children:[(0,h.jsxs)(D.qh,{href:a,prefetch:!1,className:"flex items-center h-full px-2 relative focus:outline-none",onClick:()=>{(0,c.$s)("nav_header","click",`header: ${t}`)},children:[(0,h.jsx)(D.EY,{weight:"font-semibold",fontSize:"text-base",color:n?"text-slate-800":"text-slate-600 hover:text-slate-800",className:"tracking-tight",children:t}),(0,h.jsx)("svg",{className:`ml-1 w-3 h-3 transition-transform ${s?"rotate-180":""} ${n?"text-slate-800":"text-slate-500"}`,fill:"none",viewBox:"0 0 12 12",children:(0,h.jsx)("path",{d:"M2 4l4 4 4-4",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})}),(0,h.jsx)("div",{className:`absolute bottom-0 left-1 right-2 h-1 rounded-t ${n?"bg-carrot-400":""}`})]}),(0,h.jsx)("div",{className:`absolute top-full left-0 pt-1 z-50 transition-all duration-150 ${s?"opacity-100 translate-y-0 visible":"opacity-0 -translate-y-1 invisible"}`,role:"menu",children:(0,h.jsxs)("div",{className:"bg-white rounded-lg shadow-lg border border-slate-200 py-2 min-w-[200px]",children:[r.featured&&(0,h.jsxs)("div",{className:"px-4 py-2 border-b border-slate-100 mb-1",children:[r.featured.title&&(0,h.jsx)(D.EY,{weight:"font-bold",fontSize:"text-xs",color:"text-carrot-500",className:"uppercase tracking-wider mb-1",children:r.featured.title}),r.featured.links.map(e=>(0,h.jsx)(D.qh,{href:e.href,prefetch:!1,className:"flex items-center py-1.5 hover:opacity-80 transition-opacity",onClick:()=>{(0,c.$s)("nav_dropdown_featured","click",`${t}: ${e.label}`),l(!1)},children:(0,h.jsx)(D.EY,{weight:"font-semibold",fontSize:"text-sm",color:"text-carrot-600",className:"tracking-tight",children:e.label})},e.href))]}),r.groups.map((e,a)=>(0,h.jsxs)("div",{className:a>0?"border-t border-slate-100 mt-1 pt-1":"",children:[e.title&&(0,h.jsx)("div",{className:"px-4 pt-2 pb-1",children:(0,h.jsx)(D.EY,{weight:"font-bold",fontSize:"text-xs",color:"text-slate-400",className:"uppercase tracking-wider",children:e.title})}),e.links.map(e=>(0,h.jsx)(D.qh,{href:e.href,prefetch:!1,className:"flex items-center px-4 py-2 hover:bg-slate-50 transition-colors",onClick:()=>{(0,c.$s)("nav_dropdown","click",`${t}: ${e.label}`),l(!1)},children:(0,h.jsx)(D.EY,{weight:"font-medium",fontSize:"text-sm",color:"text-slate-700 hover:text-slate-900",className:"tracking-tight",children:e.label})},e.href))]},a))]})})]})},R=e=>{let{navItems:t,isActive:a}=e,{0:r,1:n}=(0,i.useState)(!1),{0:s,1:o}=(0,i.useState)(null),d=(0,i.useRef)(null),u=(0,l.useRouter)(),m=(0,i.useCallback)(()=>{n(!1),o(null)},[]);return(0,i.useEffect)(()=>(u.events.on("routeChangeStart",m),()=>{u.events.off("routeChangeStart",m)}),[u.events,m]),(0,i.useEffect)(()=>(r?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[r]),(0,i.useEffect)(()=>{let e=e=>{"Escape"===e.key&&m()};return r&&document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[r,m]),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("button",{onClick:()=>n(!0),"aria-label":"Open navigation menu","aria-expanded":r,className:"flex items-center justify-center w-10 h-10 rounded",children:(0,h.jsx)("svg",{className:"w-5 h-5 text-slate-700",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:(0,h.jsx)("path",{d:"M4 7h16M4 12h16M4 17h16",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})})}),r&&(0,h.jsx)("div",{className:"fixed inset-0 bg-black/40 z-nav-backdrop",onClick:m,"aria-hidden":"true"}),(0,h.jsxs)("div",{ref:d,className:`fixed top-0 right-0 bottom-0 w-[300px] max-w-[85vw] bg-white z-nav-drawer shadow-xl transform transition-transform duration-200 ${r?"translate-x-0":"translate-x-full"}`,role:"dialog","aria-modal":"true","aria-label":"Navigation menu",children:[(0,h.jsxs)("div",{className:"flex items-center justify-between h-16 px-4 border-b border-slate-200",children:[(0,h.jsx)(D.EY,{weight:"font-bold",fontSize:"text-lg",color:"text-slate-800",children:"Menu"}),(0,h.jsx)("button",{onClick:m,"aria-label":"Close navigation menu",className:"flex items-center justify-center w-10 h-10",children:(0,h.jsx)("svg",{className:"w-5 h-5 text-slate-600",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:(0,h.jsx)("path",{d:"M6 6l12 12M18 6L6 18",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})})})]}),(0,h.jsx)("nav",{className:"overflow-y-auto h-[calc(100%-64px)]",children:t.map(e=>{let t=$[e.label],i=s===e.label;return t?(0,h.jsxs)("div",{className:"border-b border-slate-100",children:[(0,h.jsxs)("div",{className:"flex items-center justify-between w-full px-4 py-3",children:[(0,h.jsx)(D.qh,{href:e.href,prefetch:!1,className:"flex-1",onClick:()=>{(0,c.$s)("nav_mobile_menu","click",`${e.label}`),m()},children:(0,h.jsx)(D.EY,{weight:"font-semibold",fontSize:"text-base",color:a(e.href)?"text-carrot-500":"text-slate-800",className:"tracking-tight",children:e.label})}),(0,h.jsx)("button",{onClick:()=>(e=>{o(t=>t===e?null:e)})(e.label),"aria-expanded":i,"aria-label":`${i?"Collapse":"Expand"} ${e.label} submenu`,className:"flex items-center justify-center w-10 h-10 -mr-2",children:(0,h.jsx)("svg",{className:`w-4 h-4 text-slate-400 transition-transform duration-200 ${i?"rotate-180":""}`,fill:"none",viewBox:"0 0 12 12",children:(0,h.jsx)("path",{d:"M2 4l4 4 4-4",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})})})]}),(0,h.jsxs)("div",{className:`overflow-hidden transition-all duration-200 ${i?"max-h-[800px]":"max-h-0"}`,children:[(null==t?void 0:t.featured)&&(0,h.jsxs)("div",{className:"px-8 py-2 border-b border-slate-100 mb-1",children:[t.featured.title&&(0,h.jsx)(D.EY,{weight:"font-bold",fontSize:"text-xs",color:"text-carrot-500",className:"uppercase tracking-wider mb-1",children:t.featured.title}),t.featured.links.map(t=>(0,h.jsx)(D.qh,{href:t.href,prefetch:!1,className:"flex items-center py-1.5",onClick:()=>{(0,c.$s)("nav_mobile_featured","click",`${e.label}: ${t.label}`),m()},children:(0,h.jsx)(D.EY,{weight:"font-semibold",fontSize:"text-sm",color:"text-carrot-600",className:"tracking-tight",children:t.label})},t.href))]}),null==t?void 0:t.groups.map((t,a)=>(0,h.jsxs)("div",{className:"pb-2",children:[t.title&&(0,h.jsx)("div",{className:"px-8 pt-2 pb-1",children:(0,h.jsx)(D.EY,{weight:"font-bold",fontSize:"text-xs",color:"text-slate-400",className:"uppercase tracking-wider",children:t.title})}),t.links.map(t=>(0,h.jsx)(D.qh,{href:t.href,prefetch:!1,className:"flex items-center px-8 py-2",onClick:()=>{(0,c.$s)("nav_mobile_menu","click",`${e.label}: ${t.label}`),m()},children:(0,h.jsx)(D.EY,{weight:"font-medium",fontSize:"text-sm",color:"text-slate-600",className:"tracking-tight",children:t.label})},t.href))]},a))]})]},e.label):(0,h.jsx)("div",{className:"border-b border-slate-100",children:(0,h.jsx)(D.qh,{href:e.href,prefetch:!1,className:"flex items-center w-full px-4 py-3",onClick:()=>{(0,c.$s)("nav_mobile_menu","click",`${e.label}`),m()},children:(0,h.jsx)(D.EY,{weight:"font-semibold",fontSize:"text-base",color:a(e.href)?"text-carrot-500":"text-slate-800",className:"tracking-tight",children:e.label})})},e.label)})})]})]})},z=[{label:"Read",href:"/read"},{label:"Watch",href:"/watch"},{label:"Curriculum",href:"/curriculum"},{label:"Explore",href:"/explore"},{label:"About us",href:"/about-us/our-mission"}],F=e=>{let{showSticky:t,stickyConfig:a,stickyDismissed:r,stickyDismissalResolved:s,onStickyDismiss:o}=e,{asPath:d}=(0,l.useRouter)(),{parseHref:u}=(0,P.s)(),[m]=(0,I.As)(T.jO.auth()),{firebaseAuth:p}=(0,n.m9)(),{initAuth:g}=p,{0:f,1:x}=(0,i.useState)(""),{0:y,1:b}=(0,i.useState)("yaqeeninstitute.org");(0,i.useEffect)(()=>{b((0,M.UR)())},[d]);let v=e=>!!(d===e||d.startsWith(`${e}/`)||"/explore"===e&&(d.startsWith("/topic/")||d.startsWith("/tag/"))||"/about-us/our-mission"===e&&d.startsWith("/team/")),w=()=>{m?window.location.href="/dashboard":g()};
7return(0,h.jsxs)("header",{"data-fixed-header":!0,tabIndex:-1,className:"fixed top-0 left-0 right-0 z-50 bg-white border-b border-slate-200",children:[(0,h.jsx)(q.S,{config:a,showSticky:t,dismissed:r,dismissalResolved:s,onDismiss:o}),(0,h.jsxs)("nav",{className:"hidden xl:flex items-center justify-between h-16 px-28 gap-6",children:[(0,h.jsx)("div",{className:"flex items-center h-full gap-1",children:z.map(e=>{let t=$[e.label];return t?(0,h.jsx)(H,{label:e.label,href:e.href,data:t,isNavActive:v(e.href)},e.href):(0,h.jsxs)(D.qh,{href:e.href,prefetch:!1,className:"flex items-center h-full px-2 relative",onClick:()=>{(0,c.$s)("nav_header","click",`header: ${e.label}`)},children:[(0,h.jsx)(D.EY,{weight:"font-semibold",fontSize:"text-base",color:v(e.href)?"text-slate-800":"text-slate-600 hover:text-slate-800",className:"tracking-tight",children:e.label}),(0,h.jsx)("div",{className:`absolute bottom-0 left-1 right-2 h-1 rounded-t ${v(e.href)?"bg-carrot-400":""}`})]},e.href)})}),(0,h.jsx)(D.qh,{href:"/",prefetch:!1,"aria-label":"Yaqeen Institute Home",children:(0,h.jsx)(C(),{src:"/static/images/yq_logo_new.svg",width:122,height:24,alt:"Yaqeen Institute Logo"})}),(0,h.jsxs)("div",{className:"flex items-center h-full gap-3",children:[(0,h.jsx)("form",{onSubmit:e=>{e.preventDefault(),f.trim()&&(window.location.href=`/search?q=${encodeURIComponent(f.trim())}`)},className:"relative",children:(0,h.jsxs)("div",{className:"flex items-center gap-2 h-10 px-4 bg-white border border-slate-200 rounded",children:[(0,h.jsx)("svg",{className:"w-4 h-4 text-slate-900",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:(0,h.jsx)("path",{d:"M10.5 3a7.5 7.5 0 105.1 13l4.2 4.2 1.4-1.4-4.2-4.2A7.5 7.5 0 0010.5 3zm0 2a5.5 5.5 0 110 11 5.5 5.5 0 010-11z",fill:"currentColor"})}),(0,h.jsx)("input",{type:"text",value:f,onChange:e=>x(e.target.value),placeholder:"Search...",className:"w-40 bg-transparent text-base font-bold text-slate-400 placeholder:text-slate-400 focus:outline-none tracking-tight"})]})}),(0,h.jsx)("a",{href:u(`/donate?int_source=${y}&int_campaign=general&int_content=main_nav_donate_button`),onClick:()=>{(0,c.$s)("nav_header","click","header: Donate")},className:"flex items-center justify-center h-10 px-4 bg-carrot-400 hover:bg-carrot-500 rounded transition-colors",children:(0,h.jsx)(D.EY,{weight:"font-bold",color:"text-white",fontSize:"text-base",children:"Donate"})}),(0,h.jsx)("button",{onClick:w,"aria-label":m?"Profile":"Sign in",className:"flex items-center justify-center",children:Y(m)})]})]}),(0,h.jsx)("div",{className:"xl:hidden",children:(0,h.jsxs)("div",{className:"flex items-center justify-between h-16 px-4 shadow-sm",children:[(0,h.jsx)(D.qh,{href:"/",prefetch:!1,"aria-label":"Yaqeen Institute Home",children:(0,h.jsx)(C(),{src:"/static/images/yq_logo_new.svg",width:122,height:24,alt:"Yaqeen Institute Logo"})}),(0,h.jsxs)("div",{className:"flex items-center gap-2",children:[(0,h.jsx)(D.qh,{href:"/search",prefetch:!1,"aria-label":"Search",className:"flex items-center justify-center w-10 h-10 bg-white border border-slate-200 rounded",onClick:()=>{(0,c.$s)("nav_search","click")},children:(0,h.jsx)("svg",{className:"w-4 h-4 text-black/75",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:(0,h.jsx)("path",{d:"M10.5 3a7.5 7.5 0 105.1 13l4.2 4.2 1.4-1.4-4.2-4.2A7.5 7.5 0 0010.5 3zm0 2a5.5 5.5 0 110 11 5.5 5.5 0 010-11z",fill:"currentColor"})})}),(0,h.jsx)("a",{href:u(`/donate?int_source=${y}&int_campaign=general&int_content=mobile_nav_donate_button`),onClick:()=>{(0,c.$s)("nav_header","click","header: Donate (mobile)")},"aria-label":"Donate",className:"flex items-center justify-center px-2 h-10 bg-carrot-400 rounded",children:(0,h.jsx)(D.EY,{weight:"font-bold",color:"text-white",fontSize:"text-sm",children:"Donate"})}),(0,h.jsx)("button",{onClick:w,"aria-label":m?"Profile":"Sign in",className:"flex items-center justify-center",children:Y(m)}),(0,h.jsx)(R,{navItems:z,isActive:v})]})]})})]})},Y=e=>e?null!=e&&e.photoURL?(0,h.jsx)("img",{height:38,width:38,src:e.photoURL,alt:`${e.displayName} profile`,className:"rounded-full object-cover w-10 h-10"}):(0,h.jsx)("div",{className:"text-white",children:(0,h.jsx)(E(),{size:"38",name:e.displayName||"Yaqeen User"})}):(0,h.jsx)("div",{className:"flex items-center justify-center w-10 h-10 bg-slate-400 rounded-full",children:(0,h.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,h.jsx)("path",{d:"M10 0C4.48 0 0 4.48 0 10C0 15.52 4.48 20 10 20C15.52 20 20 15.52 20 10C20 4.48 15.52 0 10 0ZM10 3C11.66 3 13 4.34 13 6C13 7.66 11.66 9 10 9C8.34 9 7 7.66 7 6C7 4.34 8.34 3 10 3ZM10 17.2C7.5 17.2 5.29 15.92 4 13.98C4.03 11.99 8 10.9 10 10.9C11.99 10.9 15.97 11.99 16 13.98C14.71 15.92 12.5 17.2 10 17.2Z",fill:"white"})})});var L=a(99742);function B(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,i)}return a}function U(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};
7t%2?B(Object(a),!0).forEach(function(t){(0,s.A)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):B(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}let W=e=>{let{children:t,className:a="",hideMegaNav:r,showStickyOnPage:s,stickyOverride:u,metatag:m,hideFooter:p=!1}=e,g=(0,l.useRouter)(),{0:f,1:x}=(0,i.useState)(()=>"read"===new URLSearchParams(window.location.search).get("mode"));(0,i.useEffect)(()=>{let e=()=>{x("read"===new URLSearchParams(window.location.search).get("mode"))};e(),window.addEventListener("urlchange",e),window.addEventListener("popstate",e);let t=setInterval(e,100);return()=>{window.removeEventListener("urlchange",e),window.removeEventListener("popstate",e),clearInterval(t)}},[g.query.mode,g.isReady]);let y="/ask-aqsa"===g.pathname,v=(0,d.$n)(),w=b(g.pathname),j=void 0!==u?u:(null==v?void 0:v.sticky)??w??null,k="boolean"==typeof s?s:null!=j,{dismissed:N,dismiss:A,dismissalResolved:C}=(e=>{let{dismissible:t,dismissalKey:a,variant:r,events:n}=e??{},s=!!(t&&a),{0:l,1:o}=(0,i.useState)(!1),{0:d,1:h}=(0,i.useState)(!s);return(0,i.useEffect)(()=>{if(!s||!a){o(!1),h(!0);return}try{o("1"===window.sessionStorage.getItem(a))}catch{o(!1)}h(!0)},[s,a]),{dismissed:l,dismiss:(0,i.useCallback)(()=>{if(o(!0),null!=n&&n.dismiss&&(0,c.YN)(n.dismiss,{variant:r}),a)try{window.sessionStorage.setItem(a,"1")}catch{}},[a,null==n?void 0:n.dismiss,r]),dismissalResolved:d}})(j),P="1"===L.env.NEXT_PUBLIC_DEBUG_OVERLAY,{0:T,1:O}=(0,i.useState)(!1);(0,i.useEffect)(()=>{P&&O("phase"===new URLSearchParams(window.location.search).get("debug"))},[g.asPath,P]);let E=(0,d.nm)((0,d.D)()),I=!r&&!f,D=(0,o.C)(),q=null!=j&&j.hideOnDesktop?"pt-34 sm:pt-28 lg:pt-16":"pt-34 sm:pt-28",M=k&&j&&!N?q:"pt-16",$=I?M:"",H=I&&D>0?{paddingTop:`${D}px`}:void 0,R=f?"":`main-web-layout-content flex flex-col min-h-screen w-full overflow-x-hidden ${$} ${a} ${y?"bg-gray-50":""}`;return(0,h.jsx)(_,{children:(0,h.jsxs)("div",{children:[(0,h.jsx)(n.gZ,U(U({},m),{},{canonical:(null==m?void 0:m.canonical)??(null==m?void 0:m.url)})),I&&(0,h.jsx)(F,{showSticky:k,stickyConfig:j,stickyDismissed:N,stickyDismissalResolved:C,onStickyDismiss:A}),(0,h.jsxs)("div",{className:R,style:H,children:[t,!p&&!f&&(0,h.jsx)(S.Footer,{})]}),T&&(0,h.jsxs)("div",{style:{zIndex:5},className:"fixed top-20 left-2 max-w-xs bg-black/80 text-white text-xs font-mono p-2 rounded pointer-events-none",children:[(0,h.jsxs)("div",{children:["phase: ",(0,h.jsx)("strong",{children:E})]}),j&&(0,h.jsxs)("div",{children:["sticky: ",String(j.cta).slice(0,60)]}),(null==v?void 0:v.homepage)&&(0,h.jsxs)("div",{children:["hero: ",String(v.homepage.tagline).slice(0,60)]}),(0,h.jsxs)("div",{children:["build: ",L.env.NEXT_PUBLIC_BUILD_TIME??"unknown"]})]})]})})};var G=a(72117),Z=a(71829),Q=a(51348);let V=()=>{let{pathname:e}=(0,l.useRouter)(),{firebaseAuth:t}=(0,n.m9)(),{handleLogout:a}=t,{appendURLParam:i}=(0,Z.W)(),r=(t,a)=>{if(e===t||e.startsWith("/dashboard/donations")&&"Donations"===a)return!0};return(0,h.jsx)("div",{id:"sidebar",className:"lg:block hidden",children:(0,h.jsx)("div",{className:"w-64 pt-5 flex-col justify-start items-start gap-5 inline-flex",children:(0,h.jsxs)("div",{className:"self-stretch flex-col justify-start items-start gap-1 flex",children:[G.Y.primary.map((e,t)=>(0,h.jsx)(D.qh,{href:e.path,className:(0,Q.x)("self-stretch pl-3 pr-3 py-2 box-border border-l-4 justify-start items-start inline-flex hover:bg-carrot-50 hover:border-carrot-700 focus:bg-carrot-50 focus:border-carrot-400",r(e.path,e.name)?"bg-carrot-50 border-carrot-700":"border-white",`nav-${e.name}`),children:(0,h.jsx)(D.EY,{as:"p",color:"text-gray-700",weight:"font-semibold",lineHeight:"leading-normal",fontSize:"text-base",fontFamily:"font-proxima-nova",children:e.name})},t)),(0,h.jsxs)("div",{className:"w-full flex flex-col py-4",children:[(0,h.jsx)("div",{className:"w-full h-[1px] bg-gray-200"}),G.Y.secondary.map((e,t)=>(0,h.jsxs)("div",{children:["logout"!==e.name.toLowerCase()&&(0,h.jsx)(D.qh,{href:e.path,className:(0,Q.x)("self-stretch w-full pl-3 pr-3 py-2 border-l-4 justify-start items-start inl
7ine-flex hover:bg-carrot-50 hover:border-carrot-700 focus:bg-carrot-50 focus:border-carrot-400",r(e.path,e.name)?"bg-carrot-50 border-carrot-700":"border-white"),children:(0,h.jsx)(D.EY,{as:"p",color:"text-gray-500",weight:`{${r(e.path,e.name)?"font-semibold":"font-normal"}`,lineHeight:"leading-normal",fontSize:"text-sm",fontFamily:"font-proxima-nova",children:e.name})}),"logout"===e.name.toLowerCase()&&(0,h.jsx)(D.$n,{type:"button",className:(0,Q.x)("self-stretch w-full pl-3 pr-3 py-2 border-l-4 justify-start items-start inline-flex hover:bg-carrot-50 hover:border-carrot-700 focus:bg-carrot-50 focus:border-carrot-400",r(e.path,e.name)?"bg-carrot-50 border-carrot-700":"border-white"),onPress:()=>{i("skipAuthPrompt","true"),a({onSuccess:()=>{window.location.href="/"}})},children:(0,h.jsx)(D.EY,{as:"p",color:"text-gray-500",weight:`{${r(e.path,e.name)?"font-semibold":"font-normal"}`,lineHeight:"leading-normal",fontSize:"text-sm",fontFamily:"font-proxima-nova",children:e.name})})]},`${e.name}-${t}`))]})]})})})},K=e=>{let{children:t,pageTitle:a,disableSidebar:s=!1,className:l=""}=e,{firebaseAuth:o}=(0,n.m9)(),{userInfo:c,setIsDismissable:d,initAuth:u}=o;return(0,i.useEffect)(()=>{[r.j_.AuthDismissed,r.j_.SignedOut].includes(c.authState)&&!window.location.href.includes("skipAuthPrompt=true")&&(d(!1),u())},[c.authState,d,u]),(0,h.jsx)(W,{hideFooter:!0,metatag:{title:a,archived:!0},className:l,children:(0,h.jsxs)("div",{id:"dashboard",className:`flex lg:flex-row flex-col min-h-screen ${l}`,children:[!s&&(0,h.jsx)(V,{}),t]})})};var J=a(50147),X=a(64444),ee=a(65583)},28680:(e,t,a)=>{"use strict";a.d(t,{ob:()=>to,kx:()=>ik,Zk:()=>i_,sp:()=>iS,OV:()=>iO.DownloadFormatButton,Nu:()=>iT,OB:()=>iB,Xr:()=>ef.X,Ee:()=>iF,z1:()=>iD,iK:()=>i0,tH:()=>iR,fL:()=>iq,vq:()=>iC,kj:()=>iY,SD:()=>iL.S,Ku:()=>iL.K,wD:()=>iU,Ay:()=>i1});var i=a(14232),r=a(89099),n=a(70757),s=a(18012),l=a(32008),o=a(17802),c=a(57002),d=a(59859),h=a(65083),u=a(54587),m=a.n(u),p=a(80352),g=a(25636);let f=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],a=!(arguments.length>2)||void 0===arguments[2]||arguments[2];return(0,i.useEffect)(()=>{a&&(0,g.ee)()},[a]),(0,i.useEffect)(()=>{if(t&&e.length>0)return(0,g.cf)()},[e,t]),{footnotes:e,hasFootnotes:e.length>0}};var x=a(13826),y=a(66449),b=a(6143),v=a(9361);let w=e=>{let{firebaseAuth:{userInfo:t}}=(0,h.m9)(),{0:a,1:r}=(0,i.useState)([]);return(0,i.useEffect)(()=>{if(b.Cj.getItem(b.UT.AuthPaperPersonalizedPosts)){console.debug("using cached auth paper personalized posts"),r(b.Cj.getItem(b.UT.AuthPaperPersonalizedPosts));return}if(b.Cj.getItem(b.UT.VisitorPaperPersonalizedPosts)&&t.authState!==v.j_.VerifiedAuth){console.debug("using cached visitor paper personalized posts"),r(b.Cj.getItem(b.UT.VisitorPaperPersonalizedPosts)),b.Cj.getItem(b.UT.GA4ClientId)||(0,s.OG)().then(e=>{e&&(0,s.qy)("client_id").then(e=>{e&&b.Cj.setItem(b.UT.GA4ClientId,e,b.fI.OneWeek)})});return}let e=async()=>{if(![v.j_.VerifiedAuth,v.j_.SignedOut].includes(null==t?void 0:t.authState))return;let e=t.authState===v.j_.VerifiedAuth,a=b.Cj.getItem(b.UT.GA4ClientId)??await (0,s.qy)("client_id")??null;a&&b.Cj.getItem(b.UT.GA4ClientId)!=a&&b.Cj.setItem(b.UT.GA4ClientId,a,b.fI.OneWeek);let i=e?await (0,x.yu)():null;if(!i&&!a)return;let n=!!i,o="https://webhooks.yaqeeninstitute.org/personalize?numResults=5&paperPersonalization=true",c=i?[o,{headers:{Authorization:i}}]:[`${o}&uid=${a}`,{}];(0,y.b)(...c).then(async e=>{let t=await e.json();if(!t.success){console.error("Personalized paper response failed"),l.A.error("Personalized paper response failed");return}let a=t.posts.filter(e=>e.length>0);a.length&&(n?b.Cj.setItem(b.UT.AuthPaperPersonalizedPosts,a,b.fI.Immediately):b.Cj.setItem(b.UT.VisitorPaperPersonalizedPosts,a,b.fI.Immediately),r(a))}).catch(e=>{console.error("Error in fetching personalized papers",e),l.A.error("Error in fetching personalized papers",e)})};if(b.Cj.getItem(b.UT.GA4ClientId)){console.debug("init from ga4 client id cache"),e();return}(0,s.OG)().then(t=>{t&&e()})},[t.authState,e]),{personalizedPosts:a}};var j=a(46070),k=a(51100),N=a(40950);let _=async e=>{if(null==e)return null;try{var t;let a=await (0,x.OG)(`${j.Y}/api/v1/interactions?dateRange=all_time&page=1&parseDashboard=true`),i=null!=a&&a.success?null==(t=a.data)?void 0:t.items:null==a?void 0:a.items,r=null==i?void 0:i.find(t=>String(null==t?void 0:t.content_id)===String(e));if(!r)return null;let n=parseFloat(String(r.progress_percent??""));if(!(Number.isFinite(n)&&n>0&&n<100))return null;let s=r.event_date?new Date(r.event_date).getTime():NaN;return{percent:n,timestamp:Number.isFinite(s)?s:null}}catch{return null}},S=e=>{let{contentId:t,isLoaded:a,hasTextFragment:r,actsOnDuaParam:s=!1}=e,{getInteraction:l}=(0,n.w)();(0,i.useEffect)(()=>
7{if(r||window.location.hash.length>1||s&&(0,N.d6)()&&"function"==typeof window.matchMedia&&window.matchMedia(k.Sv).matches)return;let e=!1,i=0,n=[],o=t=>{let a=!1,r=()=>{a=!0};["wheel","touchstart","keydown"].forEach(e=>{window.addEventListener(e,r,{passive:!0}),n.push(()=>window.removeEventListener(e,r))});let s=performance.now(),l=()=>{if(e||a)return;let r=t();r>0&&Math.abs(window.scrollY-r)>2&&window.scrollTo(0,r),performance.now()-s<1200&&(i=requestAnimationFrame(l))};i=requestAnimationFrame(l)};return(async()=>{var i;let r=_(t),n=a?await l(d.X8.Scroll):null;if(e)return;let s=(null==n||null==(i=n.result)||null==(i=i.score)?void 0:i.raw)??null,c=null!=n&&n.timestamp?new Date(n.timestamp).getTime():null,h=await r;if(!e){if(null!=s&&((null==h?void 0:h.timestamp)==null||(c??0)>=h.timestamp))return o(()=>s);h&&o(()=>{let e=document.body.offsetHeight-window.innerHeight;return e>0?Math.round(h.percent/100*e):0})}})(),()=>{e=!0,cancelAnimationFrame(i),n.forEach(e=>e())}},[a,r,s,t,l])};var A=a(81475),C=a(12898);let P="The views, opinions, findings, and conclusions expressed in these papers and articles are strictly those of the authors. Furthermore, Yaqeen does not endorse any of the personal views of the authors on any platform. Our team is diverse on all fronts, allowing for constant, enriching dialogue that helps us produce high-quality research.";a(50665);var T=a(48230),O=a.n(T),E=a(69174),I=a(37876);let D=e=>{let{href:t,title:a,className:i=""}=e;return(0,I.jsx)(O(),{href:t,children:(0,I.jsx)(E.EY,{as:"p",fontSize:"text-xss",weight:"font-bold",color:"text-endeavour-500",className:`bg-white border-2 border-endeavour-500 lg:px-2.5 lg:py-0.5 px-2 py-0.5 rounded-[100px] hover:bg-endeavour-100 transition-colors uppercase tracking-[0.5px] font-proxima-nova ${i}`,children:a})})},q=e=>{let{items:t,className:a=""}=e;return(0,I.jsx)("div",{className:`flex gap-1.5 ${a}`,children:(0,I.jsx)("div",{className:"flex gap-1.5 overflow-x-auto pb-0 md:overflow-x-visible md:flex-wrap md:justify-end scrollbar-hide",children:t.map((e,t)=>(0,I.jsx)("div",{className:"flex-shrink-0",children:(0,I.jsx)(D,{href:e.href,title:e.title})},t))})})},M=e=>{let{tag:t,className:a="",onClick:i}=e,r="string"==typeof t?t:t.name,n="string"==typeof t?t.toLowerCase().replace(/\s+/g,"-"):t.slug;return(0,I.jsx)(E.qh,{href:`/tag/${n}`,className:`bg-[#d9e5f8] px-3 py-2 rounded text-sm font-semibold text-gray-700 hover:bg-[#c7d9f0] transition-colors duration-200 ${a}`,onClick:i,children:r})};var $=a(67579),H=a(23001),R=a(80620),z=a(66284),F=a(86400);function Y(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,i)}return a}let L=e=>{var t;let{author:a,truncateLimit:r=200,showBorder:n=!1,surface:l}=e,[o,c]=i.useState(!1),d=(null!=a&&a.bio?(e=>{let t=document.createElement("div");return t.innerHTML=e,t.textContent||t.innerText||""})(a.bio):"").length>r;return(0,I.jsxs)("div",{className:`bg-white rounded-lg py-4 px-3 space-y-4${n?" border border-slate-200":""}`,children:[(0,I.jsxs)("div",{className:"flex items-center space-x-4",children:[null!=a&&a.avatar?(0,I.jsx)(m(),{loader:F.R2,src:a.avatar,alt:a.name,width:64,height:64,className:"w-16 h-16 rounded-full object-cover"}):(0,I.jsx)("div",{className:"w-16 h-16 rounded-full bg-grey-200 shrink-0 flex items-center justify-center text-grey-600 text-2xl font-bold","aria-hidden":"true",children:null==a||null==(t=a.name)?void 0:t.trim().charAt(0).toUpperCase()}),(0,I.jsxs)("div",{children:[(0,I.jsx)(E.EY,{as:"p",fontSize:"text-base",weight:"font-semibold",color:"text-[#2652ff]",children:null!=a&&a.slug?(0,I.jsx)(E.qh,{href:`/team/${a.slug}`,prefetch:!1,className:"hover:underline",onClick:()=>(0,s.$s)(l,"author_click",`author: ${a.name}`,!1,(0,R.ct)("author_card",a.slug)),children:a.name}):null==a?void 0:a.name}),(0,I.jsx)(E.EY,{as:"p",fontSize:"text-sm",fontFamily:"font-source-serif-pro",color:"text-[#163b9a]",children:(0,I.jsx)("span",{dangerouslySetInnerHTML:{__html:null==a?void 0:a.title}})})]})]}),(null==a?void 0:a.bio)&&(0,I.jsx)("div",{className:"border-t border-[#1b3fc5] w-full"}),(0,I.jsxs)("div",{className:"space-y-2",children:[(0,I.jsx)("div",{className:`text-xs font-source-serif-pro text-[#163b9a] leading-relaxed ${d&&!o?"line-clamp-3":""}`,style:function(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};
7t%2?Y(Object(a),!0).forEach(function(t){(0,z.A)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Y(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}({},d&&!o?{display:"-webkit-box",WebkitLineClamp:3,WebkitBoxOrient:"vertical",overflow:"hidden"}:{}),dangerouslySetInnerHTML:{__html:null==a?void 0:a.bio}}),d&&(0,I.jsx)("button",{onClick:()=>c(!o),className:"text-[#163b9a] text-xs font-semibold hover:underline leading-none",children:o?"read less":"read more"})]})]})},B=(e,t)=>{let{className:a,truncateLimit:i,showBorder:r,surface:n}=t,s=(0,R.jZ)(e);return 0===s.length?null:(0,I.jsx)("div",{className:a,children:s.map((e,t)=>(0,I.jsx)("div",{className:t>0?"mt-8":"",children:(0,I.jsx)(L,{author:(e=>{var t;return{name:(null==e?void 0:e.name)||"Author",title:(null==e||null==(t=e.designation)||null==(t=t[0])?void 0:t.name)||"Author",bio:(null==e?void 0:e.bio)||"",avatar:(null==e?void 0:e.featured_image)||"",slug:(null==e?void 0:e.slug)||""}})(e),truncateLimit:i,showBorder:r,surface:n})},(null==e?void 0:e.id)||t))})},U=e=>!(null!=e&&e.some(e=>"Yaqeen Institute"===e.name));var W=a(57279),G=a(17257),Z=a(40748),Q=a(68886),V=a(12587),K=a(42129);let J=()=>(0,I.jsx)("div",{className:"my-8 w-full",children:(0,I.jsx)(E.qh,{href:"/ameenapp",className:"w-full hidden md:block",onClick:()=>{(0,s.$s)("ameen_app_banner","click")},children:(0,I.jsxs)("div",{className:"flex flex-col items-center pt-[15px] pb-4 px-6 rounded-lg w-full relative overflow-hidden",style:{backgroundImage:"linear-gradient(to bottom, #5EB5FF 0%, #BEE3FF 100%)",backgroundSize:"cover"},children:[(0,I.jsx)(V.E,{as:"h3",weight:"font-bold",color:"text-white",fontSize:"text-[9.8px]",letterSpacing:"tracking-[0.75px]",className:"mb-[2px]",children:"FOR ALL YOUR DU'A NEEDS"}),(0,I.jsx)(V.E,{as:"h3",weight:"font-extrabold",color:"text-endeavour-500",fontSize:"text-xl",lineHeight:"leading-none",letterSpacing:"tracking-tight-2",className:"mb-[20px] text-right",children:"Download the Ameen app"}),(0,I.jsxs)("div",{className:"flex items-center gap-2 flex-grow justify-end w-full",children:[(0,I.jsx)(m(),{src:"/static/images/ameen.png",alt:"Ameen app phones",width:110,height:110}),(0,I.jsx)("div",{className:"flex flex-col flex-grow items-end",children:(0,I.jsx)("div",{className:"flex justify-center",children:(0,I.jsx)(m(),{src:"/static/images/qrcode_Download_Ameen_2025.png",alt:"QR Code",width:110,height:110,loader:F.R2})})})]})]})})}),X=e=>{let{isSidebar:t=!1}=e;return t?(0,I.jsx)(J,{}):(0,I.jsxs)("div",{className:" w-full",children:[(0,I.jsx)(E.qh,{href:"/ameenapp",className:"w-full hidden md:block",onClick:()=>{(0,s.$s)("ameen_app_banner","click")},children:(0,I.jsxs)("div",{className:"flex items-center py-4 px-6 rounded-lg w-full relative overflow-hidden ",style:{backgroundImage:"linear-gradient(to right, #5EB5FF 0%, #BEE3FF 100%)",backgroundSize:"cover"},children:[(0,I.jsxs)("div",{className:"flex items-center gap-2 flex-grow",children:[(0,I.jsx)(m(),{src:"/static/images/ameen.png",alt:"Ameen app phones",width:140,height:140}),(0,I.jsxs)("div",{className:"flex flex-col",children:[(0,I.jsx)(V.E,{weight:"font-bold",color:"text-white",lineHeight:"leading-none",fontSize:"text-sm",letterSpacing:"tracking-[0.36px]",className:"mb-2 text-right",children:"FOR ALL YOUR DU'A NEEDS"}),(0,I.jsx)(V.E,{weight:"font-extrabold",color:"text-endeavour-500",fontSize:"xl:text-3xl text-2xl",lineHeight:"leading-none",letterSpacing:"tracking-tight-2",className:"text-right",children:"Download the Ameen app"})]})]}),(0,I.jsx)("div",{className:"ml-8",children:(0,I.jsx)(m(),{src:"/static/images/qrcode_Download_Ameen_2025.png",alt:"QR Code",width:78,height:78,loader:F.R2})})]})}),(0,I.jsx)("div",{className:"md:hidden",children:(0,I.jsx)("div",{className:"flex flex-col items-center pt-[15px] pb-0 px-6 rounded-lg w-full relative overflow-hidden",style:{backgroundImage:"linear-gradient(to bottom, #5EB5FF 0%, #BEE3FF 100%)",backgroundSize:"cover"},children:(0,I.jsxs)("div",{className:"flex items-center gap-2 flex-grow justify-end w-full",children:[(0,I.jsx)(m(),{src:"/static/images/ameen.png",alt:"Ameen app phones",width:160,height:160}),(0,I.jsxs)("div",{className:"flex flex-col flex-grow items-end",children:[(0,I.jsxs)(E.qh,{href:"/ameenapp",onClick:()=>{(0,s.$s)("ameen_app_banner","click")},className:"flex flex-col items-end",children:[(0,I.jsx)(V.E,{as:"h3",weight:"font-bold",color:"text-white",fontSize:"text-[9.8px]",letterSpacing:"tracking-[0.75px]",className:"mb-[2px]",children:"FOR ALL YOUR DU'A NEEDS"}),(0,I.jsx)(V.E,{as:"h3",weight:"font-extrabold",color:"text-endeavour-500",fontSize:"text-xl",lineHeight:"leading-none",letterSpacing:"tracking-tight-2",className:"mb-[20px] text-right",children:"Download the Ameen app"})]}),(0,I.jsx)(K.A,{height:28,width:85})]})]})})})]})};var ee=a(64141),et=a(38311),ea=a(87415);let ei=e=>{let{variant:t="blog"}=e,{showNewsletterForm:a,showPaperNewsletterForm:i}=(0,et.K)(),r="paper"===t;return(r?i:a)?(0,I.jsxs)("div",{className:"bg-[#fff3d3] rounded-lg p-5 space-y-4",children:[(0,I.jsx)(E.EY,{as:"p",fontSize:"text-base",weight:"font-medium",color:"text-[#414649]",className:"text-left",children:r?"New papers in your inbox!":"New blogs in your inbox!"}),(0,I.jsx)(ea.M,{eventName:r?"paper_subscribe_cta":"blog_newsletter_signup",surface:r?"paper_inl
7ine":void 0,source:r?ee.xY.PAPER_PAGE:ee.xY.NEWSLETTER_LANDING_PAGE})]}):(0,I.jsx)(I.Fragment,{})};function er(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,i)}return a}function en(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?er(Object(a),!0).forEach(function(t){(0,z.A)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):er(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}let es=e=>{let{authorDetails:t}=e;return U(t)?(0,I.jsx)("div",{id:"desktop-author-section",className:"mt-2",children:B(t,{className:"space-y-6",showBorder:!1,surface:"read_blog"})}):null},el=e=>{let{authorDetails:t,tags:a,mainContentRef:r,elements:n=[],moreLikeThisPosts:s=[]}=e,{0:l,1:o}=(0,i.useState)(0),c=(0,i.useRef)(null),d=[{id:"authors",component:es,props:{authorDetails:t},position:"top",order:1},{id:"topics",component:eo,props:{tags:a},position:"top",order:2},{id:"disclaimer",component:ec,position:"top",order:3},{id:"newsletter",component:ei,position:"percentage",percentage:30,order:1},{id:"ameen-banner",component:X,position:"bottom",order:1}],h=n.length>0?n:d;(0,i.useEffect)(()=>{let e=()=>{r.current&&o(r.current.getBoundingClientRect().height)};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[r]);let u=h.filter(e=>"top"===e.position).sort((e,t)=>e.order-t.order),m=h.filter(e=>"percentage"===e.position).sort((e,t)=>e.order-t.order),p=h.filter(e=>"bottom"===e.position).sort((e,t)=>e.order-t.order),g=(()=>{if(!l)return new Map;let e=new Map,t=[...m].sort((e,t)=>(e.percentage||0)-(t.percentage||0)),a=0;return t.forEach(t=>{let i=Math.max((t.percentage||0)/100*l,a+500);e.set(t.id,i),a=i}),e})(),f=e=>"authors"===e.id?en({authorDetails:t},e.props):"topics"===e.id?en({tags:a},e.props):"more-like-this"===e.id?en({posts:s},e.props):e.props;return(0,I.jsxs)("aside",{ref:c,className:"lg:order-1",style:{height:l,position:"relative"},children:[(0,I.jsx)("div",{className:"space-y-5",children:u.map(e=>{let t=e.component,a=f(e);return(0,I.jsx)("div",{children:(0,I.jsx)(t,en({},a))},e.id)})}),m.map(e=>{let t=e.component,a=g.get(e.id)||0,i=f(e);return(0,I.jsx)("div",{style:{position:"absolute",top:`${a}px`,width:"100%",zIndex:1},children:(0,I.jsx)(t,en({},i))},e.id)}),p.map(e=>{let t=e.component,a=f(e);return(0,I.jsx)("div",{style:{position:"absolute",bottom:0,width:"100%"},children:(0,I.jsx)(t,en({},a))},e.id)})]})},eo=e=>{let{tags:t}=e;return(0,I.jsxs)("div",{children:[(null==t?void 0:t.length)>0&&(0,I.jsx)("p",{className:"text-base font-semibold text-gray-900",children:"Topics"}),(0,I.jsx)("div",{className:"flex flex-wrap gap-2",children:t.map((e,t)=>(0,I.jsx)(M,{tag:e},t))})]})},ec=()=>(0,I.jsx)("div",{className:"mt-2",children:(0,I.jsxs)("p",{className:"text-xs text-gray-800 leading-[1.6] font-source-serif-pro italic",children:[(0,I.jsx)("span",{className:"text-[#3c4043]",children:"Disclaimer: "}),P]})});function ed(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,i)}return a}function eh(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?ed(Object(a),!0).forEach(function(t){(0,z.A)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):ed(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}let eu=e=>{let{footnote:t,index:a}=e,i=(0,H.Ni)([[t.content]])[0][0],r=(0,g.RV)(t.id||`ftnt_ref${a+1}`),n=(0,g.rm)(i),s=(0,g.iu)(t.id||`ftnt_ref${a+1}`,r),l=(0,g.uD)(r);return(0,I.jsx)("div",eh(eh({},s),{},{children:(0,I.jsxs)("div",{className:"flex items-start space-x-2",children:[(0,I.jsxs)("span",eh(eh({},l),{},{children:[r,". ^"]})),(0,I.jsx)("div",{className:"text-sm leading-relaxed font-source-serif-pro text-grey-900 break-words overflow-wrap-anywhere",dangerouslySetInnerHTML:{__html:n}})]})}))};var em=a(24519),ep=a.n(em);let eg=e=>{let{posts:t=[],maxItems:a=3,showTitle:i=!0}=e,r=t.slice(0,a);return 0===r.length?null:(0,I.jsxs)("div",{className:"flex flex-col gap-2 items-start justify-start w-full",children:[i&&(0,I.jsx)("h3",{className:"text-base font-semibold text-gray-900 ",children:"More Like This"}),(0,I.jsx)("div",{className:"flex flex-col gap-2 w-full",children:r.map(e=>(0,I.jsx)(O(),{href:`/read/blog/${e.slug}`,className:"block w-full group cursor-pointer",children:(0,I.jsxs)("div",{className:"relative aspect-[160/90] w-full rounded-lg overflow-hidden",children:[e.featured_image?(0,I.jsx)(m(),{loader:F.R2,src:(0,F.AE)(e.featured_image),alt:e.title,width:288,height:162,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-200"}):(0,I.jsx)("div",{className:"w-full h-full bg-gradient-to-br from-[#0052ff] to-[#083fc5]"}),(0,I.jsx)("div",{className:"absolute inset-0 bg-gradient-to-b from-transparent from-50% to-[rgba(0,0,0,0.60)]"}),(0,I.jsx)("div",{className:"absolute bottom-0 left-0 right-0 p-4",children:(0,I.jsx)("h4",{className:"font-proxima-nova font-semibold text-xs text-white tracking-[-0.144px] leading-[1.25] line-clamp-3",children:ep().decode(e.title)})})]})},e.id))})]})};var ef=a(85271),ex=a(63840),ey=a(57908);let eb=e=>{let{authorDetails:t}=e;return U(t)?(0,I.jsx)("div",{id:"desktop-author-section",children:B(t,{className:"space-y-6",showBorder:!1,surface:"read_blog"})}):null},ev=e=>{let{tags:t}=e;return t&&(null==t?void 0:t.length)>0&&(0,I.jsxs)("div",{className:"space-y-2",children:[(0,I.jsx)("p",{className:"text-base font-semibold",children:"Topics"}),(0,I.jsx)("div",{className:"flex flex-wrap gap-2",children:t.map((e,t)=>(0,I.jsx)(M,{tag:e,className:"text-[rgba(0,0,0,0.75)]"},t))})]})},ew=()=>(0,I.jsxs)("p",{className:"text-xs text-gray-800 leading-[1.6] font-source-serif-pro italic",children:[(0,I.jsx)("span",{className:"text-[#3c4043]",children:"Disclaimer: "}),P]});var ej=a(36708),ek=a(18125);let eN=e=>{let{tableOfContents:t,url:a,title:r,logTitle:n,post:s}=e,{0:l,1:c}=(0,i.useState)(""),{isOpen:d}
7=(0,o.r)(),h=e=>{let t=document.getElementById(e);t&&t.scrollIntoView({behavior:"smooth",block:"start"})};return((0,i.useEffect)(()=>{let e=()=>{let e=t.map(e=>e.id),a=window.scrollY+100;for(let t=e.length-1;t>=0;t--){let i=document.getElementById(e[t]);if(i&&i.offsetTop<=a){c(e[t]);break}}};return window.addEventListener("scroll",e),e(),()=>window.removeEventListener("scroll",e)},[t]),(0,i.useEffect)(()=>{if(l&&window.innerWidth<1024){let e=document.querySelector(`[data-section-id="${l}"]`);e&&e.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})}},[l]),0===t.length||d)?null:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("div",{className:"fixed bottom-4 left-4 right-4 z-40 lg:hidden",children:(0,I.jsx)("div",{className:"bg-white shadow-[0px_4px_12px_0px_rgba(0,0,0,0.15),0px_2px_4px_0px_rgba(0,0,0,0.1)] rounded-lg px-3 py-2",children:(0,I.jsxs)("div",{className:"flex items-center gap-4",children:[(0,I.jsxs)("div",{className:"flex-1 relative overflow-hidden",children:[(0,I.jsx)("div",{className:"overflow-x-auto scrollbar-hide",children:(0,I.jsx)("div",{className:"flex gap-2",style:{width:"max-content"},children:t.map(e=>{let t=l===e.id;return(0,I.jsx)("button",{"data-section-id":e.id,onClick:()=>h(e.id),className:`font-proxima-nova flex-shrink-0 px-3 py-0.5 rounded-[4px] text-sm font-bold transition-colors whitespace-nowrap ${t?"bg-white text-[#2652FF] border border-[#2652FF]":"bg-[#2652FF] bg-opacity-10 text-[#2652FF] border-0"}`,style:{lineHeight:"24px"},children:(0,I.jsx)("span",{dangerouslySetInnerHTML:{__html:e.title}})},e.id)})})}),(0,I.jsx)("div",{className:"absolute inset-0 pointer-events-none shadow-[-8px_0px_10px_0px_inset_rgba(255,255,255,0.75)]"})]}),(0,I.jsx)("div",{className:"flex-shrink-0",children:(0,I.jsx)($.PostSharePlatformDropdown,{url:a,title:r,logTitle:n,hideLabel:!0,overrideClassName:eS.button,overrideIconClassName:eS.icon,appearTop:!0})})]})})}),(0,I.jsx)("div",{className:"fixed bottom-4 left-0 right-0 z-40 hidden lg:block",children:(0,I.jsx)("div",{className:"max-w-7xl mx-auto px-6",children:(0,I.jsx)("div",{className:"bg-white shadow-[0px_4px_12px_0px_rgba(0,0,0,0.15),0px_2px_4px_0px_rgba(0,0,0,0.1)] rounded-lg px-6 py-4",children:(0,I.jsxs)("div",{className:"flex items-center justify-between gap-6",children:[(0,I.jsxs)("div",{className:"flex items-center gap-2 flex-shrink-0",children:[(0,I.jsx)(ek.g,{icon:ej.ITF,className:"text-gray-700 text-sm"}),(0,I.jsx)(E.EY,{as:"span",fontSize:"text-base",fontFamily:"font-proxima-nova",color:"text-grey-900",weight:"font-semibold",children:"Contents"})]}),(0,I.jsxs)("div",{className:"flex-1 relative overflow-hidden",children:[(0,I.jsx)("div",{className:"overflow-x-auto scrollbar-hide",children:(0,I.jsx)("div",{className:"flex gap-2",style:{width:"max-content"},children:t.map(e=>{let t=l===e.id;return(0,I.jsx)("button",{onClick:()=>h(e.id),className:`font-proxima-nova flex-shrink-0 px-3 py-1 rounded-[4px] text-base font-bold transition-colors whitespace-nowrap ${t?"bg-white text-[#2652FF] border border-[#2652FF]":"bg-[#2652FF] bg-opacity-10 text-[#2652FF] border-0"}`,style:{lineHeight:"24px"},children:(0,I.jsx)("span",{dangerouslySetInnerHTML:{__html:e.title}})},e.id)})})}),(0,I.jsx)("div",{className:"absolute inset-0 pointer-events-none shadow-[-8px_0px_10px_0px_inset_rgba(255,255,255,0.75)]"})]}),(0,I.jsxs)("div",{className:"flex space-x-1",children:[(0,I.jsx)(C.Tx,{post:s,overrideBtnClassName:eS.button,overrideIconClassName:eS.icon}),(0,I.jsx)($.PostSharePlatformDropdown,{url:a,title:s.title,logTitle:`Blog - ${s.title}`,hideLabel:!0,overrideClassName:eS.button,overrideIconClassName:eS.icon,appearTop:!0})]})]})})})})]})},e_=()=>(0,I.jsx)("div",{className:"border-t border-b border-black/25 py-4",children:(0,I.jsx)("div",{className:"max-w-7xl mx-auto",children:(0,I.jsxs)("div",{className:"flex flex-col lg:flex-row lg:items-center lg:justify-between gap-3",children:[(0,I.jsx)(E.EY,{as:"p",fontSize:"text-sm lg:text-base",color:"text-gray-950",className:"text-left",children:"Want to appear on Yaqeen?"}),(0,I.jsx)("div",{className:"flex justify-start lg:justify-end",children:(0,I.jsx)("a",{href:"https://journals.yaqeeninstitute.org/yiir/about/submissions",target:"_blank",rel:"noopener noreferrer",className:"text-sm lg:text-base font-source-serif-pro url",children:"Submit your ideas"})})]})})}),eS={button:"bg-white box-border flex items-center justify-center px-2 py-2 relative rounded-[4px] border border-[rgba(0,0,0,0.05)] hover:bg-gray-50 text-grey-900 min-w-[32px] h-10",icon:"text-sm"},eA=e=>{var t;let{post:a,relatedItems:l,parsedPaperContent:o,footnotes:c=[],authorDetails:h=[],images:u,moreLikeThisPosts:g=[]}=e,x=window.location.href,y=(0,r.useRouter)(),b=(0,R.jZ)(a.authors),v=b.length?b:[{id:Number(p.at),name:p.gN,slug:p.Og,thumbnail:"",designation:[]}],j=(0,i.useRef)(null),k=(0,i.useRef)(null),{0:N,1:_}=(0,i.useState)(!1),{tags:T}={categories:["Blog"],tags:a.tags||[]},O=(0,Z.A)(l),{personalizedPosts:z}=w(a.id.toString()),Y=z&&z.length>0&&z.filter(e=>(null==e?void 0:e[0])&&!y.asPath.includes(e[0].slug)).map(e=>
7(0,A.P7)(e[0])).filter(Boolean).slice(0,5),L=(e=>{let t=[];return e.forEach((e,a)=>{if(e.length>0){var i;let r=(null==(i=e[0])?void 0:i.trim().replace(/<\/?strong>/gi,""))||"";!(r.length>0)||r.toLowerCase().includes("notes")||r.toLowerCase().includes("references")||t.push({title:r,id:`heading-${a}`,level:2})}}),t})(o),V=()=>{let e=window.innerWidth>=1024,t=document.getElementById(e?"desktop-author-section":"mobile-author-section");t&&t.scrollIntoView({behavior:"smooth",block:"start"})},{trackInteraction:K,isLoaded:J}=(0,n.w)();(0,i.useEffect)(()=>{_(window.location.href.includes("#:~:text="))},[]),S({contentId:null==a?void 0:a.id,isLoaded:J,hasTextFragment:N}),(0,i.useEffect)(()=>{if(!J)return;let e=()=>{k.current&&clearTimeout(k.current),k.current=setTimeout(()=>{k.current=null,K({post:a,type:d.X8.Scroll,value:window.scrollY,percentValue:(0,Q.O)(window.scrollY)})},3e3)};return window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e),k.current&&(clearTimeout(k.current),k.current=null)}},[a,J,K]),f(c);let ee=new Set;return(0,I.jsxs)("div",{className:"bg-[#fff9ec] min-h-screen",children:[(0,I.jsx)("div",{className:"max-w-7xl mx-auto px-4 lg:pt-24 pt-10 pb-6 lg:pb-12",children:(0,I.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,I.jsxs)("div",{className:"flex flex-col gap-3 md:flex-row md:justify-between md:items-center",children:[(0,I.jsxs)("div",{className:"flex gap-1.5 overflow-x-auto md:pb-0 md:overflow-x-visible md:flex-wrap md:justify-end scrollbar-hide md:hidden",children:[(0,I.jsx)("div",{className:"flex-shrink-0",children:(0,I.jsx)(D,{href:"/discover",title:"Blog"})}),(0,G.R)(a).map((e,t)=>(0,I.jsx)("div",{className:"flex-shrink-0",children:(0,I.jsx)(D,{href:e.href,title:e.title})},t))]}),(0,I.jsxs)("div",{className:"hidden md:flex md:justify-between md:items-center md:w-full",children:[(0,I.jsx)("div",{className:"flex-shrink-0",children:(0,I.jsx)(D,{href:"/discover",title:"Blog"})}),(0,I.jsx)("div",{className:"flex-shrink-0",children:(0,I.jsx)(q,{items:(0,G.R)(a)})})]})]}),(0,I.jsx)(E.DZ,{level:1,color:"text-[#2652ff]",fontSize:"text-4xl lg:text-5xl",weight:"font-extrabold",letterSpacing:"tracking-[-0.8]",lineHeight:"lg:leading-[1.1] leading-[1]",children:a.title}),(0,I.jsx)(E.EY,{as:"p",fontSize:"text-sm lg:text-lg",fontFamily:"font-source-serif-pro",lineHeight:"lg:leading-[24px] leading-[1.37]",color:"text-[#2652ff]",children:null==(t=a.seo)?void 0:t.desc}),(0,I.jsxs)("div",{className:"flex flex-col lg:flex-row lg:justify-between lg:items-end space-y-1",children:[(0,I.jsxs)("div",{className:"flex flex-col space-y-1",children:[(0,I.jsxs)(E.EY,{as:"p",fontSize:"text-sm",color:"text-[#163b9a]",children:["Authored by"," ",v.map((e,t)=>(0,I.jsxs)("span",{children:[(e=>e.slug?(0,I.jsx)(E.qh,{href:`/team/${e.slug}`,prefetch:!1,className:"font-semibold text-[#2652ff] hover:text-[#1e40af] hover:underline transition-colors duration-200",onClick:()=>(0,s.$s)("read_blog","author_click",`author: ${e.name}`,!1,(0,R.ct)("byline",e.slug)),children:e.name}):(0,I.jsx)("button",{type:"button",onClick:V,className:"font-semibold text-[#2652ff] hover:text-[#1e40af] hover:underline cursor-pointer transition-colors duration-200",children:e.name}))(e),(0,I.jsx)(I.Fragment,{children:(0,R.P2)(t,v.length)})]},e.id))]}),(0,I.jsx)("div",{className:"space-y-1",children:(0,I.jsxs)(E.EY,{as:"p",fontSize:"text-sm",color:"text-[#0d3a9b]",children:["Published: ",(0,I.jsx)("span",{children:(0,W.C9)(a.date)})," â¢",(0,W.dW)(a.date)&&(0,I.jsx)("span",{className:"ml-1",children:(0,W.dW)(a.date)})]})}),a.modified_at&&a.modified_at!==a.date&&(0,I.jsx)("div",{className:"space-y-1",children:(0,I.jsxs)(E.EY,{as:"p",fontSize:"text-sm",color:"text-[#0d3a9b]",children:["Updated: ",(0,I.jsx)("span",{children:(0,W.C9)(a.modified_at)})," â¢",(0,W.dW)(a.modified_at)&&(0,I.jsx)("span",{className:"ml-1",children:(0,W.dW)(a.modified_at)})]})}),(0,I.jsxs)(E.EY,{as:"p",fontSize:"text-sm",color:"text-[#0d3a9b]",children:["Read time: ",(e=>e<1?"Less than 1 min":1===e?"1 min":`${Math.round(e)} min`)(a.readTime??5)]})]}),(0,I.jsx)("div",{className:"hidden lg:block",children:(0,I.jsxs)("div",{className:"flex space-x-1",children:[(0,I.jsx)(C.Tx,{post:a,overrideBtnClassName:eS.button,overrideIconClassName:eS.icon}),(0,I.jsx)($.PostSharePlatformDropdown,{url:x,title:a.title,logTitle:`Blog - ${a.title}`,hideLabel:!0,overrideIconClassName:eS.icon,overrideClassName:eS.button})]})})]}),(0,I.jsx)("div",{className:"lg:hidden flex justify-start",children:(0,I.jsxs)("div",{className:"flex items-center gap-2",children:[(0,I.jsx)(C.Tx,{post:a,overrideBtnClassName:"flex items-center justify-center w-[38px] h-[38px] bg-white border border-slate-200 rounded",overrideIconClassName:"text-base"}),(0,I.jsx)($.PostSharePlatformDropdown,{url:x,title:a.title,logTitle:`Blog - ${a.title}`,hideLabel:!0,overrideClassName:"flex items-center justify-center w-[38px] h-[38px] bg-white border border-slate-200 rounded"}),(0,I.jsx)(ef.X,{postId:a.id,title:a.title,url:x})]})}),u&&(u.desktopPost||u.desktopHorizontal||u.mobileHorizontal)||a.featured_image&&(0,I.jsx)("div",{className:"w-full aspect-w-16 aspect-h-9 lg:mt-4",children:(0,I.jsx)(m(),{loader:F.R2,src:(0,F.AE)((null==u?void 0:u.desktopPost)||(null==u?void 0:u.desktopHorizontal)||(null==u?void 0:u.mobileHorizontal)||a.featured_image),alt:a.title,layout:"fill",className:"object-cover rounded-xl",priority:!0})})]})}),(0,I.jsx)("div",{className:"max-w-7xl mx-auto px-6 pb-20 lg:pb-20",children:(0,I.jsxs)("div",{className:"flex flex-col lg:grid lg:grid-cols-[288px_1fr] gap-8 lg:gap-24",children:[(0,I.jsx)("div",{className:"hidden lg:block",children:(0,I.jsx)(el,{authorDetails:h,tags:T,mainContentRef:j,elements:[{id:"authors",component:eb,position:"top",order:1},{id:"topics",component:ev,position:"top",order:2},{id:"disclaimer",component:ew,position:"top",order:3},{id:"newsletter",component:ei,position:"percentage",percentage:30,order:1},{id:"more-like-this",component:eg,position:"percentage",percentage:40,order:2},{id:"ameen-banner",component:X,props:{isSidebar:!0},position:"percentage",percentage:80,order:3}],moreLikeThisPosts:g})}),(0,I.jsxs)("main",{ref:j,className:"lg:mt-0 mt-6 lg:order-2",children:[L.length>0&&(0,I.jsxs)("div",{className:"bg-white rounded-xl lg:px-7 lg:py-7 px-4 py-6",children:[(0,I.jsxs)("div",{className:"flex items-baseline gap-2 lg:mb-6 mb-4",children:[(0,I.jsx)(E.EY,{as:"span",fontSize:"lg:text-lg text-base",fontFamily:"font-source-serif-pro",color:"text-[#2652ff]",className:"whitespace-nowrap",lineHeight:"leading-tight",children:"On this page"}),(0,I.jsx)("div",{className:"flex-1 h-px bg-[#2652ff]"})]}),(0,I.jsx)("ul",{className:"space-y-0.5",children:L.map(e=>(0,I.jsxs)("li",{className:"flex items-center",children:[(0,I.jsx)("div",{className:"w-1.5 h-1.5 bg-grey-900 rounded-full mt-0 mr-3 flex-shrink-0"}),(0,I.jsx)("button",{onClick:()=>(e=>{let t=document.getElementById(e);t&&t.scrollIntoView({behavior:"smooth",block:"start"})})(e.id),className:"url lg:text-1.5xl text-lg lg:leading-tight leading-tight text-left flex-1",children:(0,I.jsx)("p",{dangerouslySetInnerHTML:{__html:e.title}}
7)})]},e.id))})]}),o&&o.length>0?(0,I.jsx)("div",{className:"lg:space-y-6 space-y-14 blog-content mt-14 lg:mt-10",children:o.map((e,t)=>{var i;if(e.length<=1)return null;let r=(null==(i=e[0])?void 0:i.trim().replace(/<\/?strong>/gi,""))||"";return r.toLowerCase().includes("notes")||r.toLowerCase().includes("references")?null:(0,I.jsxs)("div",{className:"lg:space-y-6 space-y-2 lg:pb-6 pb-0",children:[e[0]&&e[0].trim().length>0&&(0,I.jsx)(E.DZ,{level:2,color:"text-[#2652ff]",fontSize:"lg:text-4xl text-3xl",weight:"font-extrabold",letterSpacing:"tracking-tight",lineHeight:"lg:leading-tight leading-[1]",className:"lg:mb-6 mb-9",id:`heading-${t}`,children:(0,I.jsx)("span",{dangerouslySetInnerHTML:{__html:e[0].trim().replace(/<\/?strong>/gi,"")}})}),e.length>1&&(0,I.jsx)("div",{className:"space-y-6",children:(0,H.m5)({paragraphs:e.slice(1),trendingPapers:[],editorsPickPapers:[],similarPapers:[],footnotes:c,slug:a.slug,isFirstParagraph:0===t,isBlog:!0,sectionIndex:t,duaAnchors:ee})}),(0,I.jsxs)("div",{className:"lg:hidden",children:[0===t&&(0,I.jsx)("div",{className:"my-8",children:(0,I.jsx)(ei,{})}),1===t&&g&&g.length>0&&(0,I.jsxs)("div",{className:"mt-8 -mx-6",children:[(0,I.jsx)("div",{className:"space-y-2 px-6 pb-2",children:(0,I.jsx)(E.DZ,{level:3,color:" text-black",fontSize:"text-base",weight:"lg:font-bold font-semibold",children:"More like this"})}),(0,I.jsx)("div",{className:"overflow-x-auto",children:(0,I.jsx)("div",{className:"flex gap-2 pb-4 px-6",style:{width:"max-content"},children:g.map(e=>(0,I.jsx)("div",{className:"flex-shrink-0 w-55",children:(0,I.jsx)(eg,{posts:[e],maxItems:1,showTitle:!1})},e.id))})})]})]})]},t)})}):(0,I.jsxs)("div",{className:"text-center text-gray-500 py-12",children:[(0,I.jsx)(E.EY,{as:"p",fontSize:"text-lg",children:"Content is being loaded..."}),(0,I.jsx)(E.EY,{as:"p",fontSize:"text-sm",className:"mt-2",children:"If this message persists, please refresh the page."})]}),c&&c.length>0&&(0,I.jsxs)("div",{className:"lg:pt-8 pt-8","data-section":"references",children:[(0,I.jsx)(E.DZ,{level:2,color:"text-grey-900",fontSize:"lg:text-4xl text-3xl",weight:"font-semibold",className:"lg:mb-6 mb-4",children:"References"}),(0,I.jsx)("div",{className:"columns-1 lg:columns-2 gap-8 lg:space-y-1 space-y-1",children:c.map((e,t)=>(0,I.jsx)(eu,{footnote:e,index:t},e.id||t))})]}),(0,I.jsx)("div",{className:"pt-12 lg:hidden",children:(0,I.jsx)(X,{isSidebar:!1})}),U(a.authors)&&(0,I.jsx)("div",{id:"mobile-author-section",className:"lg:hidden",children:B(h,{className:"pt-8",truncateLimit:500,surface:"read_blog"})}),(0,I.jsxs)("div",{className:"",children:[T&&T.length>0&&(0,I.jsxs)("div",{className:"pt-6 lg:pt-8 pb-4",children:[(0,I.jsx)("div",{className:"w-16 lg:h-0.5 h-0.5 bg-carrot-500 lg:mb-6 mb-6"}),(0,I.jsxs)("div",{className:"items-center",children:[(0,I.jsx)(E.DZ,{level:3,color:"text-grey-900",fontSize:"text-sm",weight:"font-semibold",className:"lg:mb-2 mb-2",children:"Tags"}),(0,I.jsx)("div",{className:"flex flex-wrap gap-2",children:T.map((e,t)=>(0,I.jsx)(M,{tag:e},t))})]})]}),(0,I.jsx)("div",{className:"lg:pb-8 pb-5 pt-2",children:(0,I.jsxs)(E.EY,{as:"p",fontSize:"text-xs",color:"text-gray-800",lineHeight:"leading-[1.6]",fontFamily:"font-source-serif-pro",className:"italic",children:[(0,I.jsx)("span",{className:"text-[#3c4043]",children:"Disclaimer: "}),P]})}),(0,I.jsx)(e_,{})]}),(0,I.jsxs)("div",{className:"lg:hidden pt-12",children:[O&&O.length>0&&(0,I.jsx)("div",{className:"",children:(0,I.jsx)(ey.RelatedData,{isBlog:!0,relatedData:O,type:a.type})}),Y&&Y.length>0&&(0,I.jsxs)("div",{className:"",children:[(0,I.jsx)(E.DZ,{level:2,fontSize:"text-lg",weight:"font-semibold",children:"Recommended for you"}),(0,I.jsx)(ex.default,{posts:Y,analytic:"blog_recommended_for_you",numberOfPost:"5"})]})]})]})]})}),O&&O.length>0&&(0,I.jsx)("div",{className:"hidden lg:block",children:(0,I.jsx)(ey.RelatedData,{relatedData:O,type:a.type,isBlog:!0})}),Y&&Y.length>0&&(0,I.jsxs)("div",{className:"hidden lg:block max-w-7xl mx-auto px-6 pb-12",children:[(0,I.jsx)(E.DZ,{level:2,fontSize:"text-lg",weight:"font-semibold",children:"Recommended for you"}),(0,I.jsx)(ex.default,{posts:Y,analytic:"blog_recommended_for_you",numberOfPost:"5"})]}),(0,I.jsx)(eN,{tableOfContents:L,url:x,title:a.title,logTitle:`Blog - ${a.title}`,post:a})]})};var eC=a(18847),eP=a.n(eC),eT=a(74382),eO=a.n(eT);let eE=["5-myths-about-women-in-islam-infographic"];var eI=a(11511);function eD(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,i)}return a}function eq(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};
7t%2?eD(Object(a),!0).forEach(function(t){(0,z.A)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):eD(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}let eM=[800,1080,1536],e$={amp:"&",lt:"<",gt:">",quot:'"',apos:"'",nbsp:" ",ldquo:"â",rdquo:"â",lsquo:"â",rsquo:"â",mdash:"â",ndash:"â",hellip:"â¦"},eH=e=>(e||"").replace(/<[^>]*>/g," ").replace(/&#x([0-9a-f]+);/gi,(e,t)=>String.fromCodePoint(parseInt(t,16))).replace(/&#(\d+);/g,(e,t)=>String.fromCodePoint(Number(t))).replace(/&([a-z]+);/gi,(e,t)=>e$[t.toLowerCase()]??e).replace(/\s+/g," ").trim(),eR=(e,t)=>{if(e.length<=t)return e;let a=e.slice(0,t),i=a.lastIndexOf(" ");return`${(i>.6*t?a.slice(0,i):a).replace(/[\s,;:.-]+$/,"")}â¦`},ez=/[\u0600-\u06ff\u0750-\u077f\u08a0-\u08ff\ufb50-\ufdff\ufe70-\ufeff]/g;var eF=a(47917),eY=a(28734),eL=a(75477);function eB(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,i)}return a}function eU(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?eB(Object(a),!0).forEach(function(t){(0,z.A)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):eB(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}let eW=e=>{let{link:t,icon:a,title:i,type:r,pageType:n}=e,l=(0,eY.HH)();return(0,I.jsxs)("div",{className:"flex mb-6",children:[(0,I.jsx)("div",{className:"w-auto mb-3 mr-2",children:(0,I.jsx)("div",{className:"mb-2 mx-4 w-10 h-10",children:(0,I.jsx)("img",{src:a.src,alt:a.title,className:"w-10 h-10"})})}),(0,I.jsxs)("div",{className:"w-2/3 pl-4 flex flex-col",children:[(0,I.jsx)("div",{className:"mb-2",children:(0,I.jsx)(eL.fo,{category:a.title,size:"text-xss"})}),(0,I.jsx)(E.qh,{href:t,passHref:!0,onClick:()=>(0,s.$s)(`${n}_detail_related`,"click",`item_title: ${i}, category: ${r}, device: ${l}`),children:(0,I.jsx)(E.DZ,{weight:"font-semibold",color:"text-grey-900",lineHeight:"leading-tight",className:"mb-2",children:i})})]})]})},eG="Text",eZ=e=>{let{tabs:t,isMobile:a=!1,pageType:r}=e,{0:n,1:s}=(0,i.useState)(a?"Infographic":"Description"),l=t.find(e=>e.title===eG),o=t.map(e=>e.title).filter(e=>"Infographic"!==e),c=t.map(e=>e.title);return(0,I.jsxs)("div",{children:[(0,I.jsx)("nav",{className:"flex whitespace-nowrap overflow-auto pb-2",children:(a?c:o).map((e,t)=>(0,I.jsx)(E.$n,{onPress:()=>s(e),className:`-mb-0.5 px-1 py-2 mr-3 border-b-2 border-transparent focus:border-carrot-500 8 hover:border-carrot-500 ${n===e?" border-carrot-500":""}`,children:(0,I.jsx)(E.EY,{weight:n===e?"font-bold":"font-semibold",color:n===e?"text-grey-900":"text-grey-700 hover:text-grey-900",children:e})},t))}),(()=>{var e,a,s;if("Related"===n){let e=null==(a=t.find(e=>"Related"===e.title))?void 0:a.data,n=(0,Z.A)(e);return e&&(0,I.jsx)("div",{className:"up-next pt-4",children:n.map(e=>(0,i.createElement)(eW,eU(eU({},e),{},{key:e.title,pageType:r})))})}if("Infographic"===n){let e=null==(s=t.find(e=>"Infographic"===e.title))?void 0:s.body;return(0,I.jsx)("div",{className:"up-next pt-4",children:(0,I.jsx)("div",{className:"mb-5",children:e})})}if("Up Next"===n)return(0,I.jsxs)("div",{className:"up-next py-2 divide-y divide-gray-300",children:[(0,I.jsxs)("div",{className:"mb-3 py-4",children:[(0,I.jsx)("h1",{className:"text-md text-carrot-900 font-bold",children:"01"}),(0,I.jsxs)("p",{className:"text-grey-900 leading-tight",children:[(0,I.jsx)("span",{className:"text-endeavour-900 font-bold",children:"Hearts Like Leaves"})," "]})]}),(0,I.jsxs)("div",{className:"mb-3 py-4",children:[(0,I.jsx)("h1",{className:"text-md text-y-carrot-orange font-bold",children:"02"}),(0,I.jsxs)("p",{className:"text-grey-900 leading-tight",children:[(0,I.jsx)("a",{href:"hello",className:"text-yaqeen-primary-500 font-bold",children:"Charity is Exponential"})," "]})]}),(0,I.jsxs)("div",{className:"mb-3 py-4",children:[(0,I.jsx)("h1",{className:"text-md text-y-carrot-orange font-bold",children:"03"}),(0,I.jsxs)("p",{className:"text-grey-900 leading-tight",children:[(0,I.jsx)("a",{href:"hello",className:"text-yaqeen-primary-500 font-bold",children:"A Light Extinguished"})," "]})]})]});if(n===eG)return null;let l=(null==(e=t.find(e=>e.title===n))?void 0:e.body)||(0,I.jsx)(I.Fragment,{});return(0,I.jsx)("div",{className:"article-content py-6 font-source-serif-pro leading-relaxed text-base xl:text-lg",children:(0,I.jsx)("p",{className:"mb-5",children:l})})})(),l&&(0,I.jsx)("div",{className:n===eG?"article-content py-6 font-source-serif-pro leading-relaxed text-base xl:text-lg":"hidden",children:l.body})]})};var eQ=a(87194);function eV(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,i)}return a}function eK(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};
8t%2?eV(Object(a),!0).forEach(function(t){(0,z.A)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):eV(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}let eJ=e=>{let{tags:t}=e;if(!Array.isArray(t))return null;let a=["post_tag"],i=t.filter(e=>a.includes(e.type)).filter(e=>!eQ.jT.map(eQ.tL).includes((0,eQ.tL)(e.name)));return i.length>0?(0,I.jsxs)("div",{id:"article-tags",className:"flex flex-wrap items-center gap-2",children:[(0,I.jsx)(E.EY,{weight:"font-semibold",fontSize:"text-sm",color:"text-[#1f2937]",children:"Tags:"}),i.map(e=>(0,I.jsx)(M,{tag:eK(eK({},e),{},{name:ep().decode(e.name)}),className:"capitalize",onClick:()=>(0,s.$s)("paper_tags","click",`tag: ${e.name}`)},e.id))]}):null};var eX=a(43309);let e0=e=>{let{relatedItems:t}=e;return t&&(t.series||t.collection)&&(0,I.jsxs)("h2",{className:"text-grey-800 tracking-tight-2 text-base leading-tight mb-8 xl:mb-6 font-source-serif-pro xl:max-w-xl",children:["For more on this topic, see"," ",t.series&&(0,I.jsx)(E.qh,{href:`/series/${t.series.slug}`,onClick:()=>{var e;return(0,s.$s)("paper_related_series","click",`item_name: ${null==(e=t.series)?void 0:e.name}`)},children:(0,I.jsx)(E.EY,{weight:"font-bold",color:"text-y-black",className:"url",children:t.series.name})}),t.series&&t.collection&&" and ",t.collection&&(0,I.jsx)(E.qh,{href:`/tag/${t.collection.slug}`,onClick:()=>{var e;return(0,s.$s)("paper_related_series","click",`item_name: ${null==(e=t.collection)?void 0:e.name}`)},children:(0,I.jsx)(E.EY,{weight:"font-bold",color:"text-y-black",className:"url",children:t.collection.name})})]})||null};function e1(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,i)}return a}function e2(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?e1(Object(a),!0).forEach(function(t){(0,z.A)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):e1(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}let e4=eP()(()=>Promise.all([a.e(7412),a.e(9839)]).then(a.bind(a,19839)),{ssr:!0,loadableGenerated:{webpack:()=>[19839]}}),e5=e=>{var t;let{post:a,relatedItems:r}=e,{title:s,date:l,content:o,tags:h,excerpt:u}=a,m=e=>{let t=0,a=e=>{let a=eO().load(e,{decodeEntities:!1});return a("img").each((e,i)=>{let r=a(i).attr("src");if(!r)return;let n=r.includes("/wp-content/uploads/"),l=(e=>{let{index:t,authoredAlt:a,title:i,excerpt:r,declaredWidth:n,declaredHeight:s,buildUrl:l}=e,o=0===t,c=n||1536,d=eM.filter(e=>e<=c),h=d.length?d:[Math.min(c,1536)],u=n&&s&&n>0?s/n:void 0,m=h[h.length-1],p=(e=>{let{authored:t,title:a,excerpt:i}=e,r=eH(t),n=eH(a),s=eH(i),l=!!n&&r.toLowerCase().replace(/\W+/g,"")===n.toLowerCase().replace(/\W+/g,""),o=r.length<40;return!r||o||l?eR([n&&`Infographic: ${n}`,s].filter(Boolean).join(". ").replace(/\.\.+/g,".").replace(/\s+\./g,".")||r||n||"Infographic",220):eR(r,220)})({authored:a,title:i,excerpt:r});return eq(eq(eq({alt:p},(e=>(e.match(ez)||[]).length>(e.match(/[A-Za-z]/g)||[]).length)(p)?{lang:"ar"}:{}),{},{src:l(h[0]),srcSet:h.map(e=>`${l(e)} ${e}w`).join(", "),sizes:"(max-width: 1279px) 100vw, 800px",width:m,height:u?Math.round(m*u):void 0,loading:o?"eager":"lazy"},o?{fetchpriority:"high"}:{}),{},{decoding:"async"})})({index:t,authoredAlt:a(i).attr("alt"),title:s,excerpt:u,declaredWidth:Number(a(i).attr("width"))||void 0,declaredHeight:Number(a(i).attr("height"))||void 0,buildUrl:e=>(0,F.R2)({src:r,width:e})});n&&(a(i).attr("src",l.src),a(i).attr("srcset",l.srcSet),a(i).attr("sizes",l.sizes)),a(i).attr("alt",l.alt),l.lang&&a(i).attr("lang",l.lang),a(i).attr("width",String(l.width)),l.height&&a(i).attr("height",String(l.height)),a(i).attr("loading",l.loading),a(i).attr("decoding",l.decoding),l.fetchpriority&&a(i).attr("fetchpriority",l.fetchpriority),t+=1}),a.html()},i=Array.isArray(e[0])?e.map(e=>e.map(a).join("")).join(""):e.map(a).join("");return(0,I.jsx)("div",{dangerouslySetInnerHTML:{__html:i}})},p=[{title:"Description",body:(e=>{let t=e.replace(/<\/?p[^>]*>/gi,"");return(0,I.jsx)("span",{dangerouslySetInnerHTML:{__html:t}})})(u)}];(null==(t=r.data)?void 0:t.length)>0&&p.splice(1,0,{title:"Related",body:null,data:r}),(e=>!!e&&eE.includes(e))(a.slug)&&p.splice(1,0,{title:"Text",body:(0,I.jsx)(e4,{slug:a.slug}),data:null}),p.splice(0,0,{title:"Infographic",body:m(o),data:null});let g=p.map(e=>e.title===eG?e2(e2({},e),{},{body:(0,I.jsx)(e4,{slug:a.slug,withAnchors:!0})}):e),f=(0,G.R)(a),{eventTracker:x}=(0,eI.OF)();(0,i.useEffect)(()=>{x("page_view",a.id.toString())},[a.id]);let{trackInteraction:y,getInteraction:b}=(0,n.w)();return(0,i.useEffect)(()=>{let e,t=()=>{clearTimeout(e),e=setTimeout(()=>{y({post:a,type:d.X8.Scroll,value:window.scrollY,percentValue:(0,Q.O)(window.scrollY)})},3e3)};return window.addEventListener("scroll",t),()=>{window.removeEventListener("scroll",t),clearTimeout(e)}},[a]),(0,i.useEffect)(()=>{b(d.X8.Scroll).then(e=>{if(e){var t;let a=null==e||null==(t=e.result)||null==(t=t.score)?void 0:t.raw;a&&window.scrollTo(0,a)}})},[]),(0,I.jsx)("div",{className:"post-body bg-white",children:(0,I.jsx)("div",{className:"contents px-6 iphonese:px-4 xl:px-0",children:(0,I.jsxs)("div",{className:"flex flex-wrap xl:flex-nowrap",children:[(0,I.jsxs)("div",{className:"post-info-left iphonese:mx-0 w-full pt-8 bg-white xl:bg-grey-50 xl:pt-24 xl:w-3/5 xl:pl-32 xl:pr-16",children:[(0,I.jsxs)("div",{className:"post-title mb-6 text-center xl:text-left px-6 iphonese:px-4 xl:px-0",children:[f.length>0&&(0,I.jsx)("div",{className:"mb-6",children:(0,I.jsx)($.PostBreadcrumb,{items:f,fontSize:"text-xs xl:text-base",align:"xl:justify-start justify-center"})}),(0,I.jsx)(eX.A,{children:s})]}),(0,I.jsxs)("div",{className:"sticky xl:mt-24 xl:divide-y-0 divide-y divide-grey-100 mb-12 xl:mb-0",style:{to
8p:"2rem"},children:[(0,I.jsxs)("div",{className:"date-share xl:flex xl:justify-between xl:pb-0 pt-2 xl:pt-0",children:[(0,I.jsx)("div",{className:"text-center pt-2 pb-5",children:(0,I.jsx)(eF.A,{date:l})}),(0,I.jsx)("div",{className:"pt-2 pb-6 xl:pb-0",children:(0,I.jsxs)("div",{className:"flex xl:justify-start justify-center space-x-1",children:[(0,I.jsx)(C.Tx,{post:a}),(0,I.jsx)($.PostSharePlatformDropdown,{url:window.location.href,title:a.title,logTitle:`Infographic - ${a.title}`})]})})]}),(0,I.jsx)("div",{className:"block xl:hidden px-6 iphonese:px-4 xl:px-0",children:(0,I.jsx)(e0,{relatedItems:r})}),(0,I.jsxs)("div",{className:"xl:pt-10 pt-4 px-6 iphonese:px-4 xl:px-0",children:[(0,I.jsxs)("div",{className:"xl:block hidden",children:[(0,I.jsx)(eZ,{tabs:g,pageType:c.g6.Infographics}),(0,I.jsx)(eJ,{tags:h})]}),(0,I.jsx)("div",{className:"xl:hidden",children:(0,I.jsx)(eZ,{tabs:p,isMobile:!0,pageType:c.g6.Infographics})}),(0,I.jsx)(e0,{relatedItems:r})]})]})]}),(0,I.jsx)("div",{className:"post-content-right w-full xl:pt-40 xl:w-4/5 xl:pr-32 xl:pl-18 xl:mb-20",children:(0,I.jsxs)("section",{className:"content-body divide-y divide-grey-100",children:[(0,I.jsx)("div",{className:"main-content xl:block hidden",children:(0,I.jsx)("article",{className:"mb-20",children:m(o)})}),(0,I.jsx)("div",{className:"block xl:hidden px-6 iphonese:px-4 xl:px-0 mb-6",children:(0,I.jsx)(eJ,{tags:h})})]})})]})})})};var e3=a(16591);let e6=["why-we-need-ulama-the-importance-of-seeking-islamic-knowledge-from-scholars","on-the-timing-and-virtues-of-the-night-of-power-the-hearts-joy-in-remembering-laylat-al-qadr-by-ibn-al-iraqi","approaching-the-quran-through-the-names-of-allah","etiquette-as-spiritual-nourishment-the-adab-of-the-student-according-to-al-ghazali-and-al-isfahani","the-qurans-engagement-with-christian-and-jewish-literature","a-plea-to-saintly-women-the-life-and-legacy-of-nana-asmau","belief-in-divine-love-discovering-spiritual-attachment-styles","how-to-overcome-racism-lessons-from-west-african-scholars-tafsir-of-surat-al-hujurat","the-first-codex-abu-bakrs-compilation-of-the-quran","breaking-free-unshackling-the-muslim-mind-from-secular-thought-and-reestablishing-the-islamic-personality","the-art-of-gratitude-quranic-themes-on-shukr","marriage-and-gender-roles-in-islam-beyond-rights-and-duties"],e9=["women-in-islamic-law-examining-five-prevalent-myths","the-guiding-principles-of-faith-sincerity-honesty-and-good-will-in-islam","the-meaning-of-allahs-name-al-wadud-seeking-the-love-of-allah","can-the-quran-be-recited-in-different-ways-the-meaning-and-wisdom-of-qiraat","is-the-quran-still-relevant-today-the-timeless-universality-of-quranic-teachings","the-idea-of-happiness-in-the-quran","how-muhammad-confronted-hate-and-became-the-most-influential-person-in-history","approaching-the-quran-through-the-names-of-allah","the-physical-miracles-of-prophet-muhammad","is-hijab-religious-or-cultural-how-islamic-rulings-are-formed"];var e8=a(94030),e7=a(35223),te=a(32738),tt=a(10676),ta=a(42484),ti=a(71829);let tr=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],{0:a,1:l}=(0,i.useState)(!1),{firebaseAuth:o}=(0,h.m9)(),{userInfo:c,initAuth:u,appendItemToAuthParams:m}=o,{hasURLParam:p,removeURLParam:g}=(0,ti.W)(),{isVerified:f,overlay:x}=(0,ta.l)(),{type:y,archive:b}=e,w=(0,tt.DI)(e.related),j=null!==w,k=(0,eY.HH)(),{asPath:N}=(0,r.useRouter)(),{eventTracker:_}=(0,eI.OF)(),S=(0,i.useCallback)(async()=>{if((0,e8.h6)("Download"),_("download",e.id.toString()),t)(0,s.$s)("talk_toolkits","download",w);else if((0,s.$s)(`${(0,te.M5)(y)}_detail`,"download",`pdf-link: ${w}, device: ${k}`),b){let t={title:e.title,postId:e.id,type:y,user:c.user};return await (0,e7.lK)(t)}window.open(w,"_blank")||l(!0)},[e]);(0,i.useEffect)(()=>{c.authState===v.j_.VerifiedAuth&&p("download")&&(g("download"),S())},[c.authState,p,g,S]),(0,i.useEffect)(()=>
8{l(!1)},[N]);let{trackInteraction:A}=(0,n.w)();return{downloadLink:w,isManualDownloadRequired:a,hasDownloadLink:j,handleDownloadClick:(0,i.useCallback)(()=>{l(!1),c.authState===v.j_.VerifiedAuth&&f?(S(),A({post:e,type:d.X8.Download})):c.authState!==v.j_.VerifiedAuth||f?(m({download:"1"}),u()):x.open()},[c.authState,f,S,u,x,m])}};var tn=a(90525),ts=a(97998),tl=a(47369);let to=()=>(0,I.jsx)(E.qh,{href:"https://getchaptrs.com",className:"block w-full cursor-pointer hover:opacity-90 transition-opacity",onClick:()=>{(0,s.$s)("audio_produced_by","click","chaptrs_logo")},target:"_blank","aria-label":"Listen on the go on Chaptrs",children:(0,I.jsx)(m(),{src:"/static/images/chaptrs-banner-small.jpg",alt:"Listen on the go on Chaptrs",layout:"responsive",width:576,height:72,className:"rounded-lg"})}),tc=e=>{let{images:t,alt:a="",width:i=2560,height:r=853,mobileOnly:n=!1}=e,s=t.desktopPost,l=s&&(0,F.AE)(s);return(0,I.jsx)("div",{id:"featured-image",className:"bg-grey-40",children:l&&(0,I.jsxs)(I.Fragment,{children:[!n&&(0,I.jsx)("div",{id:"hero-desktop-image",className:"hidden xl:block",children:(0,I.jsx)(m(),{loader:F.R2,src:l,alt:a,height:r,width:i,layout:"intrinsic",className:"object-cover",priority:!0})}),(0,I.jsx)("div",{id:"hero-mobile-image",className:"xl:hidden aspect-w-16 aspect-h-9 w-full",children:(0,I.jsx)(m(),{loader:F.R2,src:l,alt:a,layout:"fill",className:"object-cover rounded-xl",priority:!0})})]})})};var td=a(45999),th=a(75625),tu=a(56189);let tm=[{value:"General Feedback",label:"General Feedback"},{value:"Technical Issue",label:"Technical Issue"},{value:"Content Question",label:"Content Question"},{value:"Suggestion",label:"Suggestion"},{value:"Other",label:"Other"}],tp=e=>{var t;let{0:a,1:r}=(0,i.useState)(null),{register:n,handleSubmit:s,errors:l,formState:o,reset:c,setValue:d}=(0,th.mN)({mode:"onChange"}),{firebaseAuth:u}=(0,h.m9)(),{userInfo:m}=u,{post:p}=e;(0,i.useEffect)(()=>{var e;null!=m&&null!=(e=m.user)&&e.email&&d("email",m.user.email,{shouldValidate:!0})},[null==m||null==(t=m.user)?void 0:t.email,d]);let g=async e=>{var t,a;r(null);let[i]=await (0,td.r)("/api/v1/hs-forms/paperFeedback",{email:e.email||(null==(t=m.user)?void 0:t.email),paper_feedback_type:e.paper_feedback_type,paper_feedback:e.feedback,pageUri:window.location.href,pageName:p.title});i?(c({email:(null==(a=m.user)?void 0:a.email)||"",paper_feedback_type:"General Feedback",feedback:""}),tu.toast.info("Your feedback has been submitted. Thanks so much for your feedback!")):r({message:"An error occurred while submitting your feedback!"})},f=o.isValid&&!o.isSubmitting;return(0,I.jsx)("div",{id:"paper-feedback-form",className:"max-w-7xl mx-auto w-full flex px-0 pt-8 xl:pt-0 pb-18",children:(0,I.jsxs)("div",{className:"w-full flex flex-col p-6 gap-6 bg-blue-50 rounded-lg",children:[(0,I.jsxs)("div",{id:"form-title",className:"flex flex-col gap-1",children:[(0,I.jsx)("p",{className:"font-bold text-[#0052ff] text-[30px] tracking-[-0.36px] leading-[1.25]",children:"Feedback"}),(0,I.jsx)(E.EY,{as:"p",color:"text-grey-900",fontSize:"text-lg",className:"leading-7 tracking-[-0.216px]",children:"We'd love to hear your thoughts on this unit!"})]}),a&&(0,I.jsx)("div",{className:"inline-flex items-start justify-start w-full p-4 bg-red-50 rounded-md",children:(0,I.jsx)(h.$p,{errors:a,logTitle:a.code,content:a.message,onClose:()=>{r(null)}})}),(0,I.jsxs)("form",{method:"post",onSubmit:s(g),children:[(0,I.jsxs)("div",{className:"flex flex-col lg:flex-row gap-4 mb-4",children:[(0,I.jsxs)("div",{className:"flex-1",children:[(0,I.jsx)("label",{htmlFor:"email",className:"block text-sm font-semibold text-slate-500 mb-1",children:"Email"}),(0,I.jsx)(E.A_,{id:"email",name:"email",type:"email",inputClassName:"form-input block w-full rounded-md border-gray-300 shadow-sm focus:border-carrot-500 focus:ring-0",ref:n({required:"Please enter your email",pattern:{value:/^(?!.*\.\.)([a-zA-Z0-9._%+-]{1,64})@([a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/i,message:"Invalid email address"}}),validationState:l.email?"invalid":"valid",validationMsg:l.email?l.email.message:null})]}),(0,I.jsxs)("div",{className:"flex-1",children:[(0,I.jsx)("label",{htmlFor:"helpType",className:"block text-sm font-semibold text-slate-500 mb-1",children:"What can we help you with?"}),(0,I.jsx)("select",{id:"paper_feedback_type",name:"paper_feedback_type",className:"form-select block w-full rounded-md border-gray-300 shadow-sm focus:border-carrot-500 focus:ring-0",defaultValue:"General Feedback",ref:n({required:"Please select a help type"}),children:tm.map(e=>(0,I.jsx)("option",{value:e.value,children:e.label},e.value))}),l.paper_feedback_type&&(0,I.jsx)("p",{className:"mt-1 text-sm text-red-600",children:l.paper_feedback_type.message})]})]}),(0,I.jsxs)("div",{className:"mb-4",children:[(0,I.jsx)("label",{htmlFor:"feedback",className:"block text-sm font-semibold text-slate-500 mb-1",children:"Message"}),(0,I.jsx)(E.A_,{id:"feedback","aria-label":"Message",as:"textarea",
8name:"feedback",type:"textarea",rows:4,cols:3,inputClassName:"form-textarea block w-full rounded-md border-gray-300 shadow-sm focus:border-carrot-500 focus:ring-0 py-4 px-3",placeholder:"Write your message here",ref:n({required:"Please write your message"}),validationState:l.feedback?"invalid":"valid",validationMsg:l.feedback?l.feedback.message:null})]}),(0,I.jsx)("div",{id:"submit-feedback",className:"flex w-full justify-center lg:justify-start",children:(0,I.jsx)(E.$n,{type:"submit",isDisabled:!f,className:`inline-flex h-[42px] w-full lg:w-auto justify-center items-center rounded-[4px] px-4 py-[9px] ${f?"bg-carrot-500 hover:bg-carrot-700":"bg-grey-100 cursor-not-allowed"}`,children:(0,I.jsx)(E.EY,{as:"p",color:f?"text-white":"text-gray-500",weight:"font-bold",children:"Submit feedback"})})})]})]})})},tg=e=>{let{archive:t}=e;return(0,I.jsxs)("div",{className:"archive-article bg-grey-100 mb-8 p-6",children:[(0,I.jsx)("div",{className:"mb-5",children:(0,I.jsxs)(E.EY,{as:"p",weight:"font-semibold",children:["Archived: ",t.date]})}),(0,I.jsx)(E.EY,{as:"p",fontFamily:"font-source-serif-pro",lineHeight:"leading-relaxed",fontSize:"text-base",className:"break-words",children:t.note})]})};var tf=a(39378),tx=a(44221),ty=a(55850),tb=a(78814),tv=a(35149),tw=a(10180);function tj(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,i)}return a}function tk(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?tj(Object(a),!0).forEach(function(t){(0,z.A)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):tj(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}let tN=e=>{let{summary:t,slug:a}=e,{0:r,1:n}=(0,i.useState)(null),l=e=>{r!==e&&(n(e),(0,s.$s)("paper_summary_feedback","click",`${e}: ${a??""}`))};return(0,I.jsxs)("div",{children:[(0,I.jsx)("div",tk(tk({},(0,tw.Iw)({tab:"summary",section:0,block:0})),{},{className:"w-full text-base xl:text-lg xl:leading-7 leading-[1.5] tracking-normal font-normal oldstyle-nums proportional-nums break-words text-grey-900 font-source-serif-pro [&>*+*]:mt-4 [&_h2]:text-2xl [&_h2]:font-semibold [&_h2]:mt-6 [&_h3]:text-xl [&_h3]:font-semibold [&_ul]:list-disc [&_ul]:pl-6 [&_ol]:list-decimal [&_ol]:pl-6 [&_li]:mt-1 [&_a]:text-blue-700 [&_a]:underline [&_blockquote]:border-l-4 [&_blockquote]:border-gray-300 [&_blockquote]:pl-4 [&_blockquote]:italic",dangerouslySetInnerHTML:{__html:t}})),(0,I.jsxs)("div",{className:"mt-10 flex items-center justify-between gap-3 flex-wrap",children:[(0,I.jsxs)("div",{className:"flex items-center gap-2 text-xss text-gray-500",children:[(0,I.jsx)(ek.g,{icon:tv.p7}),"This summary is auto-generated."]}),(0,I.jsxs)("div",{className:"flex items-center gap-2",children:[(0,I.jsx)(E.EY,{as:"p",color:"text-gray-500",fontSize:"text-xss",children:"Rate this summary:"}),(0,I.jsx)(E.$n,{onPress:()=>l("up"),"aria-label":"Rate summary as helpful",children:(0,I.jsx)(ek.g,{icon:tb.Wc,className:"up"===r?"text-green-600":"text-gray-500",size:"sm"})}),(0,I.jsx)(E.$n,{onPress:()=>l("down"),"aria-label":"Rate summary as not helpful",children:(0,I.jsx)(ek.g,{icon:tb.lS,className:"down"===r?"text-red-600":"text-gray-500",size:"sm"})})]})]})]})};var t_=a(51131);let tS=e=>{let{slug:t}=e,a=e3.z.find(e=>e.slug===t);return a?(0,I.jsx)("div",{className:"w-full mb-10",children:(0,I.jsxs)("div",{className:"bg-jordy-50 xl:rounded-lg xl:px-5 xl:pt-4 px-4 pt-5 pb-5",children:[(0,I.jsx)(E.EY,{as:"p",fontSize:"xl:text-2xl text-xl",weight:"font-semibold",className:"mb-3 border-b border-gray-200 pb-2",lineHeight:"leading-[1.25]",children:"Frequently Asked Questions"}),(0,I.jsx)("div",{className:"space-y-4",children:a.FAQs.map((e,t)=>(0,I.jsx)("div",{id:`faq-${t+1}`,children:(0,I.jsxs)(E.nD,{className:"border-b border-gray-200 xl:pb-4 pb-2 last:border-b-0 last:pb-0",onChange:(e,a)=>{(0,s.$s)("paper_faq",a?"expand":"collapse",`position: ${t+1}`)},children:[(0,I.jsx)(E.Xo,{id:`faq-question-${t+1}`,"aria-controls":`faq-answer-${t+1}`,children:(0,I.jsx)(E.EY,{as:"div",weight:"font-semibold",fontSize:"text-sm",className:t_.zs,children:(0,I.jsx)("div",{dangerouslySetInnerHTML:{__html:e.question}})})}),(0,I.jsx)(E.vr,{className:"pt-2",children:(0,I.jsx)(E.EY,{fontFamily:"font-source-serif-pro",as:"div",fontSize:"text-sm",color:"text-gray-600",className:t_.dA,children:(0,I.jsx)("div",{dangerouslySetInnerHTML:{__html:e.answer}}
8)})})]})},t))})]})}):null},tA=e=>{let{posts:t,sectionTitle:a,analytic:i}=e;return(0,I.jsxs)("div",{children:[(0,I.jsx)("div",{id:"tc-title",className:"mb-6 mt-5",children:(0,I.jsx)(E.EY,{as:"p",color:"text-grey-900",weight:"font-semibold",fontSize:"text-lg",letterSpacing:"tracking-tight-1",children:a})}),(0,I.jsx)("div",{className:"space-y-6",children:t.map(e=>{var t,a;return(0,I.jsx)(eL.Zp,{imgSrc:(null==e?void 0:e.featured_image)||(null==e||null==(t=e.images)?void 0:t.desktopHorizontal)||(null==e?void 0:e.thumbnail)||(null==e||null==(a=e.images)?void 0:a.desktopVertical),title:e.title,titleSize:"text-sm",postLink:(0,te.e0)(e),analytic:i},e.title)})})]})};var tC=a(55152),tP=a.n(tC),tT=a(40627);let tO=e=>{let{posts:t,analytic:a,sectionTitle:i}=e;return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsxs)("div",{id:tP()(i),className:"xl:my-10 mt-10",children:[(0,I.jsx)(tT._x,{title:i,isBorder:!1,isSpacing:!1}),(0,I.jsx)("div",{className:"border-b-2 border-gray xl:mt-4 mt-6"})]}),(0,I.jsx)("div",{className:"my-6",children:(0,I.jsx)("div",{className:"grid xl:grid-cols-5 grid-cols-1 gap-x-6 gap-y-10",children:t.map(e=>{var t,i,r,n;return(0,I.jsx)("div",{children:(0,I.jsxs)("div",{className:"grid grid-cols-3 gap-x-4",children:[(0,I.jsx)(E.qh,{href:te.PC[e.contentType.find(e=>0===e.parent).slug],onClick:()=>{(0,s.$s)(a,"click",`item_name: ${e.title}`)},children:(0,I.jsx)("div",{className:"aspect-w-16 aspect-h-9",children:(0,I.jsx)(m(),{loader:F.R2,src:(null==e?void 0:e.featured_image)||(null==e||null==(t=e.images)?void 0:t.desktopHorizontal)||(null==e?void 0:e.thumbnail)||(null==e||null==(i=e.images)?void 0:i.desktopVertical),alt:e.title,layout:"fill",objectFit:"cover"})})}),(0,I.jsxs)("div",{className:"flex-1 flex flex-col justify-center col-span-2",children:[(0,I.jsx)(E.qh,{href:e.slug,passHref:!0,className:"mb-1",onClick:()=>{(0,s.$s)(a,"click",`item_name: ${e.title}`)},children:(null==(r=e.topic.filter(e=>0!==e.parent))||null==(r=r[0])?void 0:r.name)&&(0,I.jsx)(eL.fo,{category:null==(n=e.topic.filter(e=>0!==e.parent))?void 0:n[0].name,size:"text-xss"})}),(0,I.jsx)(E.qh,{href:(0,te.e0)(e),onClick:()=>{(0,s.$s)(a,"click",`item_name: ${e.title}`)},children:(0,I.jsx)(E.EY,{as:"p",color:"text-y-black",weight:"font-bold",letterSpacing:"tracking-tight-2",lineHeight:"leading-tight",fontSize:"text-sm",className:"mb-1",children:e.title})}),(0,I.jsx)(eL.EJ,{authors:e.authors,fontSize:"text-xs",isSpacing:!1})]})]})},e.title)})})})]})};var tE=a(2209);let tI=e=>{let{content:t,relatedItems:a,trendingPapers:r,editorsPickPapers:n,similarPapers:s,footnotes:l,personalizedPosts:o,type:d,post:h,isSummaryMode:u,summary:m,showPaperFAQs:p}=e,f=(0,ty.Lo)([a&&(a.series||a.collection)?"pt-8 xl:pt-10":""]),x=(0,te.sr)(t);(0,i.useEffect)(()=>{(0,g.ee)()});let y=new Set;return(0,I.jsxs)("article",{children:[(0,I.jsx)(e0,{relatedItems:a}),(0,I.jsx)("div",{className:f,children:u&&(null==m?void 0:m.length)>0?(0,I.jsx)(tN,{summary:m}):null==t?void 0:t.map((e,a)=>{if(e.length<=1)return(0,I.jsx)(I.Fragment,{});let i=t.length>=2&&a===t.length-2;return(0,I.jsxs)("div",{children:[((e,t,a,i,r,n)=>{let s,h=t[0].trim().replace(/<\/?strong>/gi,""),u=h.includes("<commentary>"),m=/<\/?translation>/.test(h);m&&(s=(0,tx.ED)(h));let p=u||m;h=u?h.replace(/<\/?commentary>/gi,""):h;let g=0===(h=m?h.replace(/<\/?translation>/gi,""):h).length;return(0,I.jsx)("section",{id:`section-${e}`,children:(0,I.jsx)(I.Fragment,{children:(0,I.jsxs)("div",{className:"xl:flex xl:space-x-10",children:[(0,I.jsxs)("div",{className:"xl:flex-auto",children:[u&&(0,I.jsx)($.Commentary,{title:h,content:(0,H.m5)({paragraphs:t.slice(1),trendingPapers:a,editorsPickPapers:i,similarPapers:r,footnotes:l,isCustomElement:u,slug:null==n?void 0:n.slug,postType:null==n?void 0:n.type,sectionIndex:e,duaAnchors:y})},e),m&&(0,I.jsx)("div",{id:`content-${e}`,className:"mb-10 space-y-5",children:(0,I.jsx)($.Translation,{translationNumber:s.attributes.number,content:(0,H.m5)({paragraphs:t.slice(1),trendingPapers:a,editorsPickPapers:i,similarPapers:r,footnotes:l,isCustomElement:m,slug:null==n?void 0:n.slug,postType:null==n?void 0:n.type,sectionIndex:e,duaAnchors:y})},e)}),!p&&!g&&""!=h&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("div",{id:`title-${e}`,className:"mb-2",children:(0,I.jsx)(E.DZ,{color:"text-endeavour-500",fontSize:"text-2xl",weight:"font-bold",lineHeight:"leading-tight",letterSpacing:"tracking-tight-1",children:(0,I.jsx)("span",{dangerouslySetInnerHTML:{__html:h}})})}),(0,I.jsx)("div",{id:`separator-${e}`,className:"border-t border-grey-100 w-full mb-4"})]}),!p&&(0,I.jsx)("div",{id:`content-${e}`,className:"mb-10 space-y-5",children:(0,H.m5)({paragraphs:t.slice(1),trendingPapers:a,editorsPickPapers:i,similarPapers:r,footnotes:l,slug:null==n?void 0:n.slug,postType:null==n?void 0:n.type,sectionIndex:e,duaAnchors:y})}),e===x.ameenAppBanner&&d!==c.xj.Events&&(0,I.jsx)("div",{className:"mb-8",children:(0,I.jsx)(X,{})})]}),r&&d!==c.xj.Events&&(0,I.jsx)(I.Fragment,{children:r&&e===x.editorsPick&&(0,I.jsx)("div",{className:"xl:hidden overflow-hidden",children:(0,I.jsx)(tO,{posts:r,sectionTitle:"Explore similar papers",analytic:"similar_papers",size:r.length})})}),e===x.mobileEntryPoint&&(0,I.jsx)("div",{className:"xl:hidden mb-10",children:(0,I.jsx)(tf.X,{width:343})}),o&&o.length>0&&e===x.similarPapers&&d!==c.xj.Events&&(0,I.jsx)("div",{className:"xl:hidden overflow-hidden",children:(0,I.jsx)(tO,{posts:o,sectionTitle:"Your recommendations",analytic:"personalized",size:o.length})}),a&&d!==c.xj.Events&&(0,I.jsx)(I.Fragment,{children:a&&e===x.trendingPapers&&(0,I.jsx)("div",{className:"xl:hidden overflow-hidden",children:(0,I.jsx)(tO,{posts:a,sectionTitle:"Trending papers",analytic:"trending_papers",size:a.length})})}),d!==c.xj.TalkToolkit&&(0,I.jsxs)("div",{className:"xl:block hidden xl:flex-none xl:w-60",children:[1===e&&(0,I.jsx)(tf.f,{}),1===e&&(0,I.jsx)("div",{className:"flex items-end h-[60%]",children:(0,I.jsx)(tE.H,{})}),r&&4===e&&d!==c.xj.Events&&(0,I.jsx)(tA,{posts:r,sectionTitle:"Explore similar papers",analytic:"similar_papers"}),a&&e===x.trendingPapers&&d!==c.xj.Events&&(0,I.jsx)(tA,{posts:a,sectionTitle:"Trending papers",analytic:"trending_papers"}),o&&d!==c.xj.Events&&o.length>0&&e===x.editorsPick&&(0,I.jsx)(tA,{posts:o,sectionTitle:"Your recommendations",analytic:"personalization"})]})]})})},e)})(a,e,r,n,s,h),p&&i&&h&&(0,I.jsx)("section",{id:"paper-faqs",children:(0,I.jsxs)("div",{className:"xl:flex xl:space-x-10",children:[(0,I.jsx)(tS,{slug:h.slug}),(0,I.jsx)("div",{className:"xl:block hidden xl:flex-none xl:w-60"})]})})]},a)})})]})},tD=["/zarakhan/reviving-the-waqf-tradition-moral-imagination-and-the-structural-causes-of-poverty","/sarah-sultan/everything-is-falling-apart-dealing-with-unexpected-life-detours","/amiraayad/reframing-the-suffering-narrative-can-affliction-direct-us-to-our-calling","/khalil-abdurrashid/financing-kindness-as-a-society-the-rise-fall-of-islamic-philanthropic-institutions-waqfs"];var tq=a(23749);let tM=()=>{let{country:e}=(0,tq.A)(),{query:{slugs:t}}=(0,r.useRouter)();return(0,I.jsx)("div",{id:"article-disclaimer",children:(0,I.jsxs)(E.EY,{as:"p",className:"italic",fontSize:"text-xs",color:"text-gray-800",fontFamily:"font-source-serif-pro",children:[(0,I.jsx)("span",{className:"text-gray-900",children:"Disclaimer:"})," The views, opinions, findings, and conclusions expressed in these papers and articles are strictly those of the authors. Furthermore, Yaqeen does not endorse any of the personal views of the authors on any platform. Our team is diverse on all fronts, allowing for constant, enriching dialogue that helps us produce high-quality research.",(()=>{let a=t&&tD.includes(`/${t.join("/")}`);return e===c.TP.CA&&a?(0,I.jsxs)(E.EY,{fontFamily:"font-source-serif-pro",as:"p",fontSize:"text-xs",className:"italic my-1",color:"text-grey-800",children:["This work was supported by"," ",(0,I.jsx)("a",{href:"https://www.islamicreliefcanada.org/",className:"font-bold",children:"Islam
8ic Relief Canada"}),"."]}):null})()]})})};var t$=a(1056),tH=a(95044),tR=a(62993),tz=a(78226);let tF=(e,t)=>e?null==e?void 0:e.map(e=>{if(e.length<=1)return null;if(t===c.xj.Paper||t===c.xj.Publication){let t=e[0].trim().replace(/<\/?strong>/gi,"").replace(/<sup>.*<\/sup>/gi,""),a=0===t.length,i=/<\/?translation>/.test(t);return a||i?null:t}}):null,tY=e=>{let{content:t,postType:a,postTitle:r,showFAQs:n}=e,{0:l,1:o}=(0,i.useState)(null),{0:c,1:d}=(0,i.useState)(!0),{0:h,1:u}=(0,i.useState)(0),m=()=>{let e=document.body.getBoundingClientRect().top;u(e),d(e>-64||e>h||0===e)};(0,i.useEffect)(()=>(window.addEventListener("scroll",m),()=>window.removeEventListener("scroll",m)));let p=tF(t,a),g=(null==p?void 0:p.filter(Boolean))||[],f=n&&g.length>=2?null==p?void 0:p.lastIndexOf(g[g.length-1]):-1,x=(0,I.jsx)(tH.W1.Item,{children:(0,I.jsx)(tz.N_,{to:"paper-faqs",spy:!0,onSetActive:()=>o(-1),offset:-140,className:"block px-4 py-2",onClick:()=>(0,s.$s)("paper_toc_mobile","click",`item_name: ${r}, section: Frequently Asked Questions`),children:(0,I.jsxs)("div",{className:"flex",children:[(0,I.jsx)("div",{className:"grow",children:(0,I.jsx)("span",{className:"text-grey-900 font-regular",children:"Frequently Asked Questions"})}),(0,I.jsx)("div",{className:"flex-none w-3 h-3",children:(0,I.jsx)(ek.g,{icon:"check",size:"sm",className:"text-carrot-500 invisible"})})]})})},"paper-faqs");return(0,I.jsxs)(tH.W1,{as:"div",className:`${c?"transition-all ease-in duration-150 visible -transform-100":"transition-all ease-in duration-150 invisible"} max-w-7xl w-full xl:hidden block fixed -bottom-11`,children:[(0,I.jsx)("div",{children:(0,I.jsxs)(tH.W1.Button,{className:"px-4 inline-flex w-full border border-gray-300 bg-white py-2 font-semibold text-grey-800",children:["Table of Contents",(0,I.jsx)(tR.A,{className:"mr-4 ml-2 h-5 w-5 absolute right-0 text-carrot-500","aria-hidden":"true"})]})}),c&&(0,I.jsx)("div",{className:"absolute w-full bottom-0 mb-10",children:(0,I.jsxs)(tH.W1.Items,{className:"w-full h-64 overflow-y-auto border-t-2 rounded-t-xl bg-white bg-opacity-90 backdrop-blur-sm",children:[p.map((e,t)=>e?(0,I.jsxs)(I.Fragment,{children:[f===t&&x,(0,I.jsx)(tH.W1.Item,{children:(0,I.jsx)(tz.N_,{to:`section-${!e?t+1:t}`,spy:!0,onSetActive:()=>o(t),offset:-140,className:"block px-4 py-2",onClick:()=>(0,s.$s)("paper_toc_mobile","click",`item_name: ${r}, section: ${e}`),children:(0,I.jsxs)("div",{className:"flex",children:[(0,I.jsx)("div",{className:"grow",children:(0,I.jsx)("span",{className:`text-grey-900 ${l===t?"font-bold":"font-regular"}`,dangerouslySetInnerHTML:{__html:e}})}),(0,I.jsx)("div",{className:"flex-none w-3 h-3",children:(0,I.jsx)(ek.g,{icon:"check",size:"sm",className:`text-carrot-500 ${l===t?"visible":"invisible"}`})})]})})},e)]}):null),n&&-1===f&&x]})})]})},tL=e=>{let{changelog:t}=e,a=t.find(e=>!!e.update);return(0,I.jsxs)("div",{className:"mb-8 px-6 py-6 bg-jordy-50 xl:max-w-xl",children:[(0,I.jsx)("div",{className:"updates-section",children:(0,I.jsxs)(E.EY,{as:"p",weight:"font-semibold",children:["Updated: ",t[t.length-1].date]})}),a&&(0,I.jsxs)(E.nD,{className:"pt-5",children:[(0,I.jsx)(E.Xo,{"aria-controls":"updates-panel-content",id:"updates-panel-header",className:"items-center",expandIcon:(0,I.jsx)(ek.g,{icon:["fas","chevron-down"],size:"sm",className:"text-carrot-500"}),children:(0,I.jsx)(E.DZ,{color:"text-grey-900",fontSize:"text-base",weight:"font-bold",lineHeight:"leading-tight",children:"See updates"})}),(0,I.jsx)(E.vr,{children:(0,I.jsx)("div",{className:"content pt-5",children:(0,I.jsx)("ul",{className:"list-decimal list-outside pl-5",children:t.map((e,t)=>(0,I.jsx)("li",{children:(0,I.jsx)(E.EY,{as:"p",fontFamily:"font-source-serif-pro",lineHeight:"leading-relaxed",fontSize:"text-base",className:"break-words",children:`${e.date} ${e.update}`})},t))})})})]})]})},tB=e=>{let{postType:t,onReadModeClick:a,isLoading:i=!1}=e;return[c.xj.Paper,c.xj.Publication].includes(t)&&a?(0,I.jsx)("div",{className:"relative overflow-visible inline-block",children:(0,I.jsx)("button",{onClick:()=>{(0,s.$s)("paper-read-mode","click","read-mode"),null==a||a()},disabled:i,"aria-label":"Read-mode",className:"bg-white border border-grey-200 rounded w-10 md:w-auto px-0 md:px-[17px] py-[9px] h-10 flex items-center justify-center gap-2 hover:bg-grey-50 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:i?(0,I.jsx)(ek.g,{icon:ej.z1G,spin:!0,className:"text-black/75 text-sm"}):(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(ek.g,{icon:ej.yjc,className:"text-black/75 text-base"}),(0,I.jsx)(E.EY,{weight:"font-bold",fontSize:"text-base",color:"text-black/75",lineHeight:"leading-none",className:"tracking-[-0.192px] hidden md:inline-block",children:"Read-mode"})]})})}):null},tU=()=>(0,I.jsx)("div",{className:"flex items-center justify-center min-h-screen",children:(0,I.jsx)(E.EY,{fontSize:"text-lg",color:"text-grey-600",children:"Loading read mode..."})}),tW=eP()(()=>Promise.resolve().then(a.bind(a,89610)).then(e=>e.DownloadFormatButton),{loadableGenerated:{webpack:()=>[89610]}}),tG=eP()(()=>Promise.resolve().then(a.bind(a,57908)).then(e=>e.RelatedData),{loadableGenerated:{webpack:()=>[57908]}}),tZ=eP()(()=>Promise.resolve().then(a.bind(a,63840)),{loadableGenerated:{webpack:()=>[63840]}}),tQ=eP()(()=>Promise.all([a.e(750),a.e(5907)]).then(a.bind(a,55907)),{ssr:!1,loading:tU,loadableGenerated:{webpack:()=>[55907]}}),tV=e=>{let{post:t,url:a,onReadModeClick:r,isLoading:n=!1,showReadModeButton:s=!0}=e,{title:l}=t,{downloadLink:o,hasDownloadLink:c,isManualDownloadRequired:d,handleDownloadClick:h}=tr(t),{0:u,1:m}=(0,i.useState)("pdf"),p="markdown"===u?`/api/v1/md-gen/${t.slug}`:o;return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsxs)("div",{id:"post-actions",className:"flex flex-col md:flex-row md:justify-between md:items-center gap-2 md:gap-2 mt-6 overflow-visible",children:[(0,I.jsxs)("div",{className:"flex items-center gap-2",children:[(0,I.jsx)(C.Tx,{post:t}),(0,I.jsx)($.PostSharePlatformDropdown,{url:a,title:l,logTitle:`Paper - ${l}`,hideLabel:!0}),(0,I.jsx)("div",{className:"md:hidden",children:(0,I.jsx)(ef.X,{postId:t.id,title:l,url:a})})]}),(0,I.jsxs)("div",{className:"flex items-center gap-2",children:[(0,I.jsx)("div",{className:"hidden md:block",children:(0,I.jsx)(ef.X,{postId:t.id,title:l,url:a})}),s&&(0,I.jsx)(tB,{postType:t.type,onReadModeClick:r,isLoading:n}),c&&(0,I.jsx)(tW,{handleDownloadClick:h,slug:t.slug,onFormatSelect:m,downloadLink:o})]})]}),d&&(0,I.jsx)("div",{className:"px-4 py-4 flex justify-center md:justify-end",children:(0,I.jsx)(E.EY,{weight:"font-semibold",children:(0,I.jsxs)("em",{children:["Your download should begin automatically. Didn't work?"," ",(0,I.jsx)(E.qh,{href:p,className:"url",target:"_blank",children:"Try again."})," "]})})})]})},tK=e=>{var t,a;let{post:l,relatedItems:o,readNextPosts:h,similarPapers:u,trendingPapers:m,editorsPickPapers:p,parsedPaperContent:g,relatedPosts:f,footnotes:x,similarTopicPostsData:y,authorDetails:b=[]}=e,{title:v,tags:j,type:k,changelog:N,archive:_,images:C}=l,P=(0,r.useRouter)(),T=(0,R.jZ)(l.authors),O=[c.xj.Paper,c.xj.Publication,c.xj.Translation].includes(k)?"read_paper":"read_blog",D=(0,G.R)(l),q=f??(0,Z.A)(o),M=window.location.href,{0:H,1:z}=(0,i.useState)(0),{0:F,1:Y}=(0,i.useState)(!1),L=(0,ti.W)(),{0:V,1:K}=(0,i.useState)(()=>{let e=new URLSearchParams(window.location.search).get("mode"),t=P.query.mode;return"read"===e||"read"===t}),{0:J,1:X}=(0,i.useState)(!1);(0,i.useEffect)(()=>{let e=new URLSearchParams(window.location.search).get("mode"),t=P.query.mode,a=e||t,i="read"===a;console.debug("[Publication] Read mode check:",{modeFromURL:e,modeFromRouter:t,modeParam:a,shouldBeReadMode:i,currentIsReadMode:V,routerIsReady:P.isReady}),i!==V&&K(i)},[P.query.mode,P.isReady]);let ee=[{title:"Full paper",type:"full",icon:"clock-three"},{title:"Short Summary",type:"summarize",icon:"clock-one"}],et=![c.xj.News,c.xj.Blog,c.xj.Other].includes(k)&&0===H,ea=e3.z.some(e=>e.slug===l.slug),ei=e9.includes(l.slug),er=(0,tn._)(ts.z.PAPER_READ_MODE),en=!!ei&&"v1"===er,{0:es,1:el}=(0,i.useState)(!1);(0,i.useEffect)(()=>{el(!0)},[]),(0,i.useEffect)(()=>{{let e=window.location.href.includes("#:~:text=");Y(e),e&&console.debug("Text fragment detected, preventing scroll restoration")}},[]);let{personalizedPosts:eo}=w(l.id.toString()),ec=(0,tl.BJ)(l),ed=eo&&eo.length>0&&eo.filter(e=>(null==e?void 0:e[0])&&!P.asPath.includes(e[0].slug)).filter(e=>!(null!=u&&u.some(t=>t.id===e[0].id))).filter(e=>!(null!=m&&m.some(t=>t.id===e[0].id))).map(e=>
8(0,A.P7)(e[0])).filter(Boolean).slice(0,3),{eventTracker:eh}=(0,eI.OF)();(0,i.useEffect)(()=>{eh("page_view",l.id.toString())},[l.id]);let{trackInteraction:eu,isLoaded:em}=(0,n.w)();return((0,i.useEffect)(()=>{let e;if(!em)return;let t=()=>{clearTimeout(e),e=setTimeout(()=>{eu({post:l,type:d.X8.Scroll,value:window.scrollY,percentValue:(0,Q.O)(window.scrollY)})},3e3)};return window.addEventListener("scroll",t),()=>{window.removeEventListener("scroll",t),clearTimeout(e)}},[l,em]),S({contentId:null==l?void 0:l.id,isLoaded:em,hasTextFragment:F}),(0,i.useEffect)(()=>{V?L.hasURLParam("mode")&&"read"===L.getURLParam("mode")||(L.appendURLParam("mode","read"),window.dispatchEvent(new Event("urlchange"))):L.hasURLParam("mode")&&(L.removeURLParam("mode"),window.dispatchEvent(new Event("urlchange")))},[V]),V&&es)?(0,I.jsx)(tQ,{post:l,parsedPaperContent:g,footnotes:x,onExitReadMode:()=>{X(!0),setTimeout(()=>{K(!1),X(!1)},0)}}):V&&!es?(0,I.jsx)("div",{className:"flex items-center justify-center min-h-screen",children:(0,I.jsx)(E.EY,{fontSize:"text-lg",color:"text-grey-600",children:"Loading read mode..."})}):(0,I.jsxs)(I.Fragment,{children:[(0,I.jsxs)("div",{id:"post-info",className:"max-w-7xl mx-auto xl:px-6 px-4 xl:mt-10 mt-6 mb-8 w-full",children:[D.length>0&&(0,I.jsx)("div",{className:"py-1 mb-3",children:(0,I.jsx)($.PostBreadcrumb,{items:D,fontSize:"text-xss xl:text-sm"})}),(0,I.jsx)("div",{id:"post-title",className:"xl:mb-6 mb-4",children:(0,I.jsx)(E.DZ,{level:1,color:"text-endeavour-500",fontSize:"xl:text-5xl text-3xl",weight:"font-extrabold",letterSpacing:"tracking-tight",lineHeight:"xl:leading-12 leading-8",children:v})}),[c.xj.Paper,c.xj.Publication].includes(l.type)&&(null==(t=l.seo)?void 0:t.desc)&&(0,I.jsx)("div",{id:"paper-description",className:" pb-6 space-y-2",children:(0,I.jsx)(E.EY,{as:"p",fontSize:"xl:text-[20px] text-lg",fontFamily:"font-source-serif-pro",lineHeight:"xl:leading-[27.5px] leading-[24px]",children:(0,I.jsx)("span",{dangerouslySetInnerHTML:{__html:null==(a=l.seo)?void 0:a.desc}})})}),(0,I.jsx)("div",{id:"separator",className:"border-t-4 border-carrot-500 w-20"}),(0,I.jsxs)("div",{id:"post-details",className:"mt-6 space-y-2",children:[(0,I.jsx)("div",{className:"space-y-1",children:(0,I.jsxs)(E.EY,{as:"p",fontSize:"text-sm",color:"text-black",children:["Published: ",(0,I.jsx)("span",{children:(0,W.C9)(l.date)})," â¢",(0,W.dW)(l.date)&&(0,I.jsx)("span",{className:"ml-1",children:(0,W.dW)(l.date)})]})}),l.modified_at&&l.modified_at!==l.date&&(0,I.jsx)("div",{className:"space-y-1",children:(0,I.jsxs)(E.EY,{as:"p",fontSize:"text-sm",color:"text-black",children:["Updated: ",(0,I.jsx)("span",{children:(0,W.C9)(l.modified_at)})," â¢",(0,W.dW)(l.modified_at)&&(0,I.jsx)("span",{className:"ml-1",children:(0,W.dW)(l.modified_at)})]})}),T.length>0&&(0,I.jsxs)(E.EY,{as:"p",fontSize:"text-sm",children:["Author",T.length>1?"s":"",":"," ",T.map((e,t)=>(0,I.jsxs)("span",{children:[e.slug?(0,I.jsx)(E.qh,{href:`/team/${e.slug}`,prefetch:!1,className:"font-bold text-[#0052ff] hover:underline",onClick:()=>(0,s.$s)(O,"author_click",`author: ${e.name}`,!1,(0,R.ct)("byline",e.slug)),children:e.name}):(0,I.jsx)("span",{className:"font-bold",children:e.name}),(0,R.P2)(t,T.length)]},e.id||t))]}),l.acf.digitalObjectIdentifier&&(0,I.jsx)("div",{className:"space-y-1",children:(0,I.jsxs)(E.EY,{as:"p",fontSize:"text-sm",color:"text-black",children:["DOI:"," ",(0,I.jsx)(E.qh,{className:"font-semibold text-[#2652ff] hover:text-[#1e40af] hover:underline cursor-pointer transition-colors duration-200",href:l.acf.digitalObjectIdentifier,target:"_blank",onClick:()=>(0,s.$s)("doi","click",`DOI: ${l.acf.digitalObjectIdentifier}`),children:l.acf.digitalObjectIdentifier})]})})]}),(0,I.jsx)(tV,{post:l,url:M,onReadModeClick:()=>{X(!0),setTimeout(()=>{K(!0),X(!1)},0)},isLoading:J,showReadModeButton:en})]}),[c.xj.Paper,c.xj.Publication].includes(l.type)&&(0,I.jsx)("div",{className:"sticky top-0 h-fit block xl:hidden",children:(0,I.jsx)(tc,{images:C,alt:v})}),(0,I.jsxs)("div",{className:"bg-white z-[1]",children:[(0,I.jsxs)("div",{id:"post-container",className:`grid grid-cols-1 ${es&&(et||U(l.authors)&&b.length>0)?"xl:grid-cols-[260px_1fr]":""} max-w-7xl sm:mx-auto w-full xl:px-6 px-4 relative gap-x-20`,children:[(et||U(l.authors)&&b.length>0)&&es&&(0,I.jsxs)("aside",{id:"table-contents",className:"xl:block hidden",children:[U(l.authors)&&b.length>0&&(0,I.jsx)("div",{id:"desktop-author-section",className:"mb-14",children:B(b,{className:"space-y-6",showBorder:!0,surface:O})}),(0,I.jsx)("div",{id:"tc-body",className:"sticky top-32",children:et&&(0,I.jsxs)("div",{id:"tc-title",children:[(0,I.jsx)(E.EY,{as:"p",color:"text-grey-800",weight:"font-bold",fontSize:"text-sm",letterSpacing:"tracking-wider",className:"uppercase",children:"Contents"}),(0,I.jsx)("div",{id:"separator",className:"border-t-2 border-carrot-500 mt-2 w-10 mb-6"}),(0,I.jsx)("div",{className:"flex flex-col space-y-2 overflow-y-auto h-[calc(100vh-8rem-81px-50px)]",children:(0,I.jsx)($.PostToC,{content:g,postType:k,postTitle:v,showFAQs:ea})})]})})]}),(0,I.jsxs)("main",{id:"post-content",className:"mx-auto mt-10 xl:max-w-4xl w-full",children:[N&&(0,I.jsx)(tL,{changelog:N}),_&&(0,I.jsx)(tg,{archive:_}),(0,I.jsxs)("div",{className:" bismillah-container xl:max-w-xl mb-6",children:[(0,I.jsx)(E.EY,{as:"p",color:"text-grey-900",weight:"font-semibold",fontSize:"text-2xl",className:"text-center",children:"Ø¨ÙØ³ÙÙ
٠اÙÙÙÙ Ø§ÙØ±ÙÙØÙÙ
Ù°ÙÙ Ø§ÙØ±ÙÙØÙÙÙÙ
Ù"}),(0,I.jsx)(E.EY,{as:"p",fontSize:"text-xs",fontFamily:"font-source-serif-pro",color:"text-grey-800",lineHeight:"leading-relaxed",className:"mt-4 text-center",children:"In the name of God, the Most Gracious, the Most Merciful."})]}),[c.xj.Paper,c.xj.Publication].includes(l.type)&&(0,I.jsxs)("div",{id:"reading-mode-tabs",className:"xl:flex xl:gap-x-20 xl:mb-14 mb-10 mt-10",children:[(0,I.jsxs)("div",{className:"w-full",children:[l.acf.paperAudio&&(0,I.jsx)("div",{className:e6.includes(l.slug)?"mb-6":"mb-10",children:(0,I.jsx)($.PostAudioPlayer,{title:v,post:l})}),l.acf.paperAudio&&e6.includes(l.slug)&&(0,I.jsx)("div",{className:"mb-10",children:(0,I.jsx)(to,{})}),ec&&0===H&&(0,I.jsx)($.KeyTakeaways,{keyTakeaways:ec}),l.summaryHtml&&(0,I.jsx)(E.tU,{ariaLabel:"reading mode",onChange:e=>{(0,s.$s)("paper_summary","click",`tab: ${e} title: ${ee[e].title} paperTitle: ${l.title}`),z(e)},value:H,className:"px-0",children:ee.map((e,t)=>(0,I.jsx)(E.Xb,{as:"summarize"===e.type?"h2":void 0,label:e.title,labelSize:"xl:text-lg",type:"donate",value:t,className:"w-1/2",icon:e.icon},e.type))})]}),(0,I.jsx)("div",{className:"xl:w-72"})]}
8),(0,I.jsx)(tI,{content:g,isSummaryMode:1===H,summary:null==l?void 0:l.summaryHtml,showPaperFAQs:ea,type:k,relatedItems:o,trendingPapers:m,editorsPickPapers:p,similarPapers:u,footnotes:x,personalizedPosts:ed,post:l,similarTopicPostsData:y}),(0,I.jsx)("div",{id:"separator",className:"border-t-2 border-carrot-500 w-10"}),(0,I.jsxs)("div",{id:"post-footer",className:"mb-9 space-y-6 mt-6",children:[(0,I.jsx)(tV,{post:l,url:M,onReadModeClick:()=>{X(!0),setTimeout(()=>{K(!0),X(!1)},0)},isLoading:J,showReadModeButton:en}),U(l.authors)&&b.length>0&&(0,I.jsx)("div",{id:"mobile-author-section",className:"xl:hidden",children:B(b,{className:"space-y-6",showBorder:!0,surface:O})}),(0,I.jsx)(eJ,{tags:j}),(0,I.jsx)(tM,{})]}),[c.xj.Paper,c.xj.Publication].includes(l.type)&&(0,I.jsx)(tp,{post:l})]})]}),(null==q?void 0:q.length)>0&&(0,I.jsx)(tG,{relatedData:q,type:k}),(null==h?void 0:h.length)>0&&(0,I.jsxs)("div",{className:"px-6 max-w-7xl mx-auto w-full pb-20",children:[(0,I.jsxs)("div",{className:"xl:block hidden",children:[(0,I.jsxs)("div",{className:"xl:my-10 mt-10",children:[(0,I.jsx)($.SectionTitle,{title:"Read Next",isBorder:!1,isSpacing:!1}),(0,I.jsx)("div",{className:"border-b-2 border-gray xl:mt-4 mt-6"})]}),(0,I.jsx)(tZ,{posts:h,analytic:"paper_read_next",numberOfPost:"5"})]}),(0,I.jsx)("div",{className:"xl:hidden",children:(0,I.jsx)(t$.A,{title:"Read Next",posts:h,analytic:"paper_read_next"})})]}),et&&(0,I.jsx)(tY,{content:g,postType:k,postTitle:v,showFAQs:ea})]})]})};var tJ=a(4797);let tX=e=>{let{eventName:t,source:a}=e,{0:r,1:n}=(0,i.useState)(!1),{register:l,handleSubmit:o,errors:c,formState:d,reset:u}=(0,th.mN)({mode:"onChange"}),m=async e=>{n(!0),(0,s.$s)(t,"subscribe"),(0,e8.h6)("Subscribe");let[a]=await (0,td.r)("/api/v1/hs-forms/newsletter",{email:e.email,yaqeen_subscriber_source:e.yaqeen_subscriber_source,pageUri:window.location.href,pageName:t});n(!1),a?(0,tJ.ge)("paper_subscribe_cta"==t?"Thank you! You're all signed up for paper updates.":"Successfully subscribed to Newsletter",{closeButton:!0,autoClose:6e3}):(n(!1),(0,tJ.ge)("Error while subscribing. Please try again.",{closeButton:!0,autoClose:6e3})),u()};return(0,I.jsxs)("div",{children:[r&&(0,I.jsx)(h.p8,{}),(0,I.jsxs)("div",{className:"subscribe-form",children:[(0,I.jsx)("form",{method:"post",onSubmit:o(m),children:(0,I.jsxs)("div",{className:"flex flex-col",children:[(0,I.jsxs)("div",{className:"grow mb-2",children:[(0,I.jsx)("input",{"aria-label":"Email",className:"grow w-full leading-normal border h-10 border-grey-light rounded px-3 relative text-grey-800 border-gray-200",placeholder:"Email",type:"email",name:"email",ref:l({required:"Please enter your email",pattern:{value:/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i,message:"Invalid email address"}})}),(0,I.jsx)("input",{type:"hidden",name:"yaqeen_subscriber_source",value:a,ref:l({required:!1})})]}),(0,I.jsx)("div",{children:(0,I.jsx)(E.$n,{type:"submit",isDisabled:!d.isValid,className:`${d.isValid?"bg-carrot-500 hover:bg-carrot-600":"bg-carrot-800"} px-4 font-bold py-1.5 flex items-center justify-center whitespace-nowrap rounded w-full`,children:(0,I.jsx)(E.EY,{color:"text-white",weight:"font-bold",children:"Subscribe"})})})]})}),c.email&&(0,I.jsx)(E.EY,{color:"text-red-500",as:"p",className:"xl:text-left text-center",children:c.email.message}),(0,I.jsx)("div",{className:"mt-3",children:(0,I.jsxs)(E.EY,{as:"p",color:"text-grey-800",fontSize:"text-xs",className:"xl:text-left text-center",lineHeight:"leading-tight-1",children:["By subscribing, you agree to our"," ",(0,I.jsx)(E.qh,{href:"/privacy-policy",target:"_blank",className:"underline decoration-grey-800 hover:text-grey-900",children:"Privacy Policy"})]})})]})]})},t0=()=>(0,I.jsx)("div",{id:"subscribe-cta",className:"px-4 py-4 w-full min-w-[15rem] xl:rounded rounded-xl",style:{background:"rgb(255,249,230)"},children:(0,I.jsxs)("div",{className:"w-auto",children:[(0,I.jsxs)("div",{className:"xl:mb-3",children:[(0,I.jsx)(E.DZ,{fontSize:"text-xl",weight:"font-extrabold",color:"text-gray-900",lineHeight:"leading-7",className:"mb-1 xl:text-left text-center",children:"Seek beneficial knowledge."}),(0,I.jsx)(E.EY,{as:"p",fontSize:"text-sm",color:"text-gray-900",className:"mb-3 xl:text-left text-center",children:"Donât miss on new papers!"})]}),(0,I.jsx)("div",{children:(0,I.jsx)(tX,{eventName:"paper_subscribe_cta",source:ee.xY.PAPER_PAGE})})]})});var t1=a(17325),t2=a(77572),t4=a(17199),t5=a(16192),t3=a(41048);let t6="absolute z-10 max-w-[344px] max-h-[193px] p-4 bg-white rounded-lg shadow justify-start items-start gap-5",t9="relative overflow-y-auto w-full h-full font-normal font-source-serif-pro text-sm leading-5 max-w-[312px] max-h-[157px] break-words",t8=e=>{let{title:t,children:a}=e;return(0,I.jsx)(t3.z,{title:t,anchorClassName:"font-normal text-blue-700 font-proxima-nova cursor-pointer group inline-flex items-center rounded-md hover:text-opacity-100 focus:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-opacity-75",desktopLabel:`[${t}
8]`,mobileLabel:t,placeholderLabel:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsxs)("span",{className:"hidden md:inline",children:["[",t,"]"]}),(0,I.jsx)("span",{className:"inline md:hidden",children:t})]}),desktopPanelClassName:t6,desktopContentClassName:t9,mobilePanelClassName:t6,mobileContentClassName:t9,children:a})};var t7=a(66135),ae=a(61300),at=a(61381);function aa(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,i)}return a}let ai=(0,at.zn)({Popover:e=>(0,I.jsx)(t8,function(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?aa(Object(a),!0).forEach(function(t){(0,z.A)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):aa(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}({},e)),styleContent:e=>al(as(e))}),ar=(0,at.Zh)(ai),an=e=>{let{paragraphs:t,trendingPapers:a,editorsPickPapers:i,similarPapers:r,footnotes:n,isCustomElement:s=!1}=e;return t.map((e,t)=>{let l=(0,tx.h5)(e,t),o=((e,t,a,i,r,n)=>{let s=e.trim().split(ae.sS).join(""),l=(0,ae.ld)(e.trim());if(l)return(0,I.jsx)("div",{className:"mb-6",children:(0,I.jsx)(E.$U,{elementType:"iframe",aspectRatio:"aspect-w-16 aspect-h-9",title:"featured",src:`https://www.youtube.com/embed/${l}`,frameBorder:"0",height:"100%",allow:"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})},t);let{tagName:o,attributes:c}=(0,tx.ED)(s),d=eO().load(s)("div.wp-block-image > figure");
8if(d.length)return(0,I.jsx)($.ConvertImage,{html:d.html()});let h=eO().load(s),u=h('sup > a[href^="#ftnt"]');switch(u.length>0&&(u.each((e,t)=>{h(t).parent().replaceWith(t)}),s=h("html body").html()),o){case"h3":return(0,I.jsx)("h3",{className:"text-xl font-semibold font-source-serif-pro mb-2 text-gray-900 tracking-tight-1 leading-snug",dangerouslySetInnerHTML:{__html:(0,tx.R3)(s.replace(/<\/?strong>/gi,""),o)}},t);case"blockquote":return(0,I.jsx)(I.Fragment,{children:(0,I.jsxs)("div",{className:"flex gap-10 py-5",children:[(0,I.jsx)("div",{className:"border-l-4 border-carrot-500"}),(0,I.jsx)("blockquote",{className:"text-lg xl:text-xl text-black font-semibold tracking-tight-1 xl:leading-normal leading-snug space-y-5",children:(0,t4.Ay)((0,tx.R3)(s,o))},t)]})});case"ol":return(0,I.jsx)(t7.A,{as:"ol",isCustomElement:n,children:(0,t4.Ay)((0,tx.R3)(s,o))},t);case"ul":return(0,I.jsx)(t7.A,{as:"ul",isCustomElement:n,children:(0,t4.Ay)((0,tx.R3)(s,o))},t);case"span":return(0,I.jsx)("span",{dangerouslySetInnerHTML:{__html:(0,tx.R3)(s,o)}},t);case"figure":{let e=eO().load(s);return e("table").length>0?(0,I.jsx)("div",{className:"mb-5",children:(0,t4.Ay)((0,tx.M$)(e))},t):(0,I.jsx)($.ConvertImage,{html:(0,tx.R3)(s,o)})}case"table":{let e=eO().load(s);return(0,I.jsx)("div",{className:"mb-5 overflow-scroll",children:(0,t4.Ay)((0,tx.M$)(e))},t)}case"img":return(0,I.jsx)($.ConvertImage,{html:e.trim()});case"donate-cta":return(0,I.jsx)($.DonateCTA,{});case"subscribe-cta":return(0,I.jsx)("div",{children:(0,I.jsx)(t0,{})});case"trending-papers":return(0,I.jsx)("div",{children:(0,I.jsx)("div",{className:"xl:hidden",children:a&&(0,I.jsx)(t$.A,{title:"Trending papers",posts:a,analytic:"trending_papers"})})});case"editorspick-papers":return(0,I.jsx)("div",{children:(0,I.jsx)("div",{className:"xl:hidden",children:i&&(0,I.jsx)(t$.A,{title:"Editor's Picks",posts:i,analytic:"editorspick_papers"})})});case"similar-papers":return(0,I.jsx)("div",{children:(0,I.jsx)("div",{className:"xl:hidden",children:!n&&r&&(0,I.jsx)(t$.A,{title:"Explore similar papers",posts:r,analytic:"similar_papers"})})});case"pillar":return(0,I.jsx)("div",{className:"pt-5",children:(0,I.jsx)(t5.A,{url:c.url,title:c.title,description:c.description})});default:let m=eO().load(s);if(m('p a[href^="#ftnt_ref"]').length>0)return(0,I.jsx)("div",{className:"font-source-serif-pro text-sm text-grey-900",dangerouslySetInnerHTML:{__html:(0,tx.R3)(s,o)}},t);if(s.includes("<callout>")&&s.includes("</callout>"))return(0,I.jsx)("div",{className:"text-grey-900 font-source-serif-pro font-semibold sm:text-4xl xs:text-2xl !my-12 leading-tight",children:(0,t4.Ay)((0,tx.R3)(s.replace(/<callout>/g,"").replace(/<\/callout>/g,"").replace(/ /g," "),o))},t);let p=m("p").text().startsWith("\xa7");if(!n&&p){let{translationNumber:e,rest:a}=(0,tx.jn)(s);return(0,I.jsx)($.Translation,{translationNumber:e,content:(0,t4.Ay)((0,tx.R3)(a,o))},t)}let g=n?"text-grey-800":"text-grey-900",f=n?"":"font-source-serif-pro";return(0,I.jsx)("div",{className:`text-base xl:text-lg xl:leading-8 leading-relaxed tracking-normal font-normal break-words ${g} ${f}`,children:(0,t4.Ay)((0,tx.R3)(s,o))},t)}})(e,l,a,i,r,s);return(0,at.ZV)(o,"#ftnt")?ar(o,n):o})},as=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default",a="default"===t?"url":"url-dark-mode-wiki",i=eO().load(e);return i("a").addClass(a),i('a[href*="#ftnt"]').removeClass(a),i('a[href*="#ftnt_ref"]').removeClass(a),i("html body").html()},al=e=>{let t=eO().load(e);return t('a[href*="#ftnt"]').addClass("font-proxima-nova"),t('a[href*="#ftnt_ref"]').addClass("font-proxima-nova"),t('a[href*="#ftnt"]').each((e,a)=>(0,tx.kJ)(t,t(a))),t('a[href*="#ftnt_ref"]').each((e,a)=>(0,tx.kJ)(t,t(a))),t("html body").html()};var ao=a(59860),ac=a(46824);let ad=["children","size"];function ah(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,i)}return a}function au(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};
8t%2?ah(Object(a),!0).forEach(function(t){(0,z.A)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):ah(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}let am=e=>{let{children:t,size:a}=e,r=(0,ao.A)(e,ad),{0:n,1:s}=(0,i.useState)(0);return(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(ac.A,au(au({index:n,onChangeIndex:e=>s(e),style:{overflow:"visible"},className:"w-40",size:a,enableMouseEvents:!0},r),{},{children:t}))})},ap=e=>{let{posts:t,analytic:a}=e;return(0,I.jsx)("div",{className:"overflow-hidden",children:(0,I.jsx)(am,{size:t.length,children:t.map(e=>(0,I.jsxs)("div",{className:"overflow-hidden",children:[(0,I.jsx)(E.qh,{href:e.slug,children:(0,I.jsx)(m(),{loader:F.R2,width:147,height:84,src:e.featured_image,alt:e.title})}),(0,I.jsx)(E.qh,{className:"text-xss text-blue-900 pt-1 block",href:`/topic/${e.topic.filter(e=>0!==e.parent)[0].slug}`,onClick:()=>{(0,s.$s)(a,"click",`item_name: ${e.title}, type: Article`)},children:(0,I.jsx)($.CardCategory,{category:e.topic.filter(e=>0!==e.parent)[0].name,size:"text-xss"})}),(0,I.jsx)(E.EY,{as:"p",fontSize:"text-xs",lineHeight:"leading-snug pr-2",color:"text-black",weight:"font-bold",children:e.title})]},(0,ty.Yv)(e.title)))})})},ag=e=>{let{posts:t,analytic:a}=e;return(0,I.jsx)("div",{className:"flex flex-col gap-y-4",children:t.map(e=>(0,I.jsx)(I.Fragment,{children:(0,I.jsxs)("div",{className:"flex-1 flex border-b-1 pb-2 border-grey-200",children:[(0,I.jsx)("div",{className:"relative w-2/6",children:(0,I.jsx)(E.qh,{href:e.slug,passHref:!0,onClick:()=>{(0,s.$s)(a,"click",`item_name: ${e.title}, type: Article`)},children:(0,I.jsx)(m(),{loader:F.R2,src:e.featured_image,alt:e.title,layout:"fixed",objectFit:"cover",width:67,height:67,className:"outline-greyish"})})}),(0,I.jsxs)("div",{className:"flex-1 flex flex-col",children:[(0,I.jsx)(E.qh,{href:`/topic/${e.topic.filter(e=>0!==e.parent)[0].slug}`,onClick:()=>{(0,s.$s)(a,"click",`item_name: ${e.title}, type: Article`)},passHref:!0,prefetch:!1,children:(0,I.jsx)($.CardCategory,{category:e.topic.filter(e=>0!==e.parent)[0].name,size:"text-xss"})}),(0,I.jsx)(E.qh,{target:"_blank",href:e.slug,passHref:!0,onClick:()=>{(0,s.$s)(a,"click",`item_name: ${e.title}, type: Article`)},children:(0,I.jsx)($.CardTitle,{title:e.title,level:5,weight:"font-bold",fontSize:"text-xs"})})]})]})}))})},af=e=>{let{content:t,relatedItems:a,trendingPapers:r,editorsPickPapers:n,similarPapers:s,footnotes:l}=e,o=(0,ty.Lo)([a&&(a.series||a.collection)?"pt-8 xl:pt-10":""]),c=(0,te.sr)(t),d=(0,i.useRef)(null),h=(0,i.useRef)(null),u=(0,i.useRef)(null),{0:m,1:p}=(0,i.useState)([1]),{0:f,1:x}=(0,i.useState)(null);return(0,i.useEffect)(()=>{(0,g.ee)(),Array.from(document.getElementsByTagName("sup")).forEach(e=>{e.addEventListener("click",()=>{m.includes(t.length-1)||p([...m,t.length-1])})}),Array.from(document.querySelectorAll('[href^="#ftnt_ref"]')).forEach(e=>{e.onclick=()=>{var t;let a=null==(t=(0,tJ.OY)(document.getElementById(`${e.hash.slice(1)}`),"section"))?void 0:t.id;m.includes(parseInt(a))||p([...m,parseInt(a)])}})}),(0,i.useEffect)(()=>{u.current&&!f?x(u.current.getBoundingClientRect().top+ +window.scrollY):h.current&&!f?x(h.current.getBoundingClientRect().top+ +window.scrollY):d.current&&!f&&x(d.current.getBoundingClientRect().top+ +window.scrollY)},[]),(0,I.jsxs)("article",{className:"divide-y divide-grey-100",children:[(0,I.jsx)(e0,{relatedItems:a}),(0,I.jsxs)("div",{className:`${o??""} flex flex-col xl:gap-14 gap-6`,children:[null==t?void 0:t.map((e,t)=>e.length<=1?(0,I.jsx)(I.Fragment,{}):((e,t,a,i,o)=>{let g,f=t[0].trim().replace(/<\/?strong>/gi,""),x=f.includes("<commentary>"),y=/<\/?translation>/.test(f);y&&(g=(0,tx.ED)(f));let b=x||y;f=x?f.replace(/<\/?commentary>/gi,""):f;let v=0===(f=y?f.replace(/<\/?translation>/gi,""):f).length;return v?null:(0,I.jsxs)("section",{id:`section-${e}`,className:"flex xl:flex-row flex-col xl:gap-10",children:[(0,I.jsx)("div",{className:"w-60"}),(0,I.jsx)("div",{className:"max-w-xl mx-auto w-full",children:!b&&!v&&""!==f&&((e,t,a)=>(0,I.jsxs)(E.nD,{expanded:m.includes(a),onChange:(e=>(t,a)=>{m.includes(e)?p(m.filter(t=>t!==e)):p([...m,e].sort())})(a),children:[(0,I.jsx)(E.Xo,{"aria-controls":`${a}-panel-content`,id:`${a}-panel-header`,className:"items-stretch border-b border-gray-200 xl:pb-4 pb-1",expandIcon:(0,I.jsx)(ek.g,{icon:["fas","chevron-down"],size:"lg",className:"bold text-black"}),children:(0,I.jsx)(E.DZ,{color:"text-gray-900",fontSize:"xl:text-2xl text-xl",weight:"font-semibold",lineHeight:"leading-tight",children:(0,I.jsx)("span",{dangerouslySetInnerHTML:{__html:e}})})}),(0,I.jsx)(E.vr,{children:(0,I.jsx)("div",{className:"content pt-5",children:(0,I.jsx)(E.EY,{as:"div",fontFamily:"font-source-serif-pro",fontSize:"text-base xl:text-lg",className:"break-words mb-4 space-y-5",children:an({paragraphs:t.slice(1),trendingPapers:r,editorsPickPapers:n,similarPapers:s,footnotes:l})})})})]}))(f,t,e)}),(0,I.jsxs)("div",{className:"xl:w-60",children:[x&&(0,I.jsx)($.Commentary,{title:f,content:an({paragraphs:t.slice(1),trendingPapers:a,editorsPickPapers:i,similarPapers:o,footnotes:l,isCustomElement:x})},e),y&&(0,I.jsx)("div",{id:`content-${e}`,className:"mb-4 space-y-5",children:(0,I.jsx)($.Translation,{translationNumber:g.attributes.number,content:an({paragraphs:t.slice(1),trendingPapers:a,editorsPickPapers:i,similarPapers:o,footnotes:l,isCustomElement:y})},e)}),e===c.subscribePaperCta&&(0,I.jsx)("div",{className:"hidden xs:block mb-9",children:(0,I.jsx)(t0,{})}),o&&e===c.similarPapers&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("div",{ref:u}),(0,I.jsxs)("div",{className:"mt-14 mb-9 xl:hidden max-w-xl mx-auto w-full",children:[(0,I.jsx)(E.DZ,{level:1,fontSize:"text-lg",color:"text-black",className:"mb-3",weight:"font-semibold",children:"Explore similar papers"}),(0,I.jsx)(ap,{posts:o,analytic:"similar_papers"})]})]}),i&&e===c.editorsPick&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("div",{ref:h}),(0,I.jsxs)("div",{className:"mt-14 mb-9 xl:hidden max-w-xl mx-auto w-full",children:[(0,I.jsx)(E.DZ,{level:1,fontSize:"text-lg",color:"text-black",className:"mb-3",weight:"font-semibold",children:"Editor's picks"}),(0,I.jsx)(ap,{posts:i,analytic:"paper_read_next"})]})]}),a&&e===c.trendingPapers&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("div",{ref:d}),(0,I.jsxs)("div",{className:"mt-14 mb-9 xl:hidden max-w-xl mx-auto w-full",children:[(0,I.jsx)(E.DZ,{level:1,fontSize:"text-lg",color:"text-black",className:"mb-3",weight:"font-semibold",children:"Trending papers"}),(0,I.jsx)(ap,{posts:a,analytic:"trending_papers"})]})]})]})]},e)})(t,e,r,n,s)),f>0&&(0,I.jsxs)("div",{className:"absolute right-[4.5rem] xl-lg:right-[18.5rem] w-60 hidden lg:block",style:{to
8p:f},children:[r&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("div",{className:"mb-4 xl:block hidden",children:(0,I.jsx)(E.DZ,{level:1,fontSize:"text-lg",weight:"font-bold",children:"Trending papers"})}),(0,I.jsx)("div",{className:"xl:block hidden",children:(0,I.jsx)(ag,{posts:r,analytic:"trending_papers",numberOfPost:"3",isSidebar:!0})})]}),n&&(0,I.jsxs)("div",{className:"xl:block hidden mt-10",children:[(0,I.jsx)("div",{className:"mb-4",children:(0,I.jsx)(E.DZ,{level:1,fontSize:"text-lg",color:"text-black",weight:"font-semibold",children:"Editor's picks"})}),(0,I.jsx)(ag,{posts:n,analytic:"editorspick_papers",numberOfPost:"4"})]}),s&&(0,I.jsx)(I.Fragment,{children:(0,I.jsxs)("div",{className:"xl:block hidden mt-10",children:[(0,I.jsx)(E.DZ,{level:1,fontSize:"text-lg",weight:"font-semibold",className:"mb-4 xl:block hidden",children:"Explore similar papers"}),(0,I.jsx)("div",{children:(0,I.jsx)(ag,{posts:s,analytic:"similar_papers",numberOfPost:"3"})})]})})]})]})]})};var ax=a(62255);let ay=e=>{let{posts:t,title:a,analytic:i,titleSize:r}=e,n=(0,te.z9)(a);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsxs)("div",{id:n,className:"xl:my-10 mt-10",children:[(0,I.jsx)(ax.A,{title:a,isBorder:!1,isSpacing:!1,titleSize:r}),(0,I.jsx)("div",{className:"xl:border-b-2 border-b-1 border-gray xl:mt-4 mt-3"})]}),(0,I.jsx)("div",{className:"my-6",children:(0,I.jsx)("div",{className:"grid xl:grid-cols-5 grid-cols-1 gap-x-6 gap-y-10",children:t.map(e=>(0,I.jsx)("div",{children:(0,I.jsxs)("div",{className:"grid grid-cols-3 gap-x-4",children:[(0,I.jsx)(E.qh,{href:e.slug,onClick:()=>{(0,s.$s)(i,"click",`item_name: ${e.title}`)},children:(0,I.jsx)("div",{className:"aspect-w-16 aspect-h-9",children:(0,I.jsx)(m(),{loader:F.R2,src:e.featured_image,alt:e.title,layout:"fill",objectFit:"cover"})})}),(0,I.jsxs)("div",{className:"flex-1 flex flex-col justify-center col-span-2",children:[(0,I.jsx)(E.qh,{href:e.slug,passHref:!0,className:"mb-1",onClick:()=>{(0,s.$s)(i,"click",`item_name: ${e.title}`)},children:(0,I.jsx)($.CardCategory,{category:e.topic.filter(e=>0!==e.parent)[0].name,size:"text-xss"})}),(0,I.jsx)(E.qh,{href:e.slug,onClick:()=>{(0,s.$s)(i,"click",`item_name: ${e.title}`)},children:(0,I.jsx)(E.EY,{as:"p",color:"text-y-black",weight:"font-bold",letterSpacing:"tracking-tight-2",lineHeight:"leading-tight",fontSize:"text-sm",className:"mb-1",children:e.title})}),(0,I.jsx)($.CardAuthor,{authors:e.authors,fontSize:"text-xs",isSpacing:!1})]})]})},e.title))})})]})};var ab=a(54030),av=a(95311),aw=a(14742),aj=a(28823);function ak(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,i)}return a}function aN(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?ak(Object(a),!0).forEach(function(t){(0,z.A)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):ak(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}let a_=e=>{let{url:t,title:a,logTitle:i,hasDownloadLink:r,handleDownload:n}=e,l=e=>{(0,s.$s)(i,"share",`Share via ${e}: ${t}`)},o=()=>{(0,tJ.lW)(t),l("Copy URL")};return(0,I.jsxs)("div",{className:"grid grid-cols-2",children:[(0,I.jsx)("div",{className:"col-span-1",children:(0,I.jsxs)("div",{id:"share-platforms",className:"flex items-center space-x-2",children:[(0,I.jsx)(aj.uI,{url:t,title:a,onClick:()=>l("Facebook"),children:(0,I.jsx)("div",{className:"inline-flex px-1.5 py-2 border border-grey-200 rounded hover:bg-grey-200",children:(0,I.jsx)(ek.g,{icon:["fab","facebook-f"],className:"h-4 w-4 text-fb text-lg",fixedWidth:!0})})}),(0,I.jsx)(aj.r6,{url:t,title:a,onClick:()=>l("Twitter"),style:null,children:(0,I.jsx)("div",{className:"inline-flex p-1.5 py-2 border border-grey-200 rounded hover:bg-grey-200",children:(0,I.jsx)(ek.g,{icon:["fab","x-twitter"],className:"h-4 w-4 text-twitter text-lg",fixedWidth:!0})})}),(0,I.jsx)(aj.Kz,{url:t,title:a,onClick:()=>l("WhatsApp"),children:(0,I.jsx)("div",{className:"inline-flex p-1.5 py-2 border border-grey-200 rounded hover:bg-grey-200",children:(0,I.jsx)(ek.g,{icon:["fab","whatsapp"],className:"h-4 w-4 text-whatsapp text-lg",fixedWidth:!0})})}),(0,I.jsx)(E.$n,{onPress:o,className:"hidden xl:inline-flex p-1.5 py-2 border border-grey-200 rounded hover:bg-grey-200","aria-label":"Copy Link",children:(0,I.jsx)(ek.g,{icon:["far","link"],className:"h-4 w-4 text-gray-900 text-lg",fixedWidth:!0})}),(0,I.jsx)(aj.Ot,{url:t,subject:a,className:"xl:flex hidden space-x-3 group-hover:bg-carrot-400",children:(0,I.jsx)("div",{className:"inline-flex p-1.5 py-2 border border-grey-200 rounded hover:bg-grey-200",children:(0,I.jsx)(ek.g,{icon:"envelope",className:"h-4 w-4 text-gray-900",fixedWidth:!0})})}),(0,I.jsxs)(aS,{className:"inline-flex items-center rounded bg-white p-1.5 py-2 border border-grey-200 xl:hidden",btnText:(0,I.jsx)(ek.g,{icon:"share",className:"text-grey-900",fixedWidth:!0}),children:[(0,I.jsxs)(E.$n,{onPress:o,className:"inline-flex p-2.5 hover:bg-grey-200 items-center space-x-2","aria-label":"Copy Link",children:[(0,I.jsx)(ek.g,{icon:["far","link"],className:"h-4 w-4 text-gray-900 text-sm",fixedWidth:!0}),(0,I.jsx)(E.EY,{as:"p",weight:"font-semibold",lineHeight:"leading-none",children:"Copy Link"})]}),(0,I.jsx)(aj.Ot,{url:t,subject:a,className:"flex group-hover:bg-carrot-400 w-full",children:(0,I.jsxs)("div",{className:"inline-flex p-2.5 hover:bg-grey-200 space-x-2",children:[(0,I.jsx)(ek.g,{icon:"envelope",className:"h-4 w-4 text-gray-900 text-sm",fixedWidth:!0}),(0,I.jsx)(E.EY,{as:"p",weight:"font-semibold",lineHeight:"leading-none",children:"Email"})]})})]})]})}),(0,I.jsx)("div",{className:"col-span-1",children:(0,I.jsx)("div",{className:"flex justify-end",children:r&&(0,I.jsx)("div",{className:"inline-flex px-1.5 py-2 border border-grey-200 rounded hover:bg-grey-200",children:(0,I.jsx)(ek.g,{icon:"file-pdf",className:"h-4 w-4 text-fb text-lg text-black",fixedWidth:!0,onClick:n})})})})]})},aS=e=>{let{btnText:t,className:a,children:r}=e,n=(0,aw.T)({}),s=(0,i.useRef)(),l=(0,i.useRef)(),{triggerProps:o,overlayProps:c}=(0,av.oJ)({type:"dialog"},n,s),{overlayProps:d}
8=(0,av.v8)({targetRef:s,overlayRef:l,placement:"top",offset:5,isOpen:n.isOpen}),{buttonProps:h}=(0,ab.s)({onPress:()=>n.open(),"aria-label":"More Options"},s);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("button",aN(aN(aN({},h),o),{},{className:a,ref:s,children:t})),(0,I.jsx)(av.so,{children:(0,I.jsx)(E.AM,aN(aN(aN({},c),d),{},{ref:l,title:"Share post",isOpen:n.isOpen,onClose:n.close,role:"dialog",modalClassName:"bg-white shadow p-4",children:r}))})]})},aA=e=>{let{tags:t}=e;if(!Array.isArray(t))return null;let a=["post_tag"],i=t.filter(e=>a.includes(e.type)).filter(e=>!eQ.jT.map(eQ.tL).includes((0,eQ.tL)(e.name)));return i.length>0?(0,I.jsx)("div",{id:"article-tags",children:(0,I.jsxs)("div",{className:"grid grid-cols-9",children:[(0,I.jsx)("div",{className:"col-span-1",children:(0,I.jsx)(E.EY,{weight:"font-semibold",fontSize:"text-sm",children:"Tags:"})}),(0,I.jsx)("div",{className:"col-span-8 pl-1",children:(0,I.jsx)("div",{className:"flex flex-wrap",children:i.map(e=>{let{id:t,name:a,slug:i}=e;return(0,I.jsx)(E.qh,{href:`/tag/${i}`,className:"flex mr-2 mb-3 bg-jordy-100 rounded px-3 py-[2px] capitalize",children:(0,I.jsx)(E.EY,{weight:"font-semibold",fontSize:"text-sm",children:ep().decode(a)})},t)})})})]})}):null},aC=eP()(()=>Promise.resolve().then(a.bind(a,67579)).then(e=>e.DownloadPDFButton),{loadableGenerated:{webpack:()=>[67579]}}),aP=eP()(()=>Promise.resolve().then(a.bind(a,57908)).then(e=>e.RelatedData),{loadableGenerated:{webpack:()=>[57908]}}),aT=eP()(()=>Promise.resolve().then(a.bind(a,63840)),{loadableGenerated:{webpack:()=>[63840]}}),aO=e=>{let{post:t,url:a}=e,{title:i}=t,{downloadLink:r,hasDownloadLink:n,isManualDownloadRequired:s,handleDownloadClick:l}=tr(t);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsxs)("div",{id:"post-actions",className:"flex justify-between space-x-2 mt-6",children:[(0,I.jsxs)("div",{className:"inline-flex",children:[(0,I.jsx)(C.Tx,{post:t}),(0,I.jsx)($.PostSharePlatformDropdown,{url:a,title:i,logTitle:`Paper - ${i}`,hideLabel:!0}),(0,I.jsx)($.OpenInAppButton,{postId:t.id,title:i,url:a})]}),(0,I.jsx)("div",{className:"flex space-x-2",children:n&&(0,I.jsx)(aC,{handleDownloadClick:l,downloadLink:r})})]}),s&&(0,I.jsx)("div",{className:"px-4 py-4 flex justify-center md:justify-end",children:(0,I.jsx)(E.EY,{weight:"font-semibold",children:(0,I.jsxs)("em",{children:["Your download should begin automatically. Didn't work?"," ",(0,I.jsx)(E.qh,{href:r,className:"url",target:"_blank",children:"Try again."})," "]})})})]})},aE=e=>{let{post:t,relatedItems:a,readNextPosts:r,similarPapers:n,trendingPapers:s,editorsPickPapers:l,parsedPaperContent:o,relatedPosts:c,footnotes:d}=e,{title:h,tags:u,type:m,changelog:p,archive:g,modified_at:f,images:x,date:y}=t,{country:b}=(0,tq.A)(),v=(0,t2.S)(t.authors,b),w=(0,G.R)(t),j=window.location.href,k=c??(0,Z.A)(a),{hasDownloadLink:N,handleDownloadClick:_}=tr(t),{0:S,1:A}=(0,i.useState)(null),C=(0,i.useRef)(null);return(0,i.useEffect)(()=>{let e=()=>{C.current&&A(C.current.getBoundingClientRect().top+window.scrollY+18)};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]),(0,I.jsxs)(I.Fragment,{children:[(0,I.jsxs)("div",{id:"post-info",className:"max-w-7xl mx-auto xl:px-6 px-4 xl:mt-10 mt-6 mb-8 w-full",children:[w.length>0&&(0,I.jsx)("div",{className:"py-1 mb-3",children:(0,I.jsx)($.PostBreadcrumb,{items:w,fontSize:"text-xss xl:text-sm"})}),(0,I.jsx)("div",{id:"post-title",className:"mb-10",children:(0,I.jsx)(E.DZ,{level:1,color:"text-endeavour-500",fontSize:"xl:text-5xl text-3xl",weight:"font-extrabold",letterSpacing:"tracking-tight",lineHeight:"xl:leading-12 leading-8",children:h})}),(0,I.jsx)("hr",{id:"separator",className:"border-t-4 border-carrot-500 w-20"}),(0,I.jsxs)("div",{id:"post-details",className:"mt-6 space-y-2",children:[(0,I.jsxs)(E.EY,{as:"p",fontSize:"text-sm",children:["Published: ",(0,I.jsx)("span",{className:"text-black",children:(0,t1.p)(y)})," ⢠Updated:"," ",(0,I.jsx)("span",{className:"text-black",children:(0,t1.p)(f)})]}),(null==v?void 0:v.length)>0&&(0,I.jsxs)(E.EY,{as:"p",fontSize:"text-sm",children:["Author",v.length>
81?"s":"",":"," ",v.map((e,t)=>(0,I.jsxs)(I.Fragment,{children:[e.showLink&&(0,I.jsx)(E.qh,{href:`/team/${e.slug}`,passHref:!0,children:(0,I.jsx)("span",{className:"font-bold",children:ep().decode(e.name)})},e.id),!e.showLink&&(0,I.jsx)("span",{className:"font-bold",children:ep().decode(e.name)}),(0,R.P2)(t,v.length)]}))]})]}),(0,I.jsx)(aO,{post:t,url:j})]}),(0,I.jsx)("div",{className:"sticky top-0 h-fit",children:(0,I.jsx)(tc,{images:x,alt:h})}),(0,I.jsxs)("div",{className:"bg-white z-[1]",children:[(0,I.jsxs)("div",{className:"xl:px-0 px-4",children:[(0,I.jsxs)("div",{className:"mt-10 xl:mb-14 max-w-xl mx-auto",ref:C,children:[(0,I.jsx)(E.EY,{as:"p",color:"text-grey-900",weight:"font-semibold",fontSize:"xl:text-2xl text-xl",className:"text-center",children:"Ø¨ÙØ³ÙÙ
٠اÙÙÙÙ Ø§ÙØ±ÙÙØÙÙ
Ù°ÙÙ Ø§ÙØ±ÙÙØÙÙÙÙ
Ù"}),(0,I.jsx)(E.EY,{as:"p",fontSize:"text-xs",fontFamily:"font-source-serif-pro",color:"text-grey-800",lineHeight:"leading-relaxed",className:"mt-4 text-center xl:pb-0 pb-16",children:"In the name of God, the Most Gracious, the Most Merciful."})]}),t.acf.paperAudio&&(0,I.jsx)("div",{className:"my-14 max-w-xl mx-auto",children:(0,I.jsx)($.PostAudioPlayer,{title:h,post:t})}),p&&(0,I.jsx)(tL,{changelog:p}),g&&(0,I.jsx)(tg,{archive:g}),S>0&&(0,I.jsx)("div",{className:"absolute right-[4.5rem] xl-lg:right-[18.5rem] w-60 hidden lg:block",style:{to
8p:S},children:(0,I.jsx)(t0,{})}),(0,I.jsx)(af,{content:o,type:m,relatedItems:a,trendingPapers:s,editorsPickPapers:l,similarPapers:n,footnotes:d}),(0,I.jsxs)("div",{className:"max-w-xl mx-auto",children:[(0,I.jsx)("div",{id:"separator",className:"border-t-2 border-carrot-500 w-10 mt-14"}),(0,I.jsxs)("div",{id:"post-footer",className:"mb-9 space-y-6 pt-6",children:[(0,I.jsx)(a_,{url:j,title:h,logTitle:`Paper - ${h}`,handleDownload:_,hasDownloadLink:N}),(0,I.jsx)(aA,{tags:u}),(0,I.jsx)(tM,{})]})]})]}),(null==k?void 0:k.length)>0&&(0,I.jsx)(aP,{relatedData:k,type:m}),(null==r?void 0:r.length)>0&&(0,I.jsx)("div",{className:"bg-grey-10 xl:pt-10 xl:pb-14 pb-10",children:(0,I.jsxs)("div",{className:"xl:px-6 px-3 max-w-7xl mx-auto w-full ",children:[(0,I.jsxs)("div",{className:"xl:block hidden",children:[(0,I.jsxs)("div",{className:"xl:mt-6 mt-10",children:[(0,I.jsx)($.SectionTitle,{title:"Read next",isBorder:!1,isSpacing:!1}),(0,I.jsx)("div",{className:"border-b-1 border-grey-200 xl:mt-4 mt-6"})]}),(0,I.jsx)(aT,{posts:r,analytic:"paper_read_next",numberOfPost:"5"})]}),(0,I.jsx)("div",{className:"xl:hidden",children:(0,I.jsx)(ay,{title:"Read next",posts:r,analytic:"paper_read_next",titleSize:"xl:text-3xl text-2xl"})})]})})]})]})};var aI=a(69104);a(26042);let aD=e=>{var t;let{post:a,showChaptrsLink:r=!0}=e,l=(0,i.useRef)(null),{0:o,1:c}=(0,i.useState)(0),{0:h,1:u}=(0,i.useState)(!1),p=[1,1.5,2],g=null==(t=a.acf)?void 0:t.paperAudio,{trackInteraction:f,getInteraction:x}=(0,n.w)(),y=(0,i.useRef)(),b=(0,i.useCallback)(()=>{var e;return(null==(e=l.current)||null==(e=e.audio)||null==(e=e.current)?void 0:e.currentTime)??0},[]),v=(0,i.useCallback)(()=>{var e;let t=null==(e=l.current)||null==(e=e.audio)?void 0:e.current;return t&&t.duration?t.currentTime/t.duration*100:0},[]),w=(0,i.useCallback)(e=>{(0,s.$s)("audio_player",e,`title: ${a.title}, position: ${b()}`),y.current&&clearTimeout(y.current),y.current=setTimeout(()=>{["onPlay","onPause","onEnded","onSeeked"].includes(e)&&f({post:a,type:d.X8.AudioProgress,value:b(),percentValue:v()})},3e3)},[a,f,v,b]),j=(0,i.useRef)(null),k=(0,i.useRef)(0),N=(0,i.useCallback)(()=>{null!=j.current&&(k.current+=Date.now()-j.current,j.current=null)},[]),_=(0,i.useCallback)(()=>{N(),k.current>=1e3&&((0,s.$s)("audio_player","engagement_time",`title: ${a.title}`,!0,{duration_ms:k.current}),k.current=0)},[a.title,N]);return(0,i.useEffect)(()=>{let e=()=>_();return window.addEventListener("pagehide",e),()=>{window.removeEventListener("pagehide",e),y.current&&clearTimeout(y.current),_()}},[_]),(0,i.useEffect)(()=>{x(d.X8.AudioProgress).then(e=>{var t,a;let i=null==e||null==(t=e.result)||null==(t=t.score)?void 0:t.raw;i&&i>0&&null!=l&&null!=(a=l.current)&&null!=(a=a.audio)&&a.current&&(l.current.audio.current.currentTime=i)})},[x]),(0,I.jsxs)("div",{className:"rounded-lg overflow-hidden",children:[(0,I.jsxs)("div",{className:"bg-slate-100 px-4 pt-3.5 pb-3",children:[(0,I.jsx)("div",{className:"hidden",children:(0,I.jsx)(aI.A,{ref:l,preload:"none",src:g,layout:"horizontal-reverse",showJumpControls:!1,customVolumeControls:[],customControlsSection:[],customProgressBarSection:[],onPlay:()=>{w("onPlay"),j.current=Date.now(),u(!0)},onPause:()=>{w("onPause"),N(),u(!1)},onEnded:()=>{w("onEnded"),_(),u(!1)},onSeeked:()=>w("onSeeked"),onAbort:()=>{w("onAbort"),N()}})}),(0,I.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,I.jsx)("button",{onClick:()=>{var e;let t=null==(e=l.current)||null==(e=e.audio)?void 0:e.current;t&&(t.paused?t.play():t.pause())},className:"flex items-center justify-center w-5 h-5 flex-shrink-0",children:(0,I.jsx)(ek.g,{icon:h?ej.G1Y:ej.ijD,className:"text-grey-900 text-base",fixedWidth:!0})}),(0,I.jsx)("div",{className:"flex-1 h-1 bg-grey-300 rounded-full cursor-pointer relative",onClick:e=>{var t;let a=null==(t=l.current)||null==(t=t.audio)?void 0:t.current;if(!a||!a.duration)return;let i=e.currentTarget.getBoundingClientRect();a.currentTime=(e.clientX-i.left)/i.width*a.duration},children:(0,I.jsx)(aq,{playerRef:l})}),(0,I.jsx)(aM,{playerRef:l}),(0,I.jsx)("button",{onClick:()=>{var e;let t=(o+1)%p.length;c(t),null!=(e=l.current)&&null!=(e=e.audio)&&e.current&&(l.current.audio.current.playbackRate=p[t]),(0,s.$s)("audio_player","onPlayBackSpeed",`title: ${a.title}, speed: ${p[t]}x`)},className:"flex items-center justify-center bg-white/50 rounded-lg px-3 py-3 flex-shrink-0",children:(0,I.jsxs)(E.EY,{fontSize:"text-[10px]",weight:"font-bold",color:"text-black/50",children:[p[o],"x"]})})]})]}),r&&(0,I.jsxs)(E.qh,{href:"https://getchaptrs.com",className:"flex items-center justify-center gap-1.5 bg-[#f7f4ed] px-4 py-4 hover:opacity-90 transition-opacity",onClick:()=>(0,s.$s)("audio_produced_by","click","chaptrs_logo"),target:"_blank",children:[(0,I.jsx)(E.EY,{as:"span",fontSize:"text-sm",weight:"font-semibold",color:"text-grey-900",children:"Listen on the go on"}),(0,I.jsx)(m(),{loader:F.R2,src:"/static/images/chaptrs-logo.png",alt:"Chaptrs",width:69,height:16,className:"object-contain"})]})]})},aq=e=>{let{playerRef:t}=e,{0:a,1:r}=(0,i.useState)(0),n=(0,i.useRef)();return(0,i.useEffect)(()=>{let e=()=>{var a;let i=null==(a=t.current)||null==(a=a.audio)?void 0:a.current;i&&i.duration&&r(i.currentTime/i.duration*100),n.current=requestAnimationFrame(e)};return n.current=requestAnimationFrame(e),()=>{n.current&&cancelAnimationFrame(n.current)}},[t]),(0,I.jsx)("div",{className:"absolute inset-y-0 left-0 bg-grey-900 rounded-full",style:{width:`${a}%`}})},aM=e=>{let{playerRef:t}=e,{0:a,1:r}=(0,i.useState)("0:00"),{0:n,1:s}=(0,i.useState)("0:00"),l=(0,i.useRef)(),o=(e,t)=>{if(!e||isNaN(e))return t?"0:00:00":"0:00";
8let a=Math.floor(e/3600),i=Math.floor(e%3600/60),r=Math.floor(e%60);return t?`${a}:${i.toString().padStart(2,"0")}:${r.toString().padStart(2,"0")}`:`${i}:${r.toString().padStart(2,"0")}`};return(0,i.useEffect)(()=>{let e=()=>{var a;let i=null==(a=t.current)||null==(a=a.audio)?void 0:a.current;if(i){let e=!isNaN(i.duration)&&i.duration>=3600;r(o(i.currentTime,e)),s(o(i.duration,e))}l.current=requestAnimationFrame(e)};return l.current=requestAnimationFrame(e),()=>{l.current&&cancelAnimationFrame(l.current)}},[t]),(0,I.jsxs)("span",{className:"text-xs font-semibold text-gray-700 whitespace-nowrap flex-shrink-0",children:[a,"/",n]})},a$=e=>e.replace(/[{}]/g,"\\$&"),aH=e=>{var t;let{post:a}=e,{0:r,1:n}=(0,i.useState)(!1),{0:l,1:o}=(0,i.useState)("");(0,i.useEffect)(()=>{o(window.location.href.split("?")[0])},[]);let c=((e,t)=>{var a;let i=(e=>0===e.length?"":1===e.length?e[0]:2===e.length?`${e[0]}, & ${e[1]}`:`${e.slice(0,-1).join(", ")}, & ${e[e.length-1]}`)((e.authors||[]).map(e=>(e=>{let t=e.trim().split(/\s+/);if(1===t.length)return t[0];let a=["sh.","dr.","imam","sheikh","shaykh"],i=t.filter(e=>!a.includes(e.toLowerCase()));if(0===i.length)return e;let r=i[i.length-1],n=i.slice(0,-1);if(0===n.length)return r;let s=n.map(e=>`${e.charAt(0)}.`).join(" ");return`${r}, ${s}`})(e.name))),r=e.date?new Date(e.date).getFullYear():"n.d.",n=e.title.replace(/<[^>]*>/g,""),s=null==(a=e.acf)?void 0:a.digitalObjectIdentifier,l=`${i} (${r}). ${n}. Yaqeen Institute for Islamic Research.`;return s?l+=` ${s}`:t&&(l+=` ${t}`),l})(a,l);return(0,I.jsxs)("div",{className:"bg-slate-50 rounded-lg p-6 mb-8 space-y-6",children:[(0,I.jsx)("p",{className:"font-bold text-[#0052ff] text-[30px] tracking-[-0.36px] leading-[1.25]",children:"Cite this paper"}),(0,I.jsx)("div",{className:"bg-slate-100 rounded-sm px-5 py-6",children:(0,I.jsx)(E.EY,{as:"p",fontSize:"text-sm",fontFamily:"font-source-serif-pro",color:"text-[#314158]",lineHeight:"leading-[1.429]",children:c})}),(0,I.jsxs)("div",{className:"flex items-center gap-2",children:[(0,I.jsxs)("button",{onClick:()=>{(0,tJ.lW)(c),n(!0),(0,s.$s)("paper_citation","copy",`title: ${a.title}`),setTimeout(()=>n(!1),2e3)},className:"flex items-center gap-1.5 h-[30px] px-[11px] py-[7px] bg-white border border-slate-200 rounded text-xs font-bold text-[#314158] tracking-[-0.144px] hover:bg-slate-50 transition-colors",children:[(0,I.jsx)(ek.g,{icon:"copy",className:"text-xs text-[#314158]"}),r?"Copied!":"Copy"]}),(null==(t=a.acf)?void 0:t.digitalObjectIdentifier)&&(0,I.jsxs)("a",{href:a.acf.digitalObjectIdentifier,target:"_blank",rel:"noopener noreferrer",onClick:()=>(0,s.$s)("doi","click",`DOI: ${a.acf.digitalObjectIdentifier}`),className:"flex items-center gap-1.5 h-[30px] px-[11px] py-[7px] bg-white border border-slate-200 rounded text-xs font-bold text-[#314158] tracking-[-0.144px] hover:bg-slate-50 transition-colors",children:[(0,I.jsx)(ek.g,{icon:"link",className:"text-xs text-[#314158]"}),"DOI"]}),(0,I.jsxs)("button",{onClick:()=>{var e;let t=a.date?new Date(a.date).getFullYear():"",i=(a.authors||[]).map(e=>e.name).join(" and "),r=a$(a.title.replace(/<[^>]*>/g,"")),n=new Blob([`@article{yaqeen${a.id}, 9 title={${r}}, 10 author={${a$(i)}}, 11 year={${t}}, 12 publisher={Yaqeen Institute for Islamic Research}, 13 url={${l}}${null!=(e=a.acf)&&e.digitalObjectIdentifier?`, 14 doi={${a$(a.acf.digitalObjectIdentifier)}}`:""} 15}`],{type:"text/plain"}),o=document.createElement("a");o.href=URL.createObjectURL(n),o.download=`${a.slug}.bib`,o.click(),setTimeout(()=>URL.revokeObjectURL(o.href),1e3),(0,s.$s)("paper_citation","download",`title: ${a.title}`)},className:"flex items-center gap-1.5 h-[30px] px-[11px] py-[7px] bg-white border border-slate-200 rounded text-xs font-bold text-[#314158] tracking-[-0.144px] hover:bg-slate-50 transition-colors",children:[(0,I.jsx)(ek.g,{icon:"file-pdf",className:"text-xs text-[#314158]"}),"Download"]})]})]})};var aR=a(66071);function az(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,i)}return a}function aF(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};
15t%2?az(Object(a),!0).forEach(function(t){(0,z.A)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):az(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}let aY=e=>{let{content:t,relatedItems:a,trendingPapers:r,editorsPickPapers:n,similarPapers:s,footnotes:l,post:o,moreLikeThisPosts:c}=e,{0:d,1:h}=(0,i.useState)(!1);(0,i.useEffect)(()=>{h(!0)},[]);let u=(0,aR.U)(k.Sv),{0:m,1:p}=(0,i.useState)({});(0,i.useEffect)(()=>{(0,g.ee)()},[t,d,u]),(0,k.x7)(d);let{processedContent:f,blockIndices:x}=(0,i.useMemo)(()=>{if(!t)return{processedContent:t,blockIndices:[]};let e=[];return{processedContent:t.map((t,a)=>{if(t.length<=1)return e.push(t.map((e,t)=>t)),t;let i=0,r=[],n=[];return t.forEach((e,t)=>{if(0===t){r.push(e),n.push(t);return}if(e.trim().toLowerCase().startsWith("<subscribe-cta"))return;let s=e.replace(/<h3(\s[^>]*)?>/gi,(e,t)=>{let r=i++,n=`section-${a}-h3-${r}`;return t&&/\bid\s*=/.test(t)?e:`<h3${t||""} id="${n}">`});""!==s&&(r.push(s),n.push(t))}),e.push(n),r}),blockIndices:e}},[t]),y=new Set,b=null==f?void 0:f.findIndex((e,t)=>{if(e.length<=1||t<=0)return!1;let a=e[0].trim().replace(/<\/?strong>/gi,"");return a.length>0&&!a.includes("<commentary>")&&!/<\/?translation>/.test(a)}),v=(0,i.useMemo)(()=>f?f.reduce((e,t,a)=>(t.length>1&&e.push(a),e),[]):[],[f]),w=v[0]??-1,j=v[1]??-1;return(0,I.jsxs)("article",{children:[(0,I.jsx)(e0,{relatedItems:a}),null==f?void 0:f.map((e,t)=>e.length<=1?null:(0,I.jsxs)(i.Fragment,{children:[((e,t,a)=>{let i,c=(x[e]??t.map((e,t)=>t)).slice(1),h=t[0].trim().replace(/<\/?strong>/gi,""),g=h.includes("<commentary>"),f=/<\/?translation>/.test(h);f&&(i=(0,tx.ED)(h));let b=g||f;h=g?h.replace(/<\/?commentary>/gi,""):h;let v=0===(h=f?h.replace(/<\/?translation>/gi,""):h).length,w=(e=>{let t=e.replace(/<[^>]*>/g,"").trim().toLowerCase();return"references"===t||"notes"===t||"endnotes"===t||"bibliography"===t||t.startsWith("reference")||t.startsWith("note")})(h),j=(0,I.jsxs)(I.Fragment,{children:[g&&(0,I.jsx)($.Commentary,{title:h,content:(0,H.m5)({paragraphs:t.slice(1),trendingPapers:r,editorsPickPapers:n,similarPapers:s,footnotes:l,isCustomElement:g,slug:null==o?void 0:o.slug,postType:null==o?void 0:o.type,rootTab:"full",rootSection:e,blockIndices:c,sectionIndex:e,duaAnchors:y})},e),f&&(0,I.jsx)("div",{id:`content-${e}`,className:"mb-8 xl:mb-24 space-y-5",children:(0,I.jsx)($.Translation,{translationNumber:i.attributes.number,content:(0,H.m5)({paragraphs:t.slice(1),trendingPapers:r,editorsPickPapers:n,similarPapers:s,footnotes:l,isCustomElement:f,slug:null==o?void 0:o.slug,postType:null==o?void 0:o.type,rootTab:"full",rootSection:e,blockIndices:c,sectionIndex:e,duaAnchors:y})},e)}),!b&&(0,I.jsx)("div",{id:`content-${e}`,className:`mb-8 xl:mb-24 space-y-5 ${w?"xl:columns-2 xl:gap-8":""}`,children:(0,H.m5)({paragraphs:t.slice(1),trendingPapers:r,editorsPickPapers:n,similarPapers:s,footnotes:l,slug:null==o?void 0:o.slug,postType:null==o?void 0:o.type,rootTab:"full",rootSection:e,blockIndices:c,sectionIndex:e,duaAnchors:y})})]}),k=d&&u&&!v&&""!==h&&!b&&e>0;return(0,I.jsx)("section",{id:`section-${e}`,children:k?(0,I.jsx)("div",{className:"xl:hidden paper-section-accordion",children:(0,I.jsxs)(E.nD,{className:"mb-10",expanded:m[e]??a,onChange:(t,a)=>p(t=>aF(aF({},t),{},{[e]:a})),children:[(0,I.jsx)(E.Xo,{children:(0,I.jsx)(E.DZ,{color:"text-[#155dfc]",fontSize:"text-2xl",weight:"font-extrabold",letterSpacing:"tracking-[-0.012em]",lineHeight:"leading-[1.25]",children:(0,I.jsx)("span",aF(aF({},(0,tw.Iw)({tab:"full",section:e,block:0})),{},{dangerouslySetInnerHTML:{__html:h}}))})}),(0,I.jsx)(E.vr,{className:"pt-2",children:j})]})}):(0,I.jsxs)("div",{children:[!b&&!v&&""!==h&&(0,I.jsx)("div",{id:`title-${e}`,className:"mb-9",children:(0,I.jsx)(E.DZ,{color:"text-[#2652ff]",fontSize:"text-3xl lg:text-4xl",weight:"font-extrabold",letterSpacing:"tracking-tight",lineHeight:"lg:leading-tight leading-[1]",children:(0,I.jsx)("span",aF(aF({},(0,tw.Iw)({tab:"full",section:e,block:0})),{},{dangerouslySetInnerHTML:{__html:h}}))})}),j]})},e)})(t,e,t===b),t===w&&(0,I.jsx)("div",{className:"xl:hidden my-8",children:(0,I.jsx)(ei,{variant:"paper"})}),t===j&&c&&c.length>0&&(0,I.jsxs)("div",{className:"xl:hidden mt-8 -mx-4",children:[(0,I.jsx)("div",{className:"space-y-2 px-4 pb-2",children:(0,I.jsx)(E.DZ,{level:3,color:" text-black",fontSize:"text-base",weight:"lg:font-bold font-semibold",children:"More Like This"})}),(0,I.jsx)("div",{className:"overflow-x-auto",children:(0,I.jsx)("div",{className:"flex gap-2 pb-4 px-4",style:{width:"max-content"},children:c.map(e=>(0,I.jsx)("div",{className:"flex-shrink-0 w-55",children:(0,I.jsx)(eg,{posts:[e],maxItems:1,showTitle:!1})},e.id))})})]})]},t))]})},aL=e=>{let{className:t="w-5 h-5"}=e;return(0,I.jsxs)("svg",{className:t,viewBox:"0 0 48 48",fill:"none","aria-hidden":"true",children:[(0,I.jsx)("path",{fill:"#EA4335",d:"M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z"}),(0,I.jsx)("path",{fill:"#4285F4",d:"M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z"}),(0,I.jsx)("path",{fill:"#FBBC05",d:"M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z"}),(0,I.jsx)("path",{fill:"#34A853",d:"M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z"})]})},aB=e=>{let{className:t="w-4 h-4"}=e;return(0,I.jsxs)("svg",{className:t,viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:[(0,I.jsx)("circle",{cx:"8",cy:"8",r:"8",f
15ill:"#34A853"}),(0,I.jsx)("path",{d:"M4.5 8.2L7 10.5L11.5 5.8",stroke:"white",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})]})},aU=e=>{let{title:t,icon:a}=e,{0:r,1:n}=(0,i.useState)(!1),s="question"===a?ej.APe:ej.mEO;return(0,I.jsx)("div",{className:"absolute top-full mt-3 z-50 left-1/2 -translate-x-1/2",children:(0,I.jsxs)("div",{className:"relative flex flex-col items-center gap-2 p-3 bg-[#1447E6] rounded shadow-[0px_1px_3px_0px_rgba(0,0,0,0.1),0px_1px_2px_0px_rgba(0,0,0,0.06)]",children:[(0,I.jsx)("svg",{className:"absolute top-0 -translate-y-full left-1/2 -translate-x-1/2",width:"14",height:"8",viewBox:"0 0 14 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,I.jsx)("path",{d:"M7 0L14 8H0L7 0Z",fill:"#1447E6"})}),(0,I.jsxs)("button",{type:"button",onClick:()=>n(e=>!e),"aria-expanded":r,className:"flex items-center justify-center gap-2",children:[(0,I.jsx)("span",{className:"text-white text-xs font-semibold font-proxima-nova leading-[1.333] whitespace-nowrap",children:t}),(0,I.jsx)(ek.g,{icon:r?ej.ivC:s,className:"text-white text-xs shrink-0"})]}),r&&(0,I.jsx)("p",{className:"w-min min-w-full text-white text-xs font-medium font-proxima-nova leading-[1.333] text-left",children:"This ensures your Google Search Top Stories, AI Mode, and AI Overviews are answered using our resources."})]})})},aW=e=>{let{slug:t}=e,{isAdded:a,addToGoogle:r}=(e=>{let{0:t,1:a}=(0,i.useState)(!1);return(0,i.useEffect)(()=>{a(!0===b.Cj.getItem(b.UT.GooglePreferredSourceAdded))},[]),{isAdded:t,addToGoogle:()=>((0,s.$s)("google_preferred_source","click",`${t?"already-added":"add"} - paper: ${e}`),window.open("https://google.com/preferences/source?q=yaqeeninstitute.org","_blank","noopener,noreferrer"),t||(b.Cj.setItem(b.UT.GooglePreferredSourceAdded,!0,b.fI.Forever),a(!0)),!t)}})(t),{0:n,1:l}=(0,i.useState)(null),o=(0,i.useRef)(null),c=()=>{b.Cj.setItem(b.UT.GooglePreferredSourceTooltipSeen,!0,b.fI.Forever)};return(0,i.useEffect)(()=>{!0!==b.Cj.getItem(b.UT.GooglePreferredSourceAdded)&&(b.Cj.getItem(b.UT.GooglePreferredSourceTooltipSeen)||l("first-time"))},[]),(0,i.useEffect)(()=>{if(!n)return;let e=e=>{o.current&&!o.current.contains(e.target)&&("first-time"===n&&c(),l(null))};return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e)}},[n]),(0,I.jsxs)("div",{ref:o,className:"relative inline-block overflow-visible",children:[(0,I.jsxs)("button",{type:"button",onClick:()=>{c(),l(r()?"added":null)},"aria-label":a?"Added to Google as preferred source":"Add to Google as preferred source",className:`relative flex items-center justify-center gap-2 h-[38px] w-[38px] px-0 md:w-auto md:px-[17px] rounded border ${a?"bg-[#EFF4FF] border-[#0052FF]":"bg-white border-slate-200"}`,children:[(0,I.jsx)(aL,{}),(0,I.jsx)("span",{className:`hidden md:inline-block text-base font-bold font-proxima-nova leading-none tracking-[-0.192px] whitespace-nowrap ${a?"text-[#0052FF]":"text-[#314158]"}`,children:a?"Added to Google":"Add to Google"}),a&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(aB,{className:"md:hidden absolute -top-1.5 -right-1.5 w-4 h-4"}),(0,I.jsx)(aB,{className:"hidden md:block w-4 h-4"})]})]}),"first-time"===n&&(0,I.jsx)(aU,{title:"Make Yaqeen your preferred source",icon:"question"}),"added"===n&&(0,I.jsx)(aU,{title:"Yaqeen is your preferred source",icon:"info"})]})},aG=eP()(()=>Promise.resolve().then(a.bind(a,89610)).then(e=>e.DownloadFormatButton),{loadableGenerated:{webpack:()=>[89610]}}),aZ=e=>{var t,a;let{post:r,url:n,onReadModeClick:l,isLoadingReadMode:o=!1,showReadModeButton:d=!1,isArchived:h=!1}=e,{title:u}=r,p=(0,R.jZ)(r.authors),{downloadLink:g,hasDownloadLink:f,isManualDownloadRequired:x,handleDownloadClick:y}=tr(r),{0:b,1:v}=(0,i.useState)("pdf"),w="markdown"===b?`/api/v1/md-gen/${r.slug}`:g,j=(r.contentType||[]).find(e=>0===e.parent),k=(r.topic||[]).filter(e=>0!==e.parent).slice(0,3);return(0,I.jsxs)("div",{id:"paper-explorer-header",className:"max-w-7xl mx-auto px-4 xl:px-[24px] xl:pt-14 pt-10 xl:pb-17 pb-6 w-full space-y-8",children:[(0,I.jsxs)("div",{className:"flex items-start gap-2 flex-wrap xl:hidden",children:[j&&(0,I.jsx)("span",{className:"bg-white border-2 border-[#0052ff] text-[#0052ff] text-[10px] font-bold uppercase tracking-[0.5px] px-3 py-1.5 rounded-full leading-none shrink-0",children:ep().decode(j.name)}),k.map(e=>(0,I.jsx)(E.qh,{href:`/topic/${e.slug}`,className:"bg-white border-2 border-[#0052ff] text-[#0052ff] text-[10px] font-bold uppercase tracking-[0.5px] px-3 py-1.5 rounded-full leading-none shrink-0 hover:bg-[#0052ff]/5",onClick:()=>(0,s.$s)("paper_explorer_tag","click",`tag: ${e.name}`),children:ep().decode(e.name)}
15,e.id||e.slug))]}),(0,I.jsxs)("div",{className:"hidden xl:flex items-center justify-between gap-2 flex-wrap",children:[j?(0,I.jsx)("span",{className:"bg-white border-2 border-[#0052ff] text-[#0052ff] text-[10px] font-bold uppercase tracking-[0.5px] px-3 py-1.5 rounded-full leading-none shrink-0",children:ep().decode(j.name)}):(0,I.jsx)("span",{}),k.length>0&&(0,I.jsx)("div",{className:"flex items-center gap-1.5 flex-wrap justify-end",children:k.map(e=>(0,I.jsx)(E.qh,{href:`/topic/${e.slug}`,className:"bg-white border-2 border-[#0052ff] text-[#0052ff] text-[10px] font-bold uppercase tracking-[0.5px] px-3 py-1.5 rounded-full leading-none shrink-0 hover:bg-[#0052ff]/5",onClick:()=>(0,s.$s)("paper_explorer_tag","click",`tag: ${e.name}`),children:ep().decode(e.name)},e.id||e.slug))})]}),(0,I.jsxs)("div",{className:"space-y-3",children:[(0,I.jsx)("div",{id:"post-title",children:(0,I.jsx)(E.DZ,{level:1,color:"text-[#0052ff]",fontSize:"text-3xl lg:text-5xl",weight:"font-extrabold",letterSpacing:"tracking-[-0.02em]",lineHeight:"lg:leading-[1.25] leading-none",children:u})}),[c.xj.Paper,c.xj.Publication].includes(r.type)&&(null==(t=r.seo)?void 0:t.desc)&&(0,I.jsx)("div",{id:"paper-description",children:(0,I.jsx)(E.EY,{as:"p",fontSize:"text-sm lg:text-lg",fontFamily:"font-source-serif-pro",lineHeight:"lg:leading-6 leading-[1.375]",color:"text-[#0052ff]",children:(0,I.jsx)("span",{dangerouslySetInnerHTML:{__html:null==(a=r.seo)?void 0:a.desc}})})})]}),(0,I.jsxs)("div",{id:"post-details",className:"space-y-4",children:[(null==p?void 0:p.length)>0&&(0,I.jsxs)("div",{className:"flex items-center gap-3",children:[(0,I.jsxs)("div",{className:"flex items-center pr-2",children:[p.slice(0,2).map((e,t)=>(0,I.jsx)("div",{className:"w-[38px] h-[38px] -mr-2 rounded-full overflow-hidden bg-grey-200",style:{zIndex:p.length-t},children:e.thumbnail?(0,I.jsx)(m(),{src:e.thumbnail,alt:e.name,width:38,height:38,loader:F.R2,className:"w-full h-full object-cover"}):(0,I.jsx)("div",{className:"w-full h-full flex items-center justify-center text-grey-600 text-sm font-bold",children:e.name.charAt(0)})},e.id||t)),p.length>2&&(0,I.jsxs)("div",{"aria-hidden":"true","data-testid":"author-overflow",className:"w-[38px] h-[38px] -mr-2 rounded-full bg-grey-300 flex items-center justify-center text-grey-700 text-xs font-bold",style:{zIndex:0},children:["+",p.length-2]})]}),(0,I.jsx)("p",{className:"text-sm leading-6 text-[#0d3a9b]",children:p.map((e,t)=>(0,I.jsxs)("span",{children:[e.slug?(0,I.jsx)(E.qh,{href:`/team/${e.slug}`,prefetch:!1,className:"font-semibold text-[#0052ff] hover:underline",onClick:()=>(0,s.$s)("read_paper","author_click",`author: ${e.name}`,!1,(0,R.ct)("byline",e.slug)),children:e.name}):(0,I.jsx)("span",{className:"font-semibold text-[#0052ff]",children:e.name}),(0,I.jsx)(I.Fragment,{children:(0,R.P2)(t,p.length)})]},e.id||t))})]}),!h&&(0,I.jsxs)("div",{children:[(0,I.jsxs)(E.EY,{as:"p",fontSize:"text-sm",color:"text-[#0d3a9b]",lineHeight:"leading-6",children:["Published: ",(0,W.C9)(r.date),(0,W.dW)(r.date)&&(0,I.jsxs)(I.Fragment,{children:[" ⢠",(0,W.dW)(r.date)]})]}),r.modified_at&&r.modified_at!==r.date&&(0,I.jsxs)(E.EY,{as:"p",fontSize:"text-sm",color:"text-[#0d3a9b]",lineHeight:"leading-6",children:["Updated: ",(0,W.C9)(r.modified_at),(0,W.dW)(r.modified_at)&&(0,I.jsxs)(I.Fragment,{children:[" ⢠",(0,W.dW)(r.modified_at)]})]}),(r.readTime||k.length>0)&&(0,I.jsxs)(E.EY,{as:"p",fontSize:"text-sm",color:"text-[#0d3a9b]",lineHeight:"leading-6",children:[r.readTime&&(0,I.jsxs)(I.Fragment,{children:[r.readTime," mins"]}),r.readTime&&k.length>0&&(0,I.jsx)(I.Fragment,{children:" ⢠"}),k.map((e,t)=>(0,I.jsxs)("span",{children:[(0,I.jsx)("span",{className:"font-semibold text-[#0052ff]",children:ep().decode(e.name)}),t<k.length-1&&", "]},e.id||e.slug))]})]})]}),!h&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsxs)("div",{id:"post-actions",className:"hidden md:flex md:justify-between md:items-center gap-2 overflow-visible !mt-6",children:[(0,I.jsxs)("div",{className:"flex items-center gap-2",children:[(0,I.jsx)(C.Tx,{post:r,overrideBtnClassName:"flex items-center justify-center w-[38px] h-[38px] bg-white border border-slate-200 rounded",overrideIconClassName:"text-base"}),(0,I.jsx)($.PostSharePlatformDropdown,{url:n,title:u,logTitle:`Paper - ${u}`,hideLabel:!0,position:"left",overrideClassName:"flex items-center justify-center w-[38px] h-[38px] bg-white border border-slate-200 rounded"}),r.acf.digitalObjectIdentifier&&(0,I.jsx)(E.qh,{href:r.acf.digitalObjectIdentifier,target:"_blank",onClick:()=>(0,s.$s)("doi","click",`DOI: ${r.acf.digitalObjectIdentifier}`),className:"flex items-center justify-center w-[38px] h-[38px] bg-white border border-slate-200 rounded",children:(0,I.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:[(0,I.jsx)("circle",{cx:"10",cy:"10",r:"10",fill:"black"}),(0,I.jsx)("text",{x:"10",y:"13.5",textAnchor:"middle",fill:"white",fontSize:"10",fontWeight:"900",fontFamily:"Proxima Nova, sans-serif",children:"doi"})]})}),(0,I.jsx)(aW,{slug:r.slug})]}),(0,I.jsxs)("div",{className:"flex items-center gap-2",children:[(0,I.jsx)(ef.X,{postId:r.id,title:u,url:n}),d&&(0,I.jsx)(tB,{postType:r.type,onReadModeClick:l,isLoading:o}),f&&(0,I.jsx)(aG,{handleDownloadClick:y,slug:r.slug,onFormatSelect:v,backgroundColor:"bg-[#ff8904]",downloadLink:g})]})]}),(0,I.jsxs)("div",{className:"md:hidden space-y-2 overflow-visible !mt-6",children:[(0,I.jsxs)("div",{className:"flex items-center justify-between",children:[(0,I.jsxs)("div",{className:"flex items-center gap-2",children:[(0,I.jsx)(C.Tx,{post:r,overrideBtnClassName:"flex items-center justify-center w-[38px] h-[38px] bg-white border border-slate-200 rounded",overrideIconClassName:"text-base"}),(0,I.jsx)($.PostSharePlatformDropdown,{url:n,title:u,logTitle:`Paper - ${u}`,hideLabel:!0,position:"left",overrideClassName:"flex items-center justify-center w-[38px] h-[38px] bg-white border border-slate-200 rounded",doiUrl:r.acf.digitalObjectIdentifier}),(0,I.jsx)(aW,{slug:r.slug})]}),d&&(0,I.jsx)(tB,{postType:r.type,onReadModeClick:l,isLoading:o})]}),(0,I.jsxs)("div",{className:"flex items-center gap-2 [&>*]:flex-1 [&>*]:w-0 [&_button]:w-full [&_.relative.inline-flex]:w-full [&_.relative.inline-flex>a]:w-full",children:[(0,I.jsx)(ef.X,{postId:r.id,title:u,url:n}),f&&(0,I.jsx)(aG,{handleDownloadClick:y,slug:r.slug,onFormatSelect:v,backgroundColor:"bg-[#ff8904]",downloadLink:g})]})]}),x&&(0,I.jsx)("div",{className:"px-4 py-4 flex justify-center md:justify-end",children:(0,I.jsx)(E.EY,{weight:"font-semibold",children:(0,I.jsxs)("em",{children:["Your download should begin automatically. Didn't work?"," ",(0,I.jsx)(E.qh,{href:w,className:"url",target:"_blank",children:"Try again."})," "]})})})]})]})};var aQ=a(12013);let aV=e=>{var t;let{post:a}=e,i=(null==(t=a.contentType)||null==(t=t[0])?void 0:t.name)||a.type||"",r=aQ.A.find(e=>e.type===i.toLowerCase());return(0,I.jsx)(E.qh,{href:(0,te.lr)(a),className:"flex-shrink-0 w-[220px] xl:w-[243px] group snap-start",onClick:()=>(0,s.$s)("paper_explorer_related","click",`title: ${a.title}`),children:(0,I.jsxs)("div",{className:"bg-white rounded border border-slate-200 px-4 py-3 flex flex-col gap-4 h-full snap-center",children:[r&&(0,I.jsx)("div",{className:"w-10 h-10 flex items-center justify-center",children:(0,I.jsx)(m(),{loader:F.R2,src:r.src,alt:r.title,width:40,height:40})}),(0,I.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,I.jsx)("p",{className:"text-[10px] font-bold uppercase tracking-[0.5px] text-[#2b7fff]",children:i}),(0,I.jsx)("p",{className:"text-sm font-bold text-[#111827] leading-[1.25] tracking-[-0.168px] line-clamp-4",children:a.title})]})]})})},aK=e=>{let{post:t}=e,a=t.featured_image||t.thumbnail,i=(0,te.mH)(t);return(0,I.jsxs)(E.qh,{href:(0,te.lr)(t),className:"flex-shrink-0 w-[220px] xl:w-[243px] group snap-start block",onClick:()=>(0,s.$s)("paper_explorer_related","click",`title: ${t.title}`),children:[(0,I.jsx)("div",{className:"relative aspect-[16/10] w-full overflow-hidden mb-3",children:a?(0,I.jsx)(m(),{loader:F.R2,src:(0,F.AE)(a),alt:t.title,width:243,height:152,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-200"}):(0,I.jsx)("div",{className:"w-full h-full bg-gradient-to-br from-[#0052ff] to-[#083fc5]"})}),(0,I.jsxs)("div",{className:"flex flex-col gap-1.5",children:[i&&(0,I.jsx)("p",{className:"text-[10px] font-bold uppercase tracking-[0.5px] text-[#2b7fff]",children:ep().decode(i.name)}),(0,I.jsx)("p",{className:"text-sm font-bold text-[#111827] leading-[1.25] tracking-[-0.168px] line-clamp-3",children:t.title})]})]})},aJ=e=>{let{relatedPosts:t=[],recommendedPosts:a=[]}=e;return 0===t.length&&0===a.length?null:(0,I.jsxs)("div",{className:"max-w-7xl mx-auto px-4 xl:px-[24px] pb-16 space-y-10",children:[t.length>0&&(0,I.jsxs)("div",{children:[(0,I.jsx)("p",{className:"text-lg font-semibold text-[#0f172b] leading-7 tracking-[-0.216px] mb-4",children:"Related"}),(0,I.jsx)("div",{className:"flex gap-4 overflow-x-auto snap-x snap-mandatory hide-scrollbar pb-2 -mr-4 xl:mr-0",children:t.slice(0,5).map(e=>(0,I.jsx)(aV,{post:e},e.id))})]}),a.length>0&&(0,I.jsxs)("div",{children:[(0,I.jsx)("p",{className:"text-lg font-semibold text-[#0f172b] leading-7 tracking-[-0.216px] mb-4",children:"Recommended for you"}),(0,I.jsx)("div",{className:"flex gap-4 overflow-x-auto snap-x snap-mandatory hide-scrollbar pb-2 -mr-4 xl:mr-0",children:a.slice(0,5).map(e=>(0,I.jsx)(aK,{post:e},e.id))})]})]})};var aX=a(85669);let a0=e=>{let{posts:t,topic:a}=e;return(0,I.jsxs)("div",{className:" rounded-lg border border-gray-200",children:[(0,I.jsx)("div",{id:"tc-title",className:"py-3 px-3 bg-jordy-50",children:(0,I.jsx)(E.EY,{as:"p",color:"text-[#2b7fff]",weight:"font-semibold",fontSize:"text-xl",letterSpacing:"tracking-tight-1",className:"text-center",children:a.name})}),(0,I.jsx)("div",{className:"space-y-2 xl:pt-4 pt-3 px-3 xl:space-y-3",children:t.map(e=>(0,I.jsxs)("div",{className:"flex gap-2",children:[(0,I.jsx)("div",{className:"min-w-[6px] mt-2",children:(0,I.jsx)("div",{className:"w-1 h-1 rounded-full bg-grey-900"})}),(0,I.jsx)(E.qh,{href:(0,te.lr)(e),target:"_blank",onClick:()=>{(0,s.$s)("paper_right_topic","click",`title: ${e.title}`)},className:"text-sm text-gray-900 hover:text-black font-semibold",children:e.title})]},e.title))}),(0,I.jsxs)("div",{className:"xl:py-4 py-3 px-3 flex items-center space-x-2",children:[(0,I.jsx)(E.qh,{href:`/topic/${a.slug}`,className:"text-grey-900 text-sm font-bold hover:text-black",onClick:()=>{(0,s.$s)("paper_right_topic_more","click",`title: ${a.name}`)},children:"More on this topic"}),(0,I.jsx)(ek.g,{icon:"chevron-right",size:"sm",className:"text-carrot-500"})]})]})},a1=e=>{var t;let{post:a,parsedContent:r,similarTopicPostsData:n,moreLikeThisPosts:s,showChaptrsBanner:l=!1,activeTab:o,onSwitchToFullPaper:c,isArchived:d=!1}=e,{title:h,type:u}=a,{0:m,1:p}=(0,i.useState)(!0),{0:g,1:f}=(0,i.useState)(0),x=(0,i.useRef)(null),y=(0,i.useRef)(!0),b=(0,i.useRef)([]),{0:v,1:w}=(0,i.useState)(0),{0:j,1:k}=(0,i.useState)(!1),N=(0,aX.C)(),_=(0,i.useCallback)(()=>{let e=document.getElementById("post-content");e&&f(e.offsetHeight),x.current&&y.current&&w(x.current.offsetHeight)},[]);(0,i.useEffect)(()=>{f(0);let e=requestAnimationFrame(()=>{let e=requestAnimationFrame(()=>{_()});return()=>cancelAnimationFrame(e)});return()=>cancelAnimationFrame(e)},[o,_]),(0,i.useEffect)(()=>{let e=document.getElementById("post-content");
15if(!e)return;let t=new ResizeObserver(()=>_());return t.observe(e),()=>t.disconnect()},[_]),(0,i.useEffect)(()=>{let e=()=>{let e=x.current;if(!e)return;let t=e.getBoundingClientRect();k(b.current.some(e=>{if(!e)return!1;let a=e.getBoundingClientRect();return a.top<t.bottom&&a.bottom>t.top}))},t=0,a=()=>{cancelAnimationFrame(t),t=requestAnimationFrame(e)};return window.addEventListener("scroll",a,{passive:!0}),window.addEventListener("resize",a,{passive:!0}),e(),()=>{cancelAnimationFrame(t),window.removeEventListener("scroll",a),window.removeEventListener("resize",a)}},[g,v]);let S=[];(null==n||null==(t=n.posts)?void 0:t.length)>0&&null!=n&&n.topic&&S.push((0,I.jsx)(a0,{posts:n.posts,topic:n.topic},"topic")),(null==s?void 0:s.length)>0&&S.push((0,I.jsxs)("div",{className:"space-y-2",children:[(0,I.jsx)(E.DZ,{level:3,color:" text-black",fontSize:"text-base",lineHeight:"leading-[1.25]",letterSpacing:"tracking-[-0.01em]",weight:"font-semibold",children:"More Like This"}),(0,I.jsx)("div",{className:"flex flex-col gap-2",children:s.slice(0,3).map(e=>(0,I.jsx)(eg,{posts:[e],maxItems:1,showTitle:!1},e.id))})]},"more")),S.push((0,I.jsx)(tE.H,{},"newsletter"));let A=g-v,C=500*S.length,P=0===g||A<C,T=S.map((e,t)=>1===S.length?v+.5*A:v+Math.max(A*((t+1)/(S.length+1)),500*t));return(0,I.jsxs)("aside",{id:"paper-explorer-sidebar",className:"xl:block hidden w-[288px] self-start relative",style:P?void 0:{minHeight:g},children:[(0,I.jsxs)("div",{ref:x,className:`space-y-6 sticky top-24 transition-opacity duration-200 ${j?"opacity-0 pointer-events-none":"opacity-100 z-10 bg-white"}`,style:N>0?{top:`${N+16}px`}:void 0,children:[a.acf.paperAudio&&(0,I.jsx)(aD,{post:a,showChaptrsLink:l}),!d&&(0,I.jsxs)("div",{id:"tc-title",className:"border border-slate-200 rounded-lg overflow-hidden",children:[(0,I.jsxs)("button",{onClick:()=>{let e=!m;y.current=e,p(e)},className:"flex items-center gap-2 w-full px-3 py-2.5 border-b border-slate-200 hover:bg-grey-50 transition-colors",children:[(0,I.jsx)(ek.g,{icon:"list",className:"text-grey-900 text-xs"}),(0,I.jsx)(E.EY,{as:"span",color:"text-grey-900",weight:"font-bold",fontSize:"text-xs",letterSpacing:"tracking-[0.6px]",className:"uppercase flex-1 text-left",children:"Contents"}),(0,I.jsx)(ek.g,{icon:m?"chevron-up":"chevron-down",className:"text-grey-900 text-sm"})]}),m&&(0,I.jsx)("div",{className:"flex flex-col gap-1.5 overflow-y-auto max-h-[70vh] px-3 pt-3 pb-5",children:(0,I.jsx)($.PostToC,{content:r,postType:u,postTitle:h,variant:"explorer",onBeforeNavigate:()=>"full"!==o&&(null==c||c(),!0)})})]})]}),P&&(0,I.jsx)("div",{className:"space-y-6 mt-6",children:S.map((e,t)=>(0,I.jsx)("div",{ref:e=>{b.current[t]=e},children:e},t))}),!P&&S.map((e,t)=>(0,I.jsx)("div",{ref:e=>{b.current[t]=e},className:"absolute left-0 w-full",style:{top:T[t]},children:e},t))]})};var a2=a(91275),a4=a(46359);function a5(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,i)}return a}function a3(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?a5(Object(a),!0).forEach(function(t){(0,z.A)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):a5(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}let a6=e=>{let{faqs:t}=e,a=(0,i.useRef)(new Map),r=e=>{let t=a.current.get(e);if(null==t)return;let i=Date.now()-t;a.current.delete(e),i>=500&&(0,s.$s)("paper_explorer_faq","engagement_time",`position: ${e+1}`,!0,{duration_ms:i})};return((0,i.useEffect)(()=>{let e=()=>{a.current.forEach((e,t)=>r(t))};return window.addEventListener("pagehide",e),()=>{window.removeEventListener("pagehide",e),a.current.forEach((e,t)=>r(t))}},[]),t&&0!==t.length)?(0,I.jsx)("div",{className:"w-full",children:(0,I.jsx)("div",{className:"space-y-4",children:t.map((e,t)=>(0,I.jsx)("div",{id:`faq-${t+1}`,children:(0,I.jsxs)(E.nD,{className:"border-b border-gray-200 pb-4",onCh
15ange:(e,i)=>{(0,s.$s)("paper_explorer_faq",i?"expand":"collapse",`position: ${t+1}`),i?a.current.set(t,Date.now()):r(t)},children:[(0,I.jsx)(E.Xo,{id:`faq-question-${t+1}`,"aria-controls":`faq-answer-${t+1}`,expandIcon:(0,I.jsx)("div",{className:"w-5 h-5 flex items-center justify-center",children:(0,I.jsx)(ek.g,{icon:["fas","chevron-down"],className:"text-[#ff8904] text-base"})}),children:(0,I.jsx)(E.EY,{as:"h3",weight:"font-semibold",fontSize:"text-lg",color:"text-[#0f172b]",className:`${t_.zs} tracking-[-0.012em] leading-[1.556] m-0`,children:(0,I.jsx)("span",a3(a3({},(0,tw.Iw)({tab:"faq",section:0,block:t,part:"q"})),{},{dangerouslySetInnerHTML:{__html:e.question}}))})}),(0,I.jsx)(E.vr,{className:"pt-2",children:(0,I.jsx)(E.EY,{fontFamily:"font-source-serif-pro",as:"div",fontSize:"text-sm",color:"text-gray-600",className:t_.dA,children:(0,I.jsx)("div",a3(a3({},(0,tw.Iw)({tab:"faq",section:0,block:t,part:"a"})),{},{dangerouslySetInnerHTML:{__html:e.answer}}))})})]})},t))})}):null};function a9(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,i)}return a}function a8(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?a9(Object(a),!0).forEach(function(t){(0,z.A)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):a9(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}let a7=e=>{let{post:t,keyTakeaways:a,summary:r,faqs:n,activeTab:l,onTabChange:o,children:c}=e,d=(0,i.useMemo)(()=>{let e=[{key:"full",label:"Full paper"}];return(null==a?void 0:a.length)>0&&e.push({key:"takeaways",label:"Key takeaways"}),r&&e.push({key:"summary",label:"Short summary"}),(null==n?void 0:n.length)>0&&e.push({key:"faq",label:"FAQ"}),e},[a,r,n]),h=d.some(e=>e.key===l)?l:"full";(0,i.useEffect)(()=>{h!==l&&o(h)},[h,l,o]);let u=(0,i.useCallback)(e=>{(0,s.$s)("paper_explorer_tab","click",`tab: ${e} title: ${t.title}`),o(e)},[t.title,o]),m=(0,i.useRef)(null),p=(0,i.useCallback)(()=>{let e=m.current;if(!e)return;let a=Date.now()-e.at;"full"!==e.tab&&a>=500&&(0,s.$s)(`paper_explorer_${e.tab}`,"engagement_time",`title: ${t.title}`,!0,{duration_ms:a}),m.current=null},[t.title]);(0,i.useEffect)(()=>{p(),"full"!==h&&(0,s.$s)(`paper_explorer_${h}`,"view",`title: ${t.title}`),m.current={tab:h,at:Date.now()};let e=()=>p();return window.addEventListener("pagehide",e),()=>{window.removeEventListener("pagehide",e),p()}},[h]);let g=d.length>1;return(0,I.jsxs)("div",{id:"paper-explorer-tabs",className:"w-full",children:[g&&(0,I.jsx)(a2.I,{tabs:d,activeKey:h,onSelect:u,ariaLabel:"paper explorer",className:"mb-8"}),(0,I.jsxs)("div",{className:"relative",children:[(0,I.jsx)(a4.K,{active:"full"===h,id:"tabpanel-full",labelledBy:"tab-full",children:c}),(null==a?void 0:a.length)>0&&(0,I.jsx)(a4.K,{active:"takeaways"===h,id:"tabpanel-takeaways",labelledBy:"tab-takeaways",className:`${t_.kK} w-full font-source-serif-pro text-base xl:text-lg text-grey-900 leading-[1.5] xl:leading-[1.556] oldstyle-nums proportional-nums`,children:(0,I.jsx)("ol",{className:"list-decimal list-outside pl-8 space-y-2",children:a.map((e,t)=>(0,I.jsx)("li",{id:`takeaway-${t+1}`,className:"pl-1",children:(0,I.jsx)("span",a8(a8({},(0,tw.Iw)({tab:"takeaways",section:0,block:t})),{},{dangerouslySetInnerHTML:{__html:e}}))},t))})}),r&&(0,I.jsx)(a4.K,{active:"summary"===h,id:"tabpanel-summary",labelledBy:"tab-summary",children:(0,I.jsx)(tN,{summary:r,slug:null==t?void 0:t.slug})}),(null==n?void 0:n.length)>0&&(0,I.jsx)(a4.K,{active:"faq"===h,id:"tabpanel-faq",labelledBy:"tab-faq",children:(0,I.jsx)(a6,{faqs:n})})]})]})},ie=eP()(()=>a.e(750).then(a.bind(a,80750)),{ssr:!1,loadableGenerated:{webpack:()=>[80750]}}),it=eP()(()=>Promise.all([a.e(750),a.e(5907)]).then(a.bind(a,55907)),{ssr:!1,loading:tU,loadableGenerated:{webpack:()=>[55907]}}),ia=e=>{var t,a;let{post:l,relatedItems:o,readNextPosts:h,similarPapers:u,trendingPapers:p,editorsPickPapers:g,parsedPaperContent:f,footnotes:x,similarTopicPostsData:y,authorDetails:b=[],moreLikeThisPosts:v}=e,{title:j,tags:k,type:N,changelog:_,archive:C,images:P}=l,T=(0,te.lw)(l),O=(0,r.useRouter)(),D=(0,ti.W)(),q=window.location.href,{0:M,1:$}=(0,i.useState)("full");(0,i.useEffect)(()=>{let e=new URLSearchParams(window.location.search).get("tab");("takeaways"===e||"summary"===e||"faq"===e)&&$(e)},[]);let H=(0,i.useCallback)(e=>{$(e),"full"===e?D.removeURLParam("tab"):(D.removeURLParam("tab"),D.appendURLParam("tab",e))},[D]),R=(0,tl.X1)(l,f),z=(0,tl.BJ)(l),{0:Y,1:L}=(0,i.useState)(!1),{0:W,1:G}=(0,i.useState)(!1);(0,i.useEffect)(()=>{let e=new URLSearchParams(window.location.search).get("mode"),t=O.query.mode,a="read"===(e||t);a!==Y&&L(a)},[O.query.mode,O.isReady]),(0,i.useEffect)(()=>{let e=()=>{L("read"===new URLSearchParams(window.location.search).get("mode"))};return window.addEventListener("popstate",e),()=>window.removeEventListener("popstate",e)},[]);let Z=!T,{0:V,1:K}=(0,i.useState)(!1),{0:J,1:X}=(0,i.useState)(!1);(0,i.useEffect)(()=>{K(!0)},[]),(0,i.useEffect)(()=>{X(window.location.href.includes("#:~:text="))},[]);let ee=e6.includes(l.slug),{personalizedPosts:et}=w(l.id.toString()),ea=(null==et?void 0:et.length)>0?et.filter(e=>(null==e?void 0:e[0])&&!O.asPath.includes(e[0].slug)).filter(e=>!(null!=u&&u.some(t=>t.id===e[0].id))).filter(e=>!(null!=p&&p.some(t=>t.id===e[0].id))).map(e=>
15(0,A.P7)(e[0])).filter(Boolean).slice(0,5):[],{eventTracker:ei}=(0,eI.OF)();(0,i.useEffect)(()=>{ei("page_view",l.id.toString())},[l.id]);let{trackInteraction:er,isLoaded:en}=(0,n.w)();return((0,i.useEffect)(()=>{let e;if(!en)return;let t=[25,50,75,100],a=new Set,i=()=>{let i=(0,Q.O)(window.scrollY);t.forEach(e=>{i>=e&&!a.has(e)&&(a.add(e),(0,s.$s)("paper_scroll_depth","threshold",`depth: ${e} title: ${l.title}`,!0,{scroll_percent:e}))}),clearTimeout(e),e=setTimeout(()=>{er({post:l,type:d.X8.Scroll,value:window.scrollY,percentValue:i})},3e3)};return window.addEventListener("scroll",i),()=>{window.removeEventListener("scroll",i),clearTimeout(e)}},[l,en]),S({contentId:null==l?void 0:l.id,isLoaded:en,hasTextFragment:J,actsOnDuaParam:!0}),(0,i.useEffect)(()=>{if(Y){if(!D.hasURLParam("mode")||"read"!==D.getURLParam("mode")){let e=new URL(window.location.href);e.searchParams.set("mode","read"),window.history.pushState(null,"",e.toString()),window.dispatchEvent(new Event("urlchange"))}}else D.hasURLParam("mode")&&(D.removeURLParam("mode"),window.dispatchEvent(new Event("urlchange")))},[Y]),Y&&V&&!T)?(0,I.jsx)(it,{post:l,parsedPaperContent:f,footnotes:x,onExitReadMode:()=>{G(!0),setTimeout(()=>{L(!1),G(!1)},0)}}):(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(aZ,{post:l,url:q,isArchived:T,onReadModeClick:()=>{G(!0),setTimeout(()=>{L(!0),G(!1)},0)},isLoadingReadMode:W,showReadModeButton:Z}),[c.xj.Paper,c.xj.Publication].includes(l.type)&&(0,I.jsx)("div",{className:"xl:hidden max-w-7xl mx-auto w-full px-4 pb-6",children:(0,I.jsx)(tc,{images:P,alt:j,mobileOnly:!0})}),(0,I.jsxs)("div",{className:"bg-white z-[1]",children:[(0,I.jsxs)("div",{id:"post-container",className:`grid grid-cols-1 ${V?"xl:grid-cols-[305px_1fr]":""} max-w-7xl mx-auto w-full px-4 xl:px-[24px] relative gap-x-20`,children:[V&&(0,I.jsxs)("div",{className:"hidden xl:flex xl:flex-col",children:[(0,I.jsx)(a1,{post:l,parsedContent:f,isArchived:T,similarTopicPostsData:y,moreLikeThisPosts:v,showChaptrsBanner:ee,activeTab:M,onSwitchToFullPaper:()=>H("full")}),(0,I.jsx)("div",{className:"mt-auto pb-18",children:(0,I.jsx)(E.qh,{href:"/ameenapp",className:"block w-full rounded-lg overflow-hidden hover:opacity-90 transition-opacity",onClick:()=>(0,s.$s)("ameen_app_banner","click","paper_footer"),children:(0,I.jsx)(m(),{loader:F.R2,src:"/static/images/ameen-app-banner-sidebar.jpg",alt:"Download Ameen app",width:288,height:48,layout:"responsive"})})})]}),(0,I.jsxs)("main",{className:"xl:max-w-4xl w-full self-start",children:[(0,I.jsxs)("div",{id:"post-content",children:[_&&(0,I.jsx)(tL,{changelog:_}),C&&(0,I.jsx)(tg,{archive:C}),l.acf.paperAudio&&(0,I.jsx)("div",{className:"xl:hidden mb-8",children:(0,I.jsx)(aD,{post:l,showChaptrsLink:ee})}),(0,I.jsx)(a7,{post:l,keyTakeaways:z??void 0,summary:l.summaryHtml,faqs:R,activeTab:M,onTabChange:H,children:(0,I.jsx)(aY,{content:f,type:N,relatedItems:o,trendingPapers:p,editorsPickPapers:g,similarPapers:u,footnotes:x,post:l,moreLikeThisPosts:v})}),V&&(0,I.jsx)(ie,{postId:l.id.toString(),slug:l.slug,postTitle:j,postAuthors:null==(t=l.authors)?void 0:t.map(e=>e.name),scopeId:"paper-explorer-tabs",activeTab:M,onRequestTab:H,deepLinkHighlightId:"string"==typeof O.query.hl?O.query.hl:void 0})]}),(0,I.jsxs)("div",{id:"post-footer",className:"mb-9 space-y-8 mt-6",children:[U(l.authors)&&b.length>0&&(0,I.jsx)("div",{id:"author-section",children:B(b,{className:"space-y-6",showBorder:!0,surface:"read_paper"})}),(0,I.jsx)("div",{id:"separator",className:"border-t-2 border-carrot-500 w-10"}),(0,I.jsx)(eJ,{tags:k}),(0,I.jsx)(tM,{}),(0,I.jsx)(e_,{})]}),!T&&[c.xj.Paper,c.xj.Publication].includes(l.type)&&(0,I.jsx)(aH,{post:l}),!T&&[c.xj.Paper,c.xj.Publication].includes(l.type)&&(0,I.jsx)(tp,{post:l})]})]}),(0,I.jsxs)("div",{className:"xl:hidden max-w-7xl mx-auto w-full px-4 pb-8 space-y-8",children:[(null==y||null==(a=y.posts)?void 0:a.length)>0&&(null==y?void 0:y.topic)&&(0,I.jsx)(a0,{posts:y.posts,topic:y.topic}),(0,I.jsx)(tE.H,{}),(0,I.jsx)(E.qh,{href:"/ameenapp",className:"block w-full rounded-lg overflow-hidden hover:opacity-90 transition-opacity",onClick:()=>(0,s.$s)("ameen_app_banner","click","paper_mobile"),children:(0,I.jsx)(m(),{loader:F.R2,src:"/static/images/ameen-app-banner-sidebar.jpg",alt:"Download Ameen app",width:288,height:48,layout:"responsive"})})]}),(0,I.jsx)(aJ,{relatedPosts:h,recommendedPosts:ea})]})]})},ii=e=>{let{content:t,postType:a,postTitle:r}=e,{0:n,1:l}=(0,i.useState)(null),o=tF(t,a);return(0,I.jsx)(I.Fragment,{children:o.map((e,t)=>e&&(0,I.jsxs)(tz.N_,{to:`section-${!e?t+1:t}`,spy:!0,onSetActive:()=>l(t),offset:-72,className:"inline-flex gap-1 items-start cursor-pointer",onClick:()=>(0,s.$s)("paper_toc_desktop","click",`item_name: ${r}, section: ${e}`),children:[(0,I.jsx)(E.EY,{as:"p",weight:"font-bold",fontSize:"text-sm",fontFamily:"font-source-serif-pro",className:n===t?"visible":"invisible",children:">"}),(0,I.jsx)("span",{className:`font-source-serif-pro text-sm ${n===t?"text-grey-900 font-bold":"text-blue-700"}`,dangerouslySetInnerHTML:{__html:e}})]},e))})},ir=eP()(()=>Promise.resolve().then(a.bind(a,67579)).then(e=>e.DownloadPDFButton),{loadableGenerated:{webpack:()=>[67579]}}),is=eP()(()=>Promise.resolve().then(a.bind(a,57908)).then(e=>e.RelatedData),{loadableGenerated:{webpack:()=>[57908]}}),il=eP()(()=>Promise.resolve().then(a.bind(a,63840)),{loadableGenerated:{webpack:()=>[63840]}}),io=e=>{let{post:t,url:a}=e,{title:i}=t,{downloadLink:r,hasDownloadLink:n,isManualDownloadRequired:s,handleDownloadClick:l}=tr(t);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsxs)("div",{id:"post-actions",className:"flex justify-between space-x-2 mt-6",children:[(0,I.jsxs)("div",{className:"inline-flex",children:[(0,I.jsx)(C.Tx,{post:t}),(0,I.jsx)($.PostSharePlatformDropdown,{url:a,title:i,logTitle:`Paper - ${i}`,hideLabel:!0}),(0,I.jsx)($.OpenInAppButton,{postId:t.id,title:i,url:a})]}),(0,I.jsx)("div",{className:"flex space-x-2",children:n&&(0,I.jsx)(ir,{handleDownloadClick:l,downloadLink:r})})]}),s&&(0,I.jsx)("div",{className:"px-4 py-4 flex justify-center md:justify-end",children:(0,I.jsx)(E.EY,{weight:"font-semibold",children:(0,I.jsxs)("em",{children:["Your download should begin automatically. Didn't work?"," ",(0,I.jsx)(E.qh,{href:r,className:"url",target:"_blank",children:"Try again."})," "]})})})]})},ic=e=>{let{post:t,relatedItems:a,readNextPosts:i,similarPapers:r,trendingPapers:n,editorsPickPapers:s,parsedPaperContent:l,relatedPosts:o,footnotes:d}=e,{title:h,date:u,tags:m,type:p,changelog:g,archive:f,modified_at:x,images:y}=t,{country:b}=(0,tq.A)(),v=(0,t2.S)(t.authors,b),w=(0,G.R)(t),j=o??(0,Z.A)(a),k=window.location.href,N=![c.xj.News,c.xj.Blog,c.xj.Other].includes(p);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsxs)("div",{id:"post-info",className:"max-w-7xl mx-auto xl:px-6 px-4 xl:mt-10 mt-6 mb-8 w-full",children:[w.length>0&&(0,I.jsx)("div",{className:"py-1 mb-3",children:(0,I.jsx)($.PostBreadcrumb,{items:w,fontSize:"text-xss xl:text-sm"})}),(0,I.jsx)("div",{id:"post-title",className:"mb-10",children:(0,I.jsx)(E.DZ,{level:1,color:"text-endeavour-500",fontSize:"xl:text-5xl text-3xl",weight:"font-extrabold",letterSpacing:"tracking-tight",lineHeight:"xl:leading-12 leading-8",children:h})}),(0,I.jsx)("hr",{id:"separator",className:"border-t-4 border-carrot-500 w-20"}),(0,I.jsxs)("div",{id:"post-details",className:"mt-6 space-y-2",children:[(0,I.jsxs)(E.EY,{as:"p",fontSize:"text-sm",children:["Published: ",(0,I.jsx)("span",{className:"text-black",children:(0,t1.p)(u)})," ⢠Updated:"," ",(0,I.jsx)("span",{className:"text-black",children:(0,t1.p)(x)})]}),(null==v?void 0:v.length)>0&&(0,I.jsxs)(E.EY,{as:"p",fontSize:"text-sm",children:["Author",v.length>
151?"s":"",":"," ",v.map((e,t)=>(0,I.jsxs)(I.Fragment,{children:[e.showLink&&(0,I.jsx)(E.qh,{href:`/team/${e.slug}`,passHref:!0,children:(0,I.jsx)("span",{className:"font-bold",children:ep().decode(e.name)})},e.id),!e.showLink&&(0,I.jsx)("span",{className:"font-bold",children:ep().decode(e.name)}),(0,R.P2)(t,v.length)]}))]})]}),(0,I.jsx)(io,{post:t,url:k})]}),(0,I.jsx)("div",{className:"sticky top-0 h-fit",children:(0,I.jsx)(tc,{images:y,alt:h})}),(0,I.jsxs)("div",{className:"bg-white z-[1]",children:[(0,I.jsxs)("div",{className:"mt-10",children:[(0,I.jsx)(E.EY,{as:"p",color:"text-grey-900",weight:"font-semibold",fontSize:"text-2xl",className:"text-center",children:"Ø¨ÙØ³ÙÙ
٠اÙÙÙÙ Ø§ÙØ±ÙÙØÙÙ
Ù°ÙÙ Ø§ÙØ±ÙÙØÙÙÙÙ
Ù"}),(0,I.jsx)(E.EY,{as:"p",fontSize:"text-xs",fontFamily:"font-source-serif-pro",color:"text-grey-800",lineHeight:"leading-relaxed",className:"mt-4 text-center",children:"In the name of God, the Most Gracious, the Most Merciful."})]}),(0,I.jsxs)("div",{id:"post-container",className:"xl:flex max-w-7xl sm:mx-auto w-full xl:px-0 px-4 relative",children:[(0,I.jsx)("div",{id:"table-contents",className:"xl:flex-none absolute top-0 left-0 w-60 mx-auto h-full xl:block hidden mt-10",children:(0,I.jsxs)("div",{id:"tc-body",className:"sticky top-20 left-0",children:[N?(0,I.jsxs)("div",{id:"tc-title",className:"mb-6",children:[(0,I.jsx)(E.EY,{as:"p",color:"text-grey-800",weight:"font-bold",fontSize:"text-sm",letterSpacing:"tracking-wider",className:"uppercase",children:"Contents"}),(0,I.jsx)("div",{id:"separator",className:"border-t-2 border-carrot-500 mt-2 w-10"})]}):null,(0,I.jsx)("div",{className:"flex flex-col space-y-1 overflow-y-auto h-[calc(100vh-2rem-81px-50px)]",children:(0,I.jsx)(ii,{content:l,postType:p,postTitle:h})})]})}),(0,I.jsxs)("div",{id:"post-content",className:"xl:flex-auto xl:ml-80 mx-auto mt-10 xl:max-w-4xl",children:[g&&(0,I.jsx)(tL,{changelog:g}),f&&(0,I.jsx)(tg,{archive:f}),t.acf.paperAudio&&(0,I.jsx)($.PostAudioPlayer,{title:h,post:t}),(0,I.jsx)(tI,{content:l,type:p,relatedItems:a,trendingPapers:n,editorsPickPapers:s,similarPapers:r,footnotes:d}),(0,I.jsx)("div",{id:"separator",className:"border-t-2 border-carrot-500 w-10"}),(0,I.jsxs)("div",{id:"post-footer",className:"mb-9 space-y-6 mt-6",children:[(0,I.jsx)(io,{post:t,url:k}),(0,I.jsx)(eJ,{tags:m}),(0,I.jsx)(tM,{})]})]})]}),(null==j?void 0:j.length)>0&&(0,I.jsx)(is,{relatedData:j,type:p}),(null==i?void 0:i.length)>0&&(0,I.jsxs)("div",{className:"px-6 max-w-7xl mx-auto w-full",children:[(0,I.jsxs)("div",{className:"xl:block hidden",children:[(0,I.jsxs)("div",{className:"xl:my-10 mt-10",children:[(0,I.jsx)($.SectionTitle,{title:"Read Next",isBorder:!1,isSpacing:!1}),(0,I.jsx)("div",{className:"border-b-2 border-gray xl:mt-4 mt-6"})]}),(0,I.jsx)(il,{posts:i,analytic:"paper_read_next",numberOfPost:"5"})]}),(0,I.jsx)("div",{className:"xl:hidden",children:(0,I.jsx)(t$.A,{title:"Read Next",posts:i,analytic:"paper_read_next"})})]}),(0,I.jsx)(tY,{content:l,postType:p,postTitle:h})]})]})};var id=a(12388);let ih=e=>{let{post:t}=e,{country:a}=(0,tq.A)(),i="text-grey-900",r=(0,t2.S)(t.authors,a);return(0,I.jsx)(I.Fragment,{children:(null==r?void 0:r.length)>0&&(0,I.jsx)("div",{id:"post-authors",children:(0,I.jsxs)("div",{className:`author-info ${i}`,children:["by"," ",r.map((e,a)=>{var r,n;return(0,I.jsxs)(E.qh,{href:`/team/${e.slug}`,passHref:!0,children:[a>0&&(null==(r=t.authors)?void 0:r.length)-1===a&&(0,I.jsx)(E.EY,{color:i,fontSize:"text-xs",className:"px-1",children:"and"}),(0,I.jsx)(E.EY,{color:i,weight:"font-semibold xl:font-bold",fontSize:"text-xs",children:ep().decode(e.name)}),(null==(n=t.authors)?void 0:n.length)>2&&a<t.authors.length-2&&(0,I.jsx)(E.EY,{fontSize:"text-xs",weight:"font-semibold xl:font-bold",color:i,className:"pr-1",children:","})]},e.id)})]})})})};function iu(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,i)}return a}function im(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};
15t%2?iu(Object(a),!0).forEach(function(t){(0,z.A)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):iu(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}let ip=e=>{let{link:t,icon:a,title:i,type:r,pageType:n}=e,l=(0,eY.HH)();return(0,I.jsxs)("div",{className:"flex mb-6",children:[(0,I.jsx)("div",{className:"w-auto mb-3 mr-2",children:(0,I.jsx)("div",{className:"mb-2 mx-4 w-10 h-10",children:(0,I.jsx)("img",{src:a.src,alt:a.title,className:"w-10 h-10"})})}),(0,I.jsxs)("div",{className:"w-2/3 pl-4 flex flex-col",children:[(0,I.jsx)("div",{className:"mb-1",children:(0,I.jsx)(eL.fo,{category:a.title,size:"text-xss"})}),(0,I.jsx)(E.qh,{href:t,passHref:!0,onClick:()=>(0,s.$s)(`${n}_detail_related`,"click",`item_title: ${i}, category: ${r}, device: ${l}`),children:(0,I.jsx)(E.DZ,{weight:"font-semibold",color:"text-grey-900",lineHeight:"leading-tight",className:"mb-2",children:i})})]})]})},ig=e=>{let{relatedItems:t,pageType:a}=e,{0:r,1:n}=(0,i.useState)(0);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("nav",{className:"flex",children:["Related"].map((e,t)=>(0,I.jsx)(E.$n,{onPress:()=>n(t),className:`whitespace-nowrap -mb-0.5 px-1 py-2 mr-3 focus:outline-none border-b-2 border-transparent ${r===t&&"border-carrot-500"}`,children:(0,I.jsx)(E.EY,{weight:"font-semibold",color:r===t?"text-grey-900":"text-grey-700 hover:text-grey-900",children:e})},e))}),(()=>{if(0===r){let e=(0,Z.A)(t);return e&&(0,I.jsx)("div",{className:"up-next py-8",children:e.map(e=>(0,i.createElement)(ip,im(im({},e),{},{key:e.title,pageType:a})))})}})()]})};var ix=a(540),iy=a(14899);let ib=e=>{let{isDark:t=!1,showBtnText:a,post:i,isTalkingToolkit:r}=e,{downloadLink:n,hasDownloadLink:s,isManualDownloadRequired:l,handleDownloadClick:o}=tr(i,r),c=window.location.href,d="group border border-grey-200 rounded inline-flex space-x-2 justify-center items-center hover:border-transparent hover:bg-carrot-400",u="py-3 xl:px-4 px-3",m=t?"text-grey-40 group-hover:text-white/100":"text-black/75 group-hover:text-white",p=`${d} ${a?"px-4 py-2":"py-3 px-2.5"}`;return(0,I.jsxs)("div",{className:"flex flex-col space-y-2",children:[(0,I.jsxs)("div",{className:"flex justify-center",children:[s&&(0,I.jsx)(h.iH,{components:{main:(0,I.jsx)(E.$n,{className:`${d} ${u}`,onPress:()=>o(),children:(0,I.jsx)(E.EY,{as:"p",color:m,weight:"font-bold",lineHeight:"leading-none",children:"Download"})})},btnClass:`${d} ${u} w-[100px] xl:w-[108px]`,iconTheme:"gray"}),(0,I.jsx)(iy.f,{url:c,title:null==i?void 0:i.title,className:p,btnText:(0,I.jsxs)(I.Fragment,{children:[a&&(0,I.jsx)(E.EY,{color:"text-grey-40",weight:"font-bold",lineHeight:"leading-tight",children:"Share"}),(0,I.jsx)(ek.g,{icon:"share",className:`h-4 w-4 ${m}`,fixedWidth:!0})]})})]}),l&&(0,I.jsx)("div",{className:"px-4 py-4 flex justify-center",children:(0,I.jsx)(E.EY,{weight:"font-semibold",children:(0,I.jsxs)("em",{children:["Your download should begin automatically. Didn't work?"," ",(0,I.jsx)(E.qh,{href:n,className:"url",target:"_blank",children:"Try again."})," "]})})})]})},iv=e=>{var t,a;let{post:i,relatedItems:r}=e,{title:n,images:s,date:l,content:o,tags:d,type:u}=i,{country:m}=(0,tq.A)(),p=(0,t2.S)(i.authors,m),{handleDownloadClick:g}=tr(i,!0),f=(0,H.Ni)(o),x=(0,G.R)(i);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(tc,{images:s,alt:n}),(0,I.jsx)("div",{className:"contents",children:(0,I.jsxs)("div",{className:"flex flex-wrap xl:flex-nowrap",children:[(0,I.jsxs)("div",{className:"post-info-left w-full pt-8 bg-white xl:bg-grey-0 xl:pt-16 xl:pl-32 xl:pr-16 xl:w-percent-46",children:[(0,I.jsxs)("div",{className:"post-title mb-6 xl:mb-20 px-6 iphonese:px-4 xl:px-0",children:[x.length>0&&(0,I.jsx)("div",{className:"mb-6",children:(0,I.jsx)($.PostBreadcrumb,{items:x,fontSize:"text-xs xl:text-base",align:"xl:justify-start justify-center"})}),(0,I.jsx)(eX.A,{children:n})]}),(0,I.jsx)("div",{className:"hidden xl:block mb-6",children:(0,I.jsx)("div",{className:"grid gap-y-6",children:p.map(e=>(0,I.jsx)(id.A,{slug:e.slug,name:e.name,thumbnail:e.thumbnail,designation:(0,t2.l)(e.designation)},e.id))})}),(0,I.jsx)("div",{className:"xl:hidden px-6 iphonese:px-4 xl:px-0",children:(0,I.jsx)(ih,{post:i})}),(0,I.jsxs)("div",{className:"divide-y xl:divide-y-0 divide-grey-100 mb-12 xl:mb-0 border-b border-grey-100 xl:border-none",children:[(0,I.jsxs)("div",{className:"date-share xl:flex xl:justify-between pb-16 xl:pb-0",children:[(0,I.jsx)("div",{className:"text-center py-2",children:(0,I.jsx)(eF.A,{date:l})}),(0,I.jsx)("div",{className:"py-2",children:(0,I.jsx)("div",{className:"flex xl:justify-start justify-center space-x-1",children:(0,I.jsx)(ib,{post:i,isTalkingToolkit:!0})})})]}),(null==r||null==(t=r.posts)?void 0:t.length)>0&&(0,I.jsx)("div",{className:"block xl:hidden px-6 iphonese:px-4 xl:px-0 py-4",children:(0,I.jsx)(ix.A,{relatedItems:r,pageType:c.g6.Read})}),(null==r||null==(a=r.posts)?void 0:a.length)>0&&(0,I.jsx)("div",{className:"sources hidden xl:block pt-6",children:(0,I.jsx)(ig,{relatedItems:r,pageType:c.g6.Read})})]}),(0,I.jsxs)("div",{className:"hidden xl:block",children:[(0,I.jsx)(eJ,{tags:d}),(0,I.jsx)(tM,{})]})]}),(0,I.jsx)("div",{className:"post-content-right w-full xl:pt-24 xl:pr-32 xl:pl-18 xl:w-percent-54 xl:mb-20 xl:mt-6",children:(0,I.jsxs)("section",{className:"content-body",children:[(0,I.jsx)("div",{className:"px-6 iphonese:px-4 xl:px-0",children:(0,I.jsx)(tI,{content:f,type:u,relatedItems:r,trendingPapers:[],editorsPickPapers:[],similarPapers:[],post:i,similarTopicPostsData:null})}),(0,I.jsx)("div",{className:"flex mx-auto my-10",children:(0,I.jsx)(h.iH,{components:{main:(0,I.jsx)(E.$n,{onPress:()=>g(),className:"uppercase bg-carrot-500 hover:bg-carrot-700 rounded-sm px-12 py-4 mx-auto",children:(0,I.jsx)(E.EY,{as:"p",color:"text-white",weight:"font-bold",children:"Download Toolkit"})})},btnClass:"bg-carrot-500 hover:bg-carrot-700 rounded-sm text-white font-bold px-12 py-4 mx-auto w-64"})}),(0,I.jsx)("div",{className:"block xl:hidden px-6 iphonese:px-4 xl:px-0",children:(0,I.jsx)(eJ,{tags:d})}),(0,I.jsxs)("div",{className:"article-authors block xl:hidden py-8 px-6 iphonese:px-4 xl:px-0",children:[(0,I.jsx)("div",{className:"mb-4",children:(0,I.jsx)(E.EY,{weight:"font-semibold",children:"Authors"})}),(0,I.jsx)("div",{className:"grid gap-y-6",children:p.map(e=>(0,I.jsx)(id.A,{slug:e.slug,name:e.name,thumbnail:e.thumbnail,designation:(0,t2.l)(e.designation)},e.id))})]})]})})]})})]})};var iw=a(64470);let ij=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"control",a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(a)return tK;switch(e){case c.xj.Paper:case c.xj.Publication:switch(t){case"control":default:return ia;case"editorial":return aE;case"wiki":return ic}case c.xj.Infographic:return e5;case c.xj.TalkToolkit:return iv;case c.xj.Video:return iw.A;case c.xj.Blog:case c.xj.Other:return eA;default:return tK}},ik=e=>{let{title:t,content:a}=e;return(0,I.jsx)("div",{className:"flex flex-col py-2 justify-start items-start gap-4 self-stretch xl:mb-14 mb-10 space-y-5",children:(0,I.jsxs)("div",{className:"flex flex-col self-stretch bg-white rounded-lg border border-jordy-200 justify-start items-start",children:[(0,I.jsx)("div",{className:"flex self-stretch px-4 xl:px-5 py-4 bg-jordy-50 rounded-t-lg border-b border-jordy-200 justify-center items-center gap-4",children:(0,I.jsx)("div",{className:"flex grow shrink-0 basis-0 text-endeavour-500 text-sm font-bold font-proxima-nova leading-5 h-[9px] justify-start items-center",children:(0,t4.Ay)(t)})}),(0,I.jsx)("div",{className:"flex flex-col self-stretch p-4 xl:pt-4 pb-5 flex-col justify-start items-start gap-10",children:(0,I.jsx)("div",{className:"self-stretch text-grey-800 text-base xl:text-lg font-normal font-proxima-nova leading-[26px] xl:leading-[29.25px] space-y-5",children:a})})]})})},iN=e=>{let{src:t}=e,{0:a,1:r}=(0,i.useState)(!1),n=()=>{(0,s.$s)("Zoom Image","click",`item_name: ${t}`),r(!a)};return(0,I.jsx)(I.Fragment,{children:(0,I.jsxs)("div",{children:[(0,I.jsx)("img",{style:{cursor:"zoom-in",maxWidth:"100%",maxHeight:"100%"},onClick:n,src:t,alt:t}),a&&(0,I.jsx)(av.so,{children:(0,I.jsx)(E.lG,{title:t,isOpen:a,children:(0,I.jsxs)("div",{className:"fixed z-50 left-0 top-0 w-full h-full touch-auto overflow-auto",onClick:n,children:[(0,I.jsx)("img",{className:"w-10/12 mt-10 mb-10 bg-white mx-auto",src:t,alt:t}),(0,I.jsx)("div",{className:"fixed top-0 w-full h-16",children:(0,I.jsx)("div",{className:"inline-block float-right py-7 px-10",children:(0,I.jsx)(ek.g,{icon:"times",className:"text-2xl text-slate-400"})})})]})})})]})})},i_=e=>{let{html:t,postType:a}=e,i=eO().load(t),r=i("img").parent("a").attr("href"),n=i("img").attr("src"),s=i("img").attr("height"),l=i("img").attr("width"),o=n&&(0,F.AE)(n),d=i("img").attr("alt")||"",h=(0,ty.Lo)([i("img").attr("class"),s&&l?"outline-greyish":""]),u=s&&l?(0,I.jsx)(m(),{loader:F.R2,src:o,alt:d,height:Number(s),width:Number(l),objectFit:"cover",className:h}):(0,I.jsx)(m(),{loader:F.R2,className:h,src:o,alt:d,objectFit:"contain",layout:"fill"}),p=(0,I.jsx)(iN,{src:o});if(s&&l){let e=(0,I.jsxs)("div",{className:"my-6 flex justify-center",children:[(0,I.jsx)("div",{className:"xl:block hidden",children:p}),(0,I.jsx)("div",{className:"xl:hidden",children:u})]});return r?(0,I.jsx)("a",{href:r,target:"_blank",rel:"noopener noreferrer",children:e}):e}let g=(0,I.jsxs)("div",{className:"relative w-full my-6",children:[(0,I.jsx)("div",{className:"xl:block hidden",children:p}),(0,I.jsx)("div",{className:"xl:hidden h-64",children:u})]});return r?a===c.xj.Events?(0,I.jsx)("div",{className:"relative w-full",children:(0,I.jsx)(E.qh,{href:r,target:"_blank",children:(0,I.jsx)(m(),{loader:F.R2,src:o,alt:d,objectFit:"contain",width:720,height:405})})}):(0,I.jsx)("a",{href:r,target:"_blank",rel:"noopener noreferrer",children:g}):g},iS=()=>{let{0:e,1:t}=(0,i.useState)("yaqeeninstitute.org"),a=(0,eY.HH)();return(0,i.useEffect)(()=>{t(window.location.origin+window.location.pathname)},[]),(0,I.jsx)("div",{id:"donate-cta",className:"flex xl:flex-row flex-col mt-6 items-center xl:space-x-10 bg-gray-50 py-10 px-6 border border-black/10 md:mx-auto",children:(0,I.jsxs)("div",{className:"w-auto",children:[(0,I.jsx)("div",{className:"mb-6",children:(0,I.jsxs)(E.DZ,{fontSize:"xl:text-4xl text-3xl",weight:"font-extrabold",color:"text-endeavour-500",lineHeight:"xl:leading-10 leading-tight",children:["Your actions echo in eternity. Act for your"," ",(0,I.jsx)("span",{className:"text-carrot-500",children:(0,I.jsx)("i",{children:"akhirah."})})]})}),(0,I.jsxs)("div",{id:"donate-cta",className:"flex items-center space-x-2",children:[(0,I.jsx)(E.qh,{href:`/donate?int_source=${e}&int_campaign=general&int_content=paper_content`,target:"_blank",onClick:()=>{(0,s.$s)("paper","click",`item_title: donate-btn, device: ${a}`)},className:"bg-carrot-500 hover:bg-carrot-800 active:bg-carrot-900 rounded px-4 py-2",children:(0,I.jsx)(E.EY,{weight:"font-bold",color:"text-white",children:"Make a donation"})}),(0,I.jsx)(E.qh,{href:"/why-donate",target:"_blank",onClick:()=>{(0,s.$s)("paper","click",`item_title: why-donate-btn, device: ${a}`)},className:"bg-white hover:bg-gray-100 active:bg-gray-200 border border-gray-200 rounded px-4 py-2",children:(0,I.jsx)(E.EY,{weight:"font-bold",color:"text-gray-900",children:"Why donate?"})})]})]})})};var iA=a(75923);let iC=()=>{let{showNewsletterForm:e}=(0,et.K)();return e?(0,I.jsx)("div",{id:"subscribe-cta",className:"bg-gray-50 py-10 px-6 border border-black/10 md:mx-auto",children:(0,I.jsxs)("div",{className:"w-auto",children:[(0,I.jsx)("div",{className:"mb-6",children:(0,I.jsxs)(E.DZ,{fontSize:"xl:text-4xl text-3xl",weight:"font-extrabold",color:"text-endeavour-500",lineHeight:"xl:leading-10 leading-tight",children:["Seek ",(0,I.jsx)("span",{className:"text-carrot-500",children:"benef
15icial knowledge."})," Sign-up and never miss a new paper!"]})}),(0,I.jsx)("div",{children:(0,I.jsx)(iA.S,{eventName:"paper_subscribe_cta",surface:"about_page",trackDisplay:!0,source:ee.xY.PAPER_PAGE})})]})}):(0,I.jsx)(I.Fragment,{})};var iP=a(27365);let iT=e=>{let{handleDownloadClick:t,backgroundColor:a,downloadLink:i}=e,r="text-white",n="Download",s=(0,ty.Lo)([`group rounded inline-flex space-x-2 items-center border-transparent ${a??"bg-carrot-400"} h-10 py-2.5 px-3 xl:px-4`,r]),l=(0,aw.T)({}),{firebaseAuth:o}=(0,h.m9)(),c=[v.j_.VerifiedAuth,v.j_.SignedOut,v.j_.AuthDismissed].includes(o.userInfo.authState),d=()=>{t(),b.Cj.getItem(b.UT.PaperPopupDismissed)||l.open()};return(0,I.jsxs)("div",{className:"flex flex-col",children:[(0,I.jsx)(iP.$,{isOpen:l.isOpen,onClose:()=>l.close(),onDismiss:()=>{b.Cj.setItem(b.UT.PaperPopupDismissed,!0,b.fI.OneWeek),l.close()}}),(0,I.jsx)(E.qh,{href:i||"#",role:"button","aria-label":n,className:s,onClick:e=>{e.preventDefault(),c&&d()},onKeyDown:e=>{" "===e.key&&(e.preventDefault(),c&&d())},children:(0,I.jsx)(E.EY,{as:"p",color:r,weight:"font-bold",lineHeight:"leading-none",children:n})})]})};var iO=a(89610);function iE(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,i)}return a}function iI(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?iE(Object(a),!0).forEach(function(t){(0,z.A)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):iE(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}let iD=e=>{let{url:t,title:a,logTitle:i}=e,r=e=>{(0,s.$s)(i,"share",`Share via ${e}: ${t}`)},n=()=>{(0,tJ.lW)(t),r("Copy URL")};return(0,I.jsxs)("div",{id:"share-platforms",className:"flex items-center space-x-2",children:[(0,I.jsx)(aj.uI,{url:t,title:a,onClick:()=>r("Facebook"),children:(0,I.jsx)("div",{className:"inline-flex p-2.5 border border-grey-200 rounded hover:bg-grey-200",children:(0,I.jsx)(ek.g,{icon:["fab","facebook-f"],className:"h-4 w-4 text-fb",fixedWidth:!0})})}),(0,I.jsx)(aj.r6,{url:t,title:a,onClick:()=>r("Twitter"),style:null,children:(0,I.jsx)("div",{className:"inline-flex p-2.5 border border-grey-200 rounded hover:bg-grey-200",children:(0,I.jsx)(ek.g,{icon:["fab","x-twitter"],className:"h-4 w-4 text-twitter",fixedWidth:!0})})}),(0,I.jsx)(aj.Kz,{url:t,title:a,onClick:()=>r("WhatsApp"),children:(0,I.jsx)("div",{className:"inline-flex p-2.5 border border-grey-200 rounded hover:bg-grey-200",children:(0,I.jsx)(ek.g,{icon:["fab","whatsapp"],className:"h-4 w-4 text-whatsapp",fixedWidth:!0})})}),(0,I.jsx)(E.$n,{onPress:n,className:"hidden xl:inline-flex p-2.5 border border-grey-200 rounded hover:bg-grey-200","aria-label":"Copy Link",children:(0,I.jsx)(ek.g,{icon:["far","link"],className:"h-4 w-4 text-gray-900",fixedWidth:!0})}),(0,I.jsx)(aj.Ot,{url:t,subject:a,className:"xl:flex hidden space-x-3 group-hover:bg-carrot-400",children:(0,I.jsx)("div",{className:"inline-flex p-2.5 border border-grey-200 rounded hover:bg-grey-200",children:(0,I.jsx)(ek.g,{icon:"envelope",className:"h-4 w-4 text-gray-900",fixedWidth:!0})})}),(0,I.jsxs)(iq,{className:"inline-flex items-center rounded bg-white p-2.5 border border-grey-200 xl:hidden",btnText:(0,I.jsx)(ek.g,{icon:"share",className:"text-grey-900",fixedWidth:!0}),children:[(0,I.jsxs)(E.$n,{onPress:n,className:"inline-flex p-2.5 hover:bg-grey-200 items-center space-x-2","aria-label":"Copy Link",children:[(0,I.jsx)(ek.g,{icon:["far","link"],className:"h-4 w-4 text-gray-900",fixedWidth:!0}),(0,I.jsx)(E.EY,{as:"p",weight:"font-semibold",lineHeight:"leading-none",children:"Copy Link"})]}),(0,I.jsx)(aj.Ot,{url:t,subject:a,className:"flex group-hover:bg-carrot-400 w-full",children:(0,I.jsxs)("div",{className:"inline-flex p-2.5 hover:bg-grey-200 space-x-2",children:[(0,I.jsx)(ek.g,{icon:"envelope",className:"h-4 w-4 text-gray-900",fixedWidth:!0}),(0,I.jsx)(E.EY,{as:"p",weight:"font-semibold",lineHeight:"leading-none",children:"Email"})]})})]})]})},iq=e=>{let{btnText:t,className:a,children:r}=e,n=(0,aw.T)({}),s=(0,i.useRef)(),l=(0,i.useRef)(),{triggerProps:o,overlayProps:c}=(0,av.oJ)({type:"dialog"},n,s),{overlayProps:d}
15=(0,av.v8)({targetRef:s,overlayRef:l,placement:"top",offset:5,isOpen:n.isOpen}),{buttonProps:h}=(0,ab.s)({onPress:()=>n.open(),"aria-label":"More Options"},s);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("button",iI(iI(iI({},h),o),{},{className:a,ref:s,children:t})),(0,I.jsx)(av.so,{children:(0,I.jsx)(E.AM,iI(iI(iI({},c),d),{},{ref:l,title:"Share post",isOpen:n.isOpen,onClose:n.close,role:"dialog",modalClassName:"bg-white shadow p-4",children:r}))})]})};function iM(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,i)}return a}function i$(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?iM(Object(a),!0).forEach(function(t){(0,z.A)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):iM(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}let iH=e=>{let{active:t=!1,visible:a=!0,className:i=""}=e;return(0,I.jsx)("div",{className:`w-1.5 h-1.5 shrink-0 ${i} ${a?"":"invisible"}`,children:(0,I.jsx)("div",{className:`w-full h-full rotate-45 ${t?"bg-carrot-500":"border border-carrot-500"}`})})},iR=e=>{let{content:t,postType:a,postTitle:r,showFAQs:n,onBeforeNavigate:l,variant:o="default"}=e,d="explorer"===o,{0:h,1:u}=(0,i.useState)(null),m=tF(t,a),p=(0,i.useMemo)(()=>d?((e,t)=>{if(!e)return[];let a=[];return t!==c.xj.Paper&&t!==c.xj.Publication||e.forEach((e,t)=>{let i;if(e.length<=1)return;let r=e[0].trim().replace(/<\/?strong>/gi,"").replace(/<sup>.*<\/sup>/gi,"");if(!r||/<\/?translation>/.test(r))return;a.push({title:r,id:`section-${t}`,level:2});let n=e.slice(1).join("\n"),s=/<h3([^>]*)>([\s\S]*?)<\/h3>/gi,l=0;for(;null!==(i=s.exec(n));){let e=i[1]||"",r=i[2].trim().replace(/<\/?strong>/gi,"").replace(/<sup>.*<\/sup>/gi,"");if(r){let i=/\sid\s*=\s*["']([^"']*)["']/i.exec(e),n=i?i[1]:`section-${t}-h3-${l}`;a.push({title:r,id:n,level:3})}l++}}),a})(t,a):[],[d,t,a]),g=(0,i.useCallback)(e=>{let t=function(){let a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;document.getElementById(e)?tz.XG.scrollTo(e,{smooth:!0,offset:-128,duration:500}):a<20&&requestAnimationFrame(()=>t(a+1))};requestAnimationFrame(()=>t())},[]),f=(null==m?void 0:m.filter(Boolean))||[],x=n&&f.length>=2?null==m?void 0:m.lastIndexOf(f[f.length-1]):-1,y=(0,I.jsxs)(tz.N_,{to:"paper-faqs",spy:!0,onSetActive:()=>u("faqs"),offset:-128,className:d?"flex gap-2 items-center py-1 w-full cursor-pointer":"inline-flex space-x-2 items-center cursor-pointer",onClick:()=>(0,s.$s)("paper_toc_desktop","click",`item_name: ${r}, section: Frequently Asked Questions`),children:[d?(0,I.jsx)(iH,{active:"faqs"===h}):(0,I.jsx)(E.EY,{weight:"font-semibold",fontSize:"text-sm",className:"faqs"===h?"visible":"invisible",children:"â¢"}),(0,I.jsx)("span",{className:d?`font-source-serif-pro text-sm leading-[1.429] flex-1 ${"faqs"===h?"font-semibold text-[#0f172b]":"font-normal text-[#314158]"}`:`font-semibold text-sm ${"faqs"===h?"text-endeavour-700":"text-grey-700"}`,children:"Frequently Asked Questions"})]},"paper-faqs");return d?(0,I.jsx)(iz,{entries:p,active:h,setActive:u,postTitle:r,onBeforeNavigate:l,scrollAfterTabSwitch:g,faqLink:n?y:null}):(0,I.jsxs)(I.Fragment,{children:[m.map((e,t)=>e?(0,I.jsxs)(I.Fragment,{children:[x===t&&y,(0,I.jsxs)(tz.N_,{to:`section-${!e?t+1:t}`,spy:!0,onSetActive:()=>u(t),offset:-128,className:d?"flex gap-2 items-center py-1 w-full cursor-pointer":"inline-flex space-x-2 items-center cursor-pointer",onClick:()=>{(0,s.$s)("paper_toc_desktop","click",`item_name: ${r}, section: ${e}`),(null==l?void 0:l())&&g(`section-${!e?t+1:t}`)},children:[d?(0,I.jsx)(iH,{active:h===t}):(0,I.jsx)(E.EY,{weight:"font-semibold",fontSize:"text-sm",className:h===t?"visible":"invisible",children:"â¢"}),(0,I.jsx)("span",{className:d?`font-source-serif-pro text-sm leading-[1.429] flex-1 ${h===t?"font-semibold text-[#0f172b]":"font-normal text-[#314158]"}`:`font-semibold text-sm ${h===t?"text-endeavour-700":"text-grey-700"}`,dangerouslySetInnerHTML:{__html:e}})]},e)]}):null),n&&-1===x&&y]})},iz=e=>{let{entries:t,active:a,setActive:r,postTitle:n,onBeforeNavigate:l,scrollAfterTabSwitch:o,faqLink:c}=e,d=(0,i.useMemo)(()=>{let e=[];return t.forEach(t=>{2===t.level?e.push({parent:t,children:[]}):3===t.level&&e.length>0&&e[e.length-1].children.push(t)}),e},[t]),{0:h,1:u}=(0,i.useState)(()=>{let e={};return d.forEach(t=>{e[t.parent.id]=!0}),e});(0,i.useEffect)(()=>
15{if(0===t.length)return;let e=()=>{let e=.33*window.innerHeight,a=null,i=-1/0,n=-1/0;t.forEach(t=>{let r=document.getElementById((e=>{let t=/^section-(\d+)$/.exec(e);return t?`title-${t[1]}`:e})(t.id));if(!r)return;let s=r.getBoundingClientRect().top;!(s>e)&&(t.level>i||t.level===i&&s>n)&&(i=t.level,n=s,a=t.id)}),a&&r(a)},a=0,i=()=>{cancelAnimationFrame(a),a=requestAnimationFrame(e)};window.addEventListener("scroll",i,{passive:!0}),window.addEventListener("resize",i,{passive:!0});let n=window.setTimeout(e,0);return()=>{window.clearTimeout(n),cancelAnimationFrame(a),window.removeEventListener("scroll",i),window.removeEventListener("resize",i)}},[t,r]);let m=(e,t,i)=>{let r=a===e.id,c=h[e.id]??!0;return(0,I.jsxs)("div",{className:"flex gap-2 items-start py-1 w-full",children:[t&&(0,I.jsx)(iH,{visible:!1,className:"mt-[9px]"}),(0,I.jsx)(iH,{active:r,visible:r,className:"mt-[10px]"}),(0,I.jsx)(tz.N_,{to:e.id,offset:-128,className:"flex-1 cursor-pointer",onClick:()=>{(0,s.$s)("paper_toc_desktop","click",`item_name: ${n}, section: ${e.title}`),(null==l?void 0:l())&&o(e.id)},children:(0,I.jsx)("span",{className:`font-source-serif-pro text-sm leading-[1.429] ${r?"font-semibold text-[#0f172b]":"font-normal text-[#314158]"}`,dangerouslySetInnerHTML:{__html:e.title}})}),i&&(0,I.jsx)("button",{onClick:t=>((e,t)=>{t.preventDefault(),t.stopPropagation(),u(t=>i$(i$({},t),{},{[e]:!t[e]}))})(e.id,t),className:"flex items-center justify-center w-3 h-3 shrink-0 mt-1","aria-label":c?"Collapse":"Expand",children:(0,I.jsx)(ek.g,{icon:c?"chevron-up":"chevron-down",className:"text-[#0f172b] text-[10px]"})})]},e.id)};return(0,I.jsxs)(I.Fragment,{children:[d.map(e=>{let t=e.children.length>0,a=h[e.parent.id]??!0;return(0,I.jsxs)("div",{className:"w-full",children:[m(e.parent,!1,t),t&&a&&(0,I.jsx)("div",{className:"flex flex-col",children:e.children.map(e=>m(e,!0,!1))})]},e.parent.id)}),c]})},iF=e=>{var t;let{title:a,post:r}=e,l=(0,i.useRef)(null),{0:o,1:h}=(0,i.useState)(0),u=null==r||null==(t=r.acf)?void 0:t.paperAudio,m=r??null,p=(null==r?void 0:r.type)===c.xj.Blog?"blog":"paper",g=[1,1.5,2].map((e,t)=>(0,I.jsx)("div",{children:(0,I.jsx)(E.$n,{className:`rounded-full h-6 w-6 ${o===t?"bg-white":"bg-white/50"}`,onPress:()=>{l.current.audio.current.playbackRate=e,h(t),(0,s.$s)("audio_player","onPlayBackSpeed",`title: ${a}, speed: ${e}x`)},children:(0,I.jsxs)(E.EY,{as:"p",color:`${o===t?"text-black":"text-black/50"}`,weight:"font-semibold",fontSize:"text-[0.65rem]",letterSpacing:"tracking-tight-1",lineHeight:"leading-tight",children:[e,"x"]})},t)},t)),f=(0,i.useCallback)(()=>l.current.audio.current.currentTime,[]),x=(0,i.useCallback)(()=>f()/l.current.audio.current.duration*100,[f]),{trackInteraction:y,getInteraction:b}=(0,n.w)(),v=(0,i.useRef)(),w=(0,i.useCallback)(e=>{(0,s.$s)("audio_player",`${e}`,`title: ${a}, duration: ${f()}`),v.current&&clearTimeout(v.current),v.current=setTimeout(()=>{["onPlay","onPause","onEnded","onSeeked"].includes(e)&&m&&y({post:m,type:d.X8.AudioProgress,value:f(),percentValue:x()})},3e3)},[m,a,y,x,f]);return(0,i.useEffect)(()=>()=>{v.current&&clearTimeout(v.current)},[]),(0,i.useEffect)(()=>{m&&b(d.X8.AudioProgress).then(e=>{if(e){var t,a;let i=null==e||null==(t=e.result)||null==(t=t.score)?void 0:t.raw;i&&i>0&&null!=l&&null!=(a=l.current)&&null!=(a=a.audio)&&null!=(a=a.current)&&a.currentTime&&(l.current.audio.current.currentTime=i)}})},[m,b]),(0,I.jsx)(I.Fragment,{children:(0,I.jsx)("div",{"data-audio-player":!0,children:(0,I.jsx)(aI.A,{ref:l,preload:"none",src:u,layout:"horizontal-reverse",showJumpControls:!1,customVolumeControls:[],customIcons:{play:(0,I.jsx)(ek.g,{icon:ej.ijD,className:"h-8 w-8 text-black",fixedWidth:!0}),pause:(0,I.jsx)(ek.g,{icon:ej.G1Y,className:"h-8 w-8 text-black",fixedWidth:!0})},customProgressBarSection:[aI.n.PROGRESS_BAR,aI.n.CURRENT_TIME,(0,I.jsx)("div",{className:"mx-1 text-grey-700",children:"/"},""),aI.n.DURATION],header:[(0,I.jsxs)(E.EY,{as:"p",color:"text-grey-900",weight:"font-semibold",fontSize:"text-sm",children:["Listen to this ",p]},"0")],customControlsSection:[aI.n.MAIN_CONTROLS,aI.n.ADDITIONAL_CONTROLS],customAdditionalControls:[(0,I.jsx)("div",{className:"grid grid-cols-5 ga
15p-1 ml-3 mr-14",children:g},"1")],onPlay:()=>w("onPlay"),onPause:()=>w("onPause"),onEnded:()=>w("onEnded"),onSeeked:()=>w("onSeeked"),onAbort:()=>w("onAbort")})})})},iY=()=>(0,I.jsx)("div",{id:"subscribe-cta",className:"xl:py-16 py-8",children:(0,I.jsxs)("div",{className:"mx-auto grid xl:grid-cols-3 xl:gap-x-8",children:[(0,I.jsx)("div",{className:"xl:col-span-2 mb-6",children:(0,I.jsx)(E.DZ,{fontSize:"xl:text-4xl text-3xl",weight:"font-extrabold",color:"text-endeavour-500",lineHeight:"xl:leading-10 leading-tight",children:"Want the latest updates and curated content from Yaqeen? Sign up for our newsletter!"})}),(0,I.jsx)("div",{children:(0,I.jsx)(iA.S,{eventName:"homepage_subscribe_cta",source:ee.xY.HOME_PAGE})})]})});var iL=a(84957);let iB=e=>{let{title:t,children:a}=e;return(0,I.jsx)(t3.z,{title:t,anchorClassName:"font-bold text-carrot-600 font-proxima-nova cursor-pointer group inline-flex items-center rounded-md hover:text-opacity-100 focus:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-opacity-75",desktopLabel:t,mobileLabel:t,placeholderL
15abel:t,desktopPanelClassName:"absolute z-10 min-w-[220px] md:min-w-[280px] max-w-[360px] max-h-[220px] p-4 bg-white rounded-lg shadow justify-start items-start gap-5",desktopContentClassName:"relative overflow-y-auto w-full h-full font-normal font-source-serif-pro text-sm leading-5 min-w-[188px] md:min-w-[244px] max-w-[328px] max-h-[176px] break-words",mobilePanelClassName:"absolute z-10 max-w-[344px] max-h-[193px] p-4 bg-white rounded-lg shadow justify-start items-start gap-5",mobileContentClassName:"relative overflow-y-auto w-full h-full font-normal font-source-serif-pro text-sm leading-5 max-w-[312px] max-h-[157px] break-words",children:a})},iU=e=>{let{translationNumber:t,content:a}=e;return(0,I.jsx)("div",{className:"flex flex-col py-2 justify-start items-start gap-4 self-stretch",children:(0,I.jsxs)("div",{className:"flex flex-col self-stretch bg-white rounded-lg border border-jordy-200 justify-start items-start",children:[(0,I.jsxs)("div",{className:"flex self-stretch px-4 xl:px-5 py-4 bg-jordy-50 rounded-t-lg border-b border-jordy-200 justify-center items-center gap-4",children:[(0,I.jsx)("div",{className:"flex grow shrink-0 basis-0 text-endeavour-500 text-sm font-bold font-proxima-nova leading-5 h-[9px] justify-start items-center",children:"Translation"}),(0,I.jsx)("div",{className:"justify-center items-center flex h-[9px]",children:(0,I.jsx)("div",{className:" text-right text-endeavour-500 text-sm font-bold font-['Proxima Nova'] leading-tight",children:(0,t4.Ay)(t)})})]}),(0,I.jsx)("div",{className:"flex flex-col self-stretch p-4 xl:pt-4 pb-5 flex-col justify-start items-start gap-10",children:(0,I.jsx)("div",{className:"self-stretch text-grey-800 text-base xl:text-lg font-normal font-proxima-nova leading-[26px] xl:leading-[29.25px] space-y-5",children:a})})]})})};var iW=a(97114),iG=a(52916),iZ=a(69158);function iQ(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,i)}return a}function iV(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?iQ(Object(a),!0).forEach(function(t){(0,z.A)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):iQ(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}let iK="flex items-center gap-2.5 px-4 py-2 w-full hover:bg-slate-50 transition-colors",iJ=e=>{let{children:t}=e;return(0,I.jsx)("span",{className:"text-[#314158] text-sm font-semibold font-proxima-nova leading-[1.429] whitespace-nowrap",children:t})},iX=e=>{let{state:t,url:a,title:r,logTitle:n,position:l="right",fromAqsa:o,appearTop:c=!1,top12:d,top1:h,doiUrl:u}=e,m=e=>{(0,s.$s)(n,"share",`Share via ${e}: ${a}${!0===o?" From Aqsa: true":""}`)},p=(0,i.useRef)(),{overlayProps:g}=(0,av.e)({onClose:()=>t.close(),shouldCloseOnBlur:!0,isOpen:t.isOpen,isDismissable:!0},p),f="default";d?f="top12":h&&(f="top1");let x={top12:"top-12",top1:"top-1",default:"top-12"}[f],y=`${c?"bottom-4":x} right-0`;return"book"===l?y="left-0 top-full mt-3":"left"===l&&(y="-left-9 top-8"),(0,I.jsx)(iW.n1,{restoreFocus:!0,children:(0,I.jsx)(iG.m.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:10},className:`absolute z-50 ${y}`,children:(0,I.jsxs)("div",iV(iV({id:"post_share_overlay",ref:p},g),{},{children:[(0,I.jsx)(av.Rz,{onDismiss:()=>t.close()}),(0,I.jsxs)("div",{className:"w-[140px] bg-white border border-slate-200 rounded py-1 shadow-[0px_10px_7.5px_rgba(0,0,0,0.1),0px_4px_3px_rgba(0,0,0,0.05)]",children:[(0,I.jsx)(E.$n,{onPress:()=>{(0,tJ.lW)(a),m("Copy URL")},className:"w-full text-left","aria-label":"Copy Link",children:(0,I.jsxs)("div",{className:iK,children:[(0,I.jsx)(ek.g,{icon:["far","link"],className:"text-[#314158] text-sm",fixedWidth:!0}),(0,I.jsx)(iJ,{children:"Copy link"})]})}),(0,I.jsx)(aj.Ot,{url:a,subject:r,beforeOnClick:()=>m("Email"),className:"w-full text-left",children:(0,I.jsxs)("div",{className:iK,children:[(0,I.jsx)(ek.g,{icon:["fas","envelope"],className:"text-[#314158] text-sm",fixedWidth:!0}),(0,I.jsx)(iJ,{children:"Email"})]})}),u&&(0,I.jsx)(E.$n,{onPress:()=>{(0,s.$s)("doi","click",`DOI: ${u}`),window.open(u,"_blank","noopener,noreferrer"),t.close()},className:"w-full text-left","aria-label":"DOI",children:(0,I.jsxs)("div",{className:iK,children:[(0,I.jsxs)("svg",{width:"17",height:"17",viewBox:"0 0 20 20",fill:"none",className:"shrink-0",children:[(0,I.jsx)("circle",{cx:"10",cy:"10",r:"10",fill:"black"}),(0,I.jsx)("text",{x:"10",y:"13.5",textAnchor:"middle",fill:"white",fontSize:"10",fontWeight:"900",fontFamily:"Proxima Nova, sans-serif",children:"doi"})]}),(0,I.jsx)(iJ,{children:"DOI"})]})}),(0,I.jsx)(aj.uI,{url:a,title:r,beforeOnClick:()=>m("Facebook"),className:"w-full text-left",children:(0,I.jsxs)("div",{className:iK,children:[(0,I.jsx)(ek.g,{icon:["fab","facebook"],className:"text-[#1877F2] text-sm",fixedWidth:!0}),(0,I.jsx)(iJ,{children:"Facebook"})]})}),(0,I.jsx)(aj.r6,{url:a,title:r,beforeOnClick:()=>m("Twitter"),className:"w-full text-left",children:(0,I.jsxs)("div",{className:iK,children:[(0,I.jsx)(ek.g,{icon:["fab","x-twitter"],className:"text-black text-sm",fixedWidth:!0}),(0,I.jsx)(iJ,{children:"X / Twitter"})]})}),(0,I.jsx)(aj.Kz,{url:a,title:r,beforeOnClick:()=>m("WhatsApp"),className:"w-full text-left",children:(0,I.jsxs)("div",{className:iK,children:[(0,I.jsx)(ek.g,{icon:["fab","whatsapp"],className:"text-[#25D366] text-sm",fixedWidth:!0}),(0,I.jsx)(iJ,{children:"Whatsapp"})]})})]}),(0,I.jsx)(av.Rz,{onDismiss:()=>t.close()})]}))})})},i0=e=>{let t=(0,aw.T)({}),{darkMode:a,fullWidth:i,hideLabel:r=!1,overrideClassName:n=null,overrideIconClassName:s=null,appearTop:l=!1,position:o="right"}=e,c=a?`bg-slate-700 h-10 py-2 px-3 rounded text-black ${i?"w-full":""}`:`${t.isOpen&&"bg-grey-100"} border h-10 py-2 px-3 rounded text-black ${i?"w-full":""} ${r?"bg-white":""}`,d=a?`text-white ${s||""}`:`${s||""}`,h="relative left-24 -top-4";return"book"===o?h="":"left"===o?h="relative":l&&(h="relative left-0 -top-4"),(0,I.jsx)(I.Fragment,{children:(0,I.jsxs)("div",{className:`flex items-center h-10 relative ${i?"w-full":""}`,children:[(0,I.jsxs)(E.$n,{"aria-label":"Post share",onPress:()=>{t.isOpen?t.close():t.open()},className:n||c,children:[(0,I.jsx)(ek.g,{icon:"share",className:d})," ",!r&&(0,I.jsx)("span",{className:`ml-1 font-bold ${a?"text-white":""}`,children:"Share"})]}),(0,I.jsx)("div",{className:h,children:(0,I.jsx)(iZ.N,{children:t.isOpen&&(0,I.jsx)(iX,iV({state:t},e))})})]})})},i1=e=>{var t;let{variant:a="control",post:u,relatedItems:m,topics:p,videoCardItems:g,playlist:f,readNextPosts:x,playlistTitle:y,similarPapers:b,trendingPapers:v,editorsPickPapers:w,parsedPaperContent:j,relatedPosts:k,footnotes:N,similarTopicPostsData:_,authorDetails:S,moreLikeThisPosts:A}=e,C=null==u?void 0:u.status,P=null==u?void 0:u.type,{isEditor:T}=(0,h.wV)(),O=(0,r.useRouter)(),{trackInteraction:E}=(0,n.w)(),{setPost:D}=(0,o.r)();if((0,i.useEffect)(()=>{(T||C===c.nz.Publish)&&O.isReady&&E({post:u,type:d.X8.PageView})},[O.asPath,O.isReady]),(0,i.useEffect)(()=>(D(u),()=>D(void 0)),[u,D]),!T&&C!==c.nz.Publish)return(0,s.c_)(`Content Not Found: ${(null==u?void 0:u.slug)??"No post found"}`),l.A.log("Content not found",u??"No post found",l.$.ERROR),(0,I.jsx)("h2",{children:"Not found"});let q=ij(P,a,(null==u||null==(t=u.contentType)?void 0:t.find(e=>"printables"===e.slug&&0===e.parent))!==void 0);return(0,I.jsx)("div",{className:"post-body flex flex-1 flex-col bg-white",children:(0,I.jsx)(q,{variant:a,post:u,relatedItems:m,topics:p,playlist:f,videoCardItems:g,readNextPosts:x,playlistTitle:y,similarPapers:b,trendingPapers:v,editorsPickPapers:w,parsedPaperContent:j,relatedPosts:k,footnotes:N,similarTopicPostsData:_,authorDetails:S,moreLikeThisPosts:A})})}},29431:(e,t,a)=>{"use strict";a.d(t,{F:()=>d});var i=a(14232),r=a(18125),n=a(92797),s=a(18334),l=a(98866),o=a(37876);let c=[{value:"summary",label:"Inaccurate summary"},{value:"key_points",label:"Inaccurate key point"},{value:"transcript",label:"Inaccurate transcript"},{value:"quiz_question",label:"Wrong or unclear question"},{value:"quiz_answer",label:"Wrong answer marked as correct"},{value:"other",label:"Other issue"}],d=e=>{let{videoId:t,videoTitle:a,section:d,questionId:h,questionText:u}=e,{0:m,1:p}=(0,i.useState)(!1),{0:g,1:f}=(0,i.useState)(""),{0:x,1:y}=(0,i.useState)(""),{0:b,1:v}=(0,i.useState)(!1),w=(0,i.useRef)(null),j=c.filter(e=>"summary"===d?["summary","key_points","other"].includes(e.value):"transcript"===d?["transcript","other"].includes(e.value):"quiz"!==d||["quiz_question","quiz_answer","other"].includes(e.value)),k=(0,i.useCallback)(()=>{p(!0),v(!1),f(""),y("")},[]),N=(0,i.useCallback)(()=>{p(!1)},[]);(0,i.useEffect)(()=>
15{if(!m)return;let e=e=>{"Escape"===e.key&&N()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[m,N]);let _=(0,i.useCallback)(()=>{g&&(n.v4(e=>{var i;e.setTag("feedback.section",d),e.setTag("feedback.category",g),e.setTag("feedback.videoId",String(t)),e.setLevel("info"),h&&e.setTag("feedback.questionId",h),e.setExtra("videoTitle",a),e.setExtra("comment",x||"(no comment)"),u&&e.setExtra("questionText",u),e.setExtra("pageUrl",window.location.href);let r=(null==(i=c.find(e=>e.value===g))?void 0:i.label)||g;s.wd(`Content feedback: ${r} â video ${t}`,"info")}),(0,l.wG)("Video Content Feedback",{"Video id":String(t),"Video title":a,"Feedback section":d,"Feedback category":g,"Question id":h}),v(!0))},[g,x,d,t,a,h,u]);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("button",{onClick:k,className:"inline-flex items-center gap-1.5 text-xs text-slate-400 hover:text-slate-600 transition-colors",title:"Report an issue with this content",children:[(0,o.jsx)(r.g,{icon:"flag",className:"text-[10px]"}),"Report issue"]}),m&&(0,o.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50 p-4",onClick:N,role:"dialog","aria-modal":"true","aria-label":"Report content issue",children:(0,o.jsxs)("div",{ref:w,className:"bg-white rounded-xl shadow-2xl w-full max-w-md overflow-hidden",onClick:e=>e.stopPropagation(),children:[(0,o.jsxs)("div",{className:"flex items-center justify-between px-5 py-4 border-b border-slate-200",children:[(0,o.jsx)("h3",{className:"font-semibold text-slate-900 text-base",children:"Report an issue"}),(0,o.jsx)("button",{onClick:N,className:"w-8 h-8 flex items-center justify-center rounded-full hover:bg-slate-100 transition-colors text-slate-500","aria-label":"Close",children:(0,o.jsx)(r.g,{icon:"times"})})]}),(0,o.jsx)("div",{className:"px-5 py-4",children:b?(0,o.jsxs)("div",{className:"text-center py-4",children:[(0,o.jsx)(r.g,{icon:"check-circle",className:"text-green-500 text-3xl mb-3"}),(0,o.jsx)("p",{className:"font-medium text-slate-900",children:"Thank you for your feedback!"}),(0,o.jsx)("p",{className:"text-sm text-slate-500 mt-1",children:"We'll review and correct this content."})]}):(0,o.jsxs)(o.Fragment,{children:[u&&(0,o.jsxs)("div",{className:"mb-3 p-2.5 bg-slate-50 rounded-lg",children:[(0,o.jsx)("p",{className:"text-xs text-slate-500 mb-1",children:"Question:"}),(0,o.jsx)("p",{className:"text-sm text-slate-700 line-clamp-2",children:u})]}),(0,o.jsx)("label",{className:"block text-sm font-medium text-slate-700 mb-1.5",children:"What's the issue?"}),(0,o.jsx)("div",{className:"space-y-1.5 mb-4",children:j.map(e=>(0,o.jsxs)("label",{className:`flex items-center gap-2.5 p-2.5 rounded-lg border cursor-pointer transition-colors ${g===e.value?"border-endeavour-500 bg-endeavour-50":"border-slate-200 hover:border-slate-300"}`,children:[(0,o.jsx)("input",{type:"radio",name:"feedback-category",value:e.value,checked:g===e.value,onChange:()=>f(e.value),className:"accent-endeavour-500"}),(0,o.jsx)("span",{className:"text-sm text-slate-700",children:e.label})]},e.value))}),(0,o.jsxs)("label",{className:"block text-sm font-medium text-slate-700 mb-1.5",children:["Additional details"," ",(0,o.jsx)("span",{className:"font-normal text-slate-400",children:"(optional)"})]}),(0,o.jsx)("textarea",{value:x,onChange:e=>y(e.target.value),placeholder:"Describe what's incorrect...",rows:3,className:"w-full px-3 py-2 border border-slate-200 rounded-lg text-sm text-slate-700 placeholder-slate-400 focus:outline-none focus:ring-2 focus:ring-endeavour-500 focus:border-transparent resize-none"})]})}),!b&&(0,o.jsxs)("div",{className:"flex justify-end gap-2 px-5 py-3 border-t border-slate-200 bg-slate-50",children:[(0,o.jsx)("button",{onClick:N,className:"px-4 py-2 text-sm font-medium text-slate-600 hover:text-slate-800 transition-colors",children:"Cancel"}),(0,o.jsx)("button",{onClick:_,disabled:!g,className:`px-4 py-2 text-sm font-medium rounded-lg transition-colors ${g?"bg-endeavour-500 text-white hover:bg-endeavour-600":"bg-slate-200 text-slate-400 cursor-not-allowed"}`,children:"Submit"})]}),b&&(0,o.jsx)("div",{className:"flex justify-end px-5 py-3 border-t border-slate-200 bg-slate-50",children:(0,o.jsx)("button",{onClick:N,className:"px-4 py-2 text-sm font-medium text-endeavour-500 hover:text-endeavour-600 transition-colors",children:"Close"})})]})})]})}},31303:(e,t,a)=>{"use strict";a.d(t,{B$:()=>s,UL:()=>n,sf:()=>r});var i=a(26195);let r=function(e){return e.RESEND_RECEIPT="Resend receipt",e.MODIFY_SUBSCRIPTION="Modify recurring donation",e.REFUND="Refund",e.STOP_SUBSCRIPTION="Stop recurring donation",e}({}),n={[i.li.Stripe]:90,[i.li.PayPal]:180},s=[{label:"Yaqeen US",type:"us",flag:"\uD83C\uDDFA\uD83C\uDDF8"},{label:"Yaqeen CA",type:"ca",flag:"\uD83C\uDDE8\uD83C\uDDE6"},{label:"Yaqeen MY",type:"my",flag:"\uD83C\uDDF2\uD83C\uDDFE"},{label:"Yaqeen UK",type:"uk",flag:"\uD83C\uDDEC\uD83C\uDDE7"},{label:"Yaqeen US Endowment",type:"ed",flag:"\uD83C\uDDFA\uD83C\uDDF8"},{label:"Yaqeen CA Endowment",type:"ca_ed",flag:"\uD83C\uDDE8\uD83C\uDDE6"}]},32738:(e,t,a)=>{"use strict";a.d(t,{t2:()=>U,PC:()=>X,s3:()=>L,z9:()=>B,lr:()=>E,kn:()=>$,et:()=>N.et,gt:()=>N.gt,M5:()=>V,rj:()=>Q,e0:()=>ee,sr:()=>J,mH:()=>z,OZ:()=>M,F4:()=>F,eF:()=>H,E0:()=>q,lm:()=>R,vE:()=>I,lw:()=>Y});var i=a(66284),r=a(24519),n=a.n(r),s=a(51131),l=a(55152),o=a.n(l);let c={"convert-connection-dhul-hijjah-reflections-with-sh-abdullah-oduro":[{name:"Sh. Abdullah Oduro",slug:"cap-abdullah-oduro"}]},d={type:"Event",name:"Ashura",sameAs:["https://www.wikidata.org/wiki/Q183283","https://en.wikipedia.org/wiki/Ashura"]},h={type:"Thing",name:"Muharram",sameAs:["https://www.wikidata.org/wiki/Q1952053","https://en.wikipedia.org/wiki/Muharram"]},u={type:"Person",name:"Musa (Moses)",sameAs:["https://www.wikidata.org/wiki/Q1990155","https://en.wikipedia.org/wiki/Moses_in_Islam"]},m={type:"Person",name:"Pharaoh (Firaun)",sameAs:["https://www.wikidata.org/wiki/Q4484957","https://en.wikipedia.org/wiki/Pharaoh_in_Islam"]},p={type:"Person",name:"Nuh (Noah)",sameAs:["https://www.wikidata.org/wiki/Q1782672","https://en.wikipedia.org/wiki/Noah_in_Islam"]},g={type:"Person",name:"Prophet Muhammad ï·º",sameAs:["https://www.wikidata.org/wiki/Q9458","https://en.wikipedia.org/wiki/Muhammad"]},f={type:"Person",name:"Husayn ibn Ali",sameAs:["https://www.wikidata.org/wiki/Q112128","https://en.wikipedia.org/wiki/Husayn_ibn_Ali"]},x={type:"Event",name:"Battle of Karbala",sameAs:["https://www.wikidata.org/wiki/Q626058","https://en.wikipedia.org/wiki/Battle_of_Karbala"]},y={"fasting-ashura-what-is-ashura-and-why-is-it-important":{about:[d,{type:"Thing",name:"Fasting in Islam",sameAs:["https://www.wikidata.org/wiki/Q178915","https://en.wikipedia.org/wiki/Fasting_in_Islam"]},h],mentions:[u,g,m,p,f,x,{type:"Person",name:"Ibn Taymiyya",sameAs:["https://www.wikidata.org/wiki/Q491558","https://en.wikipedia.org/wiki/Ibn_Taymiyya"]},{type:"Organization",name:"Quraysh",sameAs:["https://www.wikidata.org/wiki/Q485732","https://en.wikipedia.org/wiki/Quraysh"]},{type:"Place",name:"Medina",sameAs:["https://www.wikidata.org/wiki/Q35484","https://en.wikipedia.org/wiki/Medina"]}]},"what-happened-on-the-day-of-ashura-contextualizing-the-events-and-meaning-of-ashura":{about:[d,h],mentions:[u,m,p,g,f,x,{type:"Person",name:"Hasan
15ibn Ali",sameAs:["https://www.wikidata.org/wiki/Q182914","https://en.wikipedia.org/wiki/Hasan_ibn_Ali"]},{type:"Person",name:"Yazid I",sameAs:["https://www.wikidata.org/wiki/Q217442","https://en.wikipedia.org/wiki/Yazid_I"]},{type:"Thing",name:"Israelites (Children of Israel)",sameAs:["https://www.wikidata.org/wiki/Q51669","https://en.wikipedia.org/wiki/Israelites"]},{type:"Place",name:"Mount Judi",sameAs:["https://www.wikidata.org/wiki/Q1143135","https://en.wikipedia.org/wiki/Mount_Judi"]},{type:"Place",name:"State of Palestine",sameAs:["https://www.wikidata.org/wiki/Q219060","https://en.wikipedia.org/wiki/State_of_Palestine"]}]}};var b=a(16591);let v=e=>`https://www.wikidata.org/wiki/${e}`,w={"holistic-healing-islams-legacy-of-mental-health":[{name:"Mental health",sameAs:v("Q317309")},{name:"Medicine in the medieval Islamic world",sameAs:v("Q624029")},{type:"Person",name:"Ibn al-Qayyim al-Jawziyya",sameAs:v("Q119679")},{type:"Person",name:"Abu Zayd al-Balkhi",sameAs:v("Q335516")},{name:"Bimaristan",sameAs:v("Q1293141")}],"coping-with-pandemics-psychological-and-spiritual-lessons-from-islamic-history":[{type:"Event",name:"Plague of Amwas",sameAs:v("Q1567823")},{name:"Tawakkul",sameAs:v("Q3350606")},{type:"Event",name:"Black Death",sameAs:v("Q42005")},{type:"Person",name:"Ibn 'Ata Allah al-Iskandari",sameAs:v("Q2827445")}],"hijab-gendered-islamophobia-and-the-lived-experiences-of-muslim-women":[{name:"Hijab",sameAs:v("Q172317")},{name:"Islamophobia",sameAs:v("Q486296")},{name:"Intersectionality",sameAs:v("Q1516555")},{type:"Person",name:"Kimberl\xe9 Crenshaw",sameAs:v("Q6409990")}],"the-systematic-rohingya-genocide-and-the-muslim-moral-imperative":[{type:"Event",name:"Rohingya genocide",sameAs:v("Q28136551")},{name:"Rohingya people",sameAs:v("Q464529")},{type:"Place",name:"Myanmar",sameAs:v("Q836")},{type:"Organization",name:"International Court of Justice",sameAs:v("Q7801")},{type:"Person",name:"Aung San Suu Kyi",sameAs:v("Q36740")}],"islamophobia-and-the-law-unpacking-structural-islamophobia":[{name:"Islamophobia",sameAs:v("Q486296")},{name:"Act respecting the laicity of the State (Quebec Bill 21)",sameAs:v("Q63150841")},{name:"Naturalization Act of 1790",sameAs:v("Q2612823")},{type:"Person",name:"Frantz Fanon",sameAs:v("Q193670")},{name:"Secularism in France",sameAs:v("Q3220111")}],"islamophobia-in-american-society-culture-politics":[{name:"Islamophobia in the United States",sameAs:v("Q19895438")},{name:"Orientalism",sameAs:v("Q42865")},{type:"Person",name:"Edward Said",sameAs:v("Q201538")},{name:"USA PATRIOT Act",sameAs:v("Q221689")},{name:"Naturalization Act of 1790",sameAs:v("Q2612823")},{type:"Person",name:"Mahmood Mamdani",sameAs:v("Q723502")}],"the-far-rights-love-affair-with-islamophobia":[{name:"Far-right politics",sameAs:v("Q204481")},{type:"Organization",name:"National Rally (Front National)",sameAs:v("Q205150")},{type:"Organization",name:"Party for Freedom (PVV)",sameAs:v("Q332739")},{type:"Person",name:"Geert Wilders",sameAs:[v("Q105338"),"https://en.wikipedia.org/wiki/Geert_Wilders"]},{type:"Person",name:"Marine Le Pen",sameAs:v("Q12927")},{type:"Person",name:"Steve Bannon",sameAs:v("Q16146870")},{name:"Secularism in France (la\xefcit\xe9)",sameAs:v("Q3220111")},{type:"Organization",name:"Stasi Commission",sameAs:v("Q2986397")}]},j={"holistic-healing-islams-legacy-of-mental-health":[{name:"Sahih Muslim",sameAs:v("Q886659")}],"coping-with-pandemics-psychological-and-spiritual-lessons-from-islamic-history":[{name:"Sahih Muslim",sameAs:v("Q886659")},{name:"Sahih al-Bukhari",sameAs:v("Q1023470")}],"the-systematic-rohingya-genocide-and-the-muslim-moral-imperative":[{type:"Person",name:"ʿUmar ibn al-Khattab",sameAs:v("Q8467")},{type:"Person",name:"Al-Mu'tasim",sameAs:v("Q284550")},{type:"Event",name:"Circassian genocide",sameAs:v("Q2578778")},{type:"Place",name:"Cox's Bazar",sameAs:v("Q949746")}],"islamophobia-and-the-law-unpacking-structural-islamophobia":[{name:"USA PATRIOT Act",sameAs:v("Q221689")},{name:"Executive Order 13769",sameAs:v("Q28543928")}],"islamophobia-in-american-society-culture-politics":[{name:"Executive Order 13769",sameAs:v("Q28543928")}],"the-far-rights-love-affair-with-islamophobia":[{type:"Organization",name:"English Defence League",sameAs:v("Q1341558")},{type:"Organization",name:"Bloc Identitaire (Les Identitaires)",sameAs:v("Q868850")},{type:"Organization",name:"La Meute",sameAs:v("Q47163742")},{type:"Organization",name:"PEGIDA",sameAs:v("Q18609063")},{name:"Brexit",sameAs:v("Q7888194")}]};var k=a(57002),N=a(35916),_=a(47369);
15let S=new Set(["politics-practical-theology","islamophobia"]);var A=a(10676),C=a(55850),P=a(43425);function T(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,i)}return a}function O(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?T(Object(a),!0).forEach(function(t){(0,i.A)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):T(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}let E=e=>{var t,a,i,r,n,s;if(!e)return"";if(K(e)){let t=null==e||null==(i=e.contentTypes)?void 0:i.lvl0;if(t.includes("Video"))return e.url;if(t.includes("Paper"))return`/read/paper/${e.slug}`;if(t.includes("Infographic"))return`/infographics/${e.slug}`;if(t.includes("Audio"))return`/listen/${e.slug}`;if(t.includes("Book"))return`/read/books/${e.slug}`;if(t.includes("Curriculum")||t.includes("Other"))return e.url}let l=null==(t=D(e))?void 0:t.slug;if(l===k.xj.Reports)return e.slug;if([k.xj.Collection,k.xj.Series].includes(l))return`/${null==(a=D(e))?void 0:a.slug}/${e.slug}`;if(l===k.xj.Infographic)return`/infographics/${e.slug}`;if([k.xj.Paper,k.xj.Publication,k.xj.Translation].includes(l))return`/read/paper/${null==e?void 0:e.slug}`;if(l===k.xj.Books){let t=e.slug;return t?t.startsWith("/read/books/")?t:`/read/books/${t.replace(/^\/+/,"")}`:""}if(l===k.xj.Audio)return`/listen/${e.slug}`;if(l===k.xj.Video){let t=null==(r=(0,N.et)(e))?void 0:r.slug;if(t){if(t===k.xj.Series){let t=!Array.isArray(e.series)&&(null==(n=e.series)?void 0:n.slug)||Array.isArray(e.series)&&(null==(s=e.series)||null==(s=s[0])?void 0:s.slug);
15if(t)return`/watch/series/${t}/${e.slug}`}return`/watch/${t}/${e.slug}`}return`/watch/${e.slug}`}return`/read/blog/${e.slug}`},I=e=>{var t;let a=null==(t=D(e))?void 0:t.slug;return a?`/tag/${a}`:""},D=e=>(0,N.gt)(e)||null,q=e=>{var t,a;let i=null==(t=(0,N.gt)(e))?void 0:t.slug,r=null==(a=H(e))?void 0:a.slug;if([k.xj.Events,k.xj.News,k.xj.Translation].includes(i))return"/read";if(!r)return"";let n=`/topic/${r}`;return i===k.xj.Video?`${n}?filter=videos`:i===k.xj.Infographic?`${n}?filter=infographics`:i===k.xj.Paper?`${n}?filter=papers`:n},M=e=>{var t,a;let i=null==(t=(0,N.gt)(e))?void 0:t.slug;if([k.xj.Events,k.xj.News,k.xj.Translation].includes(i))return i===k.xj.Translation?"/translations/":`/${i}`;let r=null==(a=z(e))?void 0:a.slug;if(!r)return"";let n=`/topic/${r}`;return i===k.xj.Video?`${n}?filter=videos`:i===k.xj.Infographic?`${n}?filter=infographics`:i===k.xj.Paper?`${n}?filter=papers`:n},$=e=>{var t;return(null==e||null==(t=e.authors)?void 0:t[0])||null},H=e=>{var t;return(null==e||null==(t=e.topic)?void 0:t.filter(e=>0===e.parent).pop())||null},R=e=>{var t,a;let i=null==(t=(0,N.gt)(e))?void 0:t.slug;return[k.xj.Translation].includes(i)?"Read":null==(a=H(e))?void 0:a.name},z=e=>{var t;return(null==e||null==(t=e.topic)?void 0:t.filter(e=>0!==e.parent).pop())||null},F=e=>{var t,a;let i=null==(t=(0,N.gt)(e))?void 0:t.slug;return i===k.xj.News?"News":i===k.xj.Events?"Events":i===k.xj.Translation?"Translations":null==(a=z(e))?void 0:a.name},Y=e=>{var t;return(null==e?void 0:e.archive)!=null&&(null==(t=e.archive.date)?void 0:t.length)>0},L=(e,t,a)=>{let i={},r=[];if(a===k.g6.Read&&(i={title:"Read",href:"/read"}),a===k.g6.Watch&&(i={title:"Watch",href:"/watch"}),a===k.g6.Infographics&&(i={title:"Infographics",href:"/infographics"}),r.push(i),e){let i={title:n().decode(e.name),href:(0,P.eC)(e,t,a)};r.push(i)}return r},B=e=>o()(e),U=e=>{if(!Array.isArray(e)||0===e.length)return;let t=e.flat().join(" ");return(0,C.QZ)(t).trim().split(/\s+/).filter(Boolean).length||void 0},W=[/\s*\|\s*Yaqeen Institute for Islamic Research\s*$/i,/\s*\|\s*Yaqeen Institute\s*$/i,/\s*\|\s*Blog\s*$/i],G=e=>{if(!e)return"";let t=(0,C.QZ)(e).trim(),a=!0;for(;a;)for(let e of(a=!1,W)){let i=t.replace(e,"").trim();i!==t&&(t=i,a=!0)}return n().decode(t)},Z=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:160,a=e.replace(/\s+/g," ").trim();if(a.length<=t)return a;let i=a.slice(0,t),r=i.lastIndexOf(" "),n=r>.6*t?i.slice(0,r):i;return`${n.trim()}â¦`},Q=(e,t,a)=>{var i,r,l,o,d,h,u,m,p,g;let f=new URL(E(e),t).toString(),x=(e=>{if(!e)return;let t=w[e];return t&&t.length>0?t:void 0})(null==e?void 0:e.slug),v=(e=>{if(!e)return;let t=j[e];return t&&t.length>0?t:void 0})(null==e?void 0:e.slug),N=x??(null==e||null==(i=e.acf)?void 0:i.about)??null,P=[k.xj.Paper,k.xj.Blog,k.xj.Publication,k.xj.Translation,k.xj.TalkToolkit,k.xj.Other].includes(null==e?void 0:e.type),T=[k.xj.Paper,k.xj.Publication,k.xj.Translation].includes(null==e?void 0:e.type),I=(null==e||null==(r=e.contentType)?void 0:r.find(e=>"printables"===e.slug&&0===e.parent))!==void 0,D=b.z.some(t=>t.slug===(null==e?void 0:e.slug)),q=P&&(!I||D)?(0,_.X1)(e,a??(null==e?void 0:e.content)):null,M=P&&!T,$=M?H(e):null,R=M?[...(null==e||null==(l=e.topic)?void 0:l.map(e=>e.name).filter(Boolean))??[],...(null==e||null==(o=e.tags)?void 0:o.map(e=>e.name).filter(Boolean))??[]]:[],z=M?(e=>e&&y[e]||null)(null==e?void 0:e.slug):null,F=[...(null==z?void 0:z.about)??[],...Array.isArray(N)?N:[]],L=T?"ScholarlyArticle":(null==e?void 0:e.type)!==k.xj.Blog?"Article":(e=>{var t;return!!(null!=e&&null!=(t=e.topic)&&t.some(e=>(null==e?void 0:e.slug)&&S.has(e.slug)))})(e)?"NewsArticle":"BlogPosting";return O(O(O(O(O(O({title:G(null==e?void 0:e.title),titleTemplate:"%s",description:(e=>{var t,a;let i=(0,C.QZ)((null==e||null==(t=e.seo)?void 0:t.desc)??"").trim();if(i)return i;let r=(0,C.QZ)((null==e||null==(a=e.acf)?void 0:a.abstract)??"").trim();if(r)return Z(r);let n=(0,C.QZ)(((null==e?void 0:e.summaryHtml)||(null==e?void 0:e.summary))??"").trim();if(n)return Z(n);let s=(0,C.QZ)((null==e?void 0:e.excerpt)??"").trim();if(s)return Z(s);if(Array.isArray(null==e?void 0:e.content)&&e.content.length>0){let t=e.content.flat().join(" "),a=(0,C.QZ)(t).trim();if(a)return Z(a)}return""})(e),image:(null==e||null==(d=e.seo)?void 0:d.image)??"",url:f,archived:Y(e),islamicFigures:(null==e||null==(h=e.acf)?void 0:h.islamic_figures)||null,quotations:(null==e||null==(u=e.acf)?void 0:u.quotations)||null},T&&((a,i,r,l,o,c,d,h,u,m,p,g,x,y,b,v,w,j)=>{let k=H(e),S=Y(e);return{abstract:(t=>{let a=(0,C.QZ)((null==e||null==(t=e.acf)?void 0:t.abstract)??"").trim();if(a)return a;let i=(0,C.QZ)((null==e?void 0:e.summaryHtml)??"").replace(/[*_`]+/g,"").trim();return i?Z(i,2e3):null})(),keywords:(null==e||null==(a=e.acf)?void 0:a.keywords)??null,citations:(null==e||null==(i=e.acf)?void 0:i.citations)??null,isBasedOn:(null==e||null==(r=e.acf)?void 0:r.isBasedOn)??null,mentions:(null==e||null==(l=e.acf)?void 0:l.mentions)??null,about:N,temporalCoverage:(null==e||null==(o=e.acf)?void 0:o.temporalCoverage)??null,spatialCoverage:(null==e||null==(c=e.acf)?void 0:c.spatialCoverage)??null,variableMeasured:(null==e||null==(d=e.acf)?void 0:d.variableMeasured)??null,measurementTechnique:(null==e||null==(h=e.acf)?void 0:h.measurementTechnique)??null,audie
15nce:(null==e||null==(u=e.acf)?void 0:u.audience)??null,funder:(null==e||null==(m=e.acf)?void 0:m.funder)??null,sponsor:(null==e||null==(p=e.acf)?void 0:p.sponsor)??null,license:(null==e||null==(g=e.acf)?void 0:g.license)??null,isPartOf:(null==e||null==(x=e.acf)?void 0:x.isPartOf)??(null!=e&&null!=(y=e.series)&&y.name&&null!=e&&null!=(b=e.series)&&b.slug?{name:n().decode(e.series.name),url:new URL(`/series/${e.series.slug}`,t).toString()}:null),pdfUrl:S?null:(0,A.DI)(null==e?void 0:e.related)??null,doi:(null==e||null==(v=e.acf)?void 0:v.digitalObjectIdentifier)??null,articleSection:(null==k?void 0:k.name)??void 0,webPage:{pageType:"WebPage",speakable:!0,speakableCssSelectors:(0,s.l5)({hasKeyTakeaways:((null==(w=(0,_.BJ)(e))?void 0:w.length)??0)>0,hasFaqs:((null==q?void 0:q.length)??0)>0}),datePublished:null==e?void 0:e.date,dateModified:null==e?void 0:e.modified_at,mainEntityId:`${f}#article`,isPartOf:{type:"WebSite",id:`${t.replace(/\/$/,"")}/#website`,name:"Yaqeen Institute for Islamic Research",url:t},keywords:(null==e||null==(j=e.acf)?void 0:j.keywords)??void 0},breadcrumbs:[{name:"Home",url:t},{name:"Read",url:new URL("/read",t).toString()},...k?[{name:n().decode(k.name),url:new URL(`/topic/${k.slug}`,t).toString()}]:[],{name:G(null==e?void 0:e.title),url:f}]}})()),P&&O(O({authors:(e=>e?c[e]??null:null)(null==e?void 0:e.slug)??(null==e?void 0:e.authors),datePublished:null==e?void 0:e.date,dateModified:null==e?void 0:e.modified_at,faqs:q},N&&{about:N}),v&&{faqMentions:v})),M&&O(O(O(O({keywords:R.length?R:void 0,abstract:(null==e||null==(m=e.acf)?void 0:m.abstract)??(null==e?void 0:e.summary)??null,articleSection:(null==$?void 0:$.name)??void 0,wordCount:U(null==e?void 0:e.content)},F.length>0&&{about:F}),null!=z&&null!=(p=z.mentions)&&p.length?{mentions:z.mentions}:{}),$&&{isPartOf:{type:"CollectionPage",name:$.name,url:new URL(`/topic/${$.slug}`,t).toString()}}),{},{breadcrumbs:[{name:"Home",url:t},{name:"Read",url:new URL("/read",t).toString()},...$?[{name:n().decode($.name),url:new URL(`/topic/${$.slug}`,t).toString()}]:[],{name:G(null==e?void 0:e.title),url:f}],webPage:{speakable:!0,speakableCssSelectors:I?s.R_:s.fT,mainEntityId:`${f}#article`,datePublished:null==e?void 0:e.date,dateModified:null==e?void 0:e.modified_at,keywords:R.length?R:void 0}})),(null==e?void 0:e.type)===k.xj.Video&&{datePublished:null==e?void 0:e.date,contentUrl:null==e?void 0:e.videoUrl}),(null==e||null==(g=e.acf)?void 0:g.paperAudio)&&{audioUrl:e.acf.paperAudio}),{},{addArticleSchema:P},P&&{schemaType:L})},V=e=>{switch(e){case k.xj.Infographic:return k.g6.Infographics;case k.xj.Video:return k.g6.Watch;default:return k.g6.Read}},K=e=>{var t;return null!=e&&null!=(t=e.contentTypes)&&!!t.lvl0},J=e=>({subscribePaperCta:e.length<1?0:1,similarPapers:e.length<2?0:2,editorsPick:e.length<3?0:3,trendingPapers:e.length<5?0:5,ameenAppBanner:e.length<6?0:6,mobileEntryPoint:e.length<3?0:3}),X={blog:"/read/post",paper:"/read",video:"/watch",publication:"/read",infographic:"/infographics",translation:"/translations",news:"/news",collection:"/topics",events:"/events","talk-toolkit":"/talk-toolkits",audio:"/listen",series:"/read/series",books:"/read/books"},ee=e=>{var t,a,i;if((null==e||null==(t=e.contentType)||null==(t=t.find(e=>0===e.parent))?void 0:t.slug)!="video")return E(e);if(null==e||null==(a=e.contentType)?void 0:a.find(e=>"series"===e.slug))return`/watch/series/${e.slug}`;let r=null==(i=(0,N.et)(e))?void 0:i.slug;return r?`/watch/${r}/${e.slug}`:`/watch/${e.slug}`}},32824:(e,t,a)=>{"use strict";a.d(t,{s:()=>n});var i=a(16900),r=a(78049);let n=e=>(0,r.Z)(i.A,e)},33228:(e,t,a)=>{"use strict";a.d(t,{Zj:()=>n,bi:()=>s,kL:()=>r});var i=a(56409);let r=[{title:"Who is the curriculum designed for?",content:'<p class="mb-4">Our curriculum is designed for a middle school (ages 11-13) and high school (ages 14-18) audience to be used by educators in full-time Islamic
15schools, weekend schools, and homeschools. It is also suitable for community leaders to use with their youth groups.</p>'},{title:"Can the curriculum be used for homeschooling?",content:'<p class="mb-4">Yes, our curriculum can be used for homeschooling, in addition to weekend schools, full-time Islamic schools and with youth groups.</p>'},{title:"Do I need to have an educational background to teach the curriculum?",content:'<p class="mb-4">Although it is ideal for our users to have experience in teaching Islamic Studies, our curriculum provides step-by-step directions and explanations so even those with less experience can learn how to effectively teach our units. For those who have a history in teaching, we encourage you to modify the lesson plans where needed, and share with us your results!</p>'},{title:"How do I use the curriculum?",content:'<p class="mb-4">Our curriculum is designed as a <span className="font-semibold">supplement</span> to existing Islamic Studiesâ curricula to enhance the classroom experience with relevant and contemporary topics. You can incorporate our lesson plans into your classroom schedules on a daily, weekly, or monthly basis. You can also select individual lesson plans to teach from each curriculum unit that best fit your needs.</p>'},{title:"How long is each curriculum unit?",content:'<p class="mb-4">Each curriculum unit consists of 3-5 lesson plans, with each lesson designed for approximately 50-minute sessions each. Lesson plans can be taught within the allotted time period, or shortened or extended to meet student needs.</p>'}
15,{title:"How is each unit broken down?",content:'<p class="mb-4">All units include learning objectives, ready-made presentations, worksheets, and assessments.</p>'}],n=[{key:"all",label:"All units"},{key:i.ze.HighSchool,label:"High school"},{key:i.ze.MiddleSchool,label:"Middle school"}],s=[{highlightedText:"Scholar-approved and teacher-developed unit plans",remainingText:"save you hours of research and planning on some of the most difficult topics."},{highlightedText:"An engaging framework",remainingText:"makes students think critically and want to be involved in discussions."},{highlightedText:"An interactive approach",remainingText:"transforms Islamic education to suit 21st century needs."},{highlightedText:"An empowering understanding of Islam ",remainingText:"builds confidence in teachers and students alike."}]},35214:(e,t,a)=>{"use strict";a.d(t,{Hm:()=>i.Hm,QB:()=>i.QB,sI:()=>i.sI,v$:()=>i.v$});var i=a(8704)},35744:(e,t,a)=>{"use strict";a.d(t,{Am:()=>r,Bq:()=>i,Ji:()=>n,gP:()=>s});let i=e=>[].concat(...e.map(e=>Array.isArray(e)?i(e):e)),r=e=>[...Array.from(new Set(e))],n=e=>e.filter((e,t,a)=>a.findIndex(t=>(null==t?void 0:t.id)===(null==e?void 0:e.id))===t),s=e=>Math.max(...e)},37525:()=>{},37735:(e,t,a)=>{"use strict";a.d(t,{WV:()=>n,my:()=>r,pd:()=>s});var i=a(74382);let r=(e,t)=>e.sort((e,a)=>t?new Date(e.date).valueOf()-new Date(a.date).valueOf():new Date(a.date).valueOf()-new Date(e.date).valueOf()),n=e=>{let t=e.findIndex(e=>e.startsWith("<figure"));return e.slice(t+1).join("")},s=e=>{let t=e.filter(e=>e.length>0&&e[0].toLowerCase().startsWith("references"));return 0===t.length?[]:t.map(e=>e[1].trim()).filter(e=>e.startsWith("<ol>")).map(e=>{let t=i.load(e);return t("ol").children().map((e,a)=>t(a).text()).get()}).flat()}},38311:(e,t,a)=>{"use strict";a.d(t,{K:()=>n});var i=a(14232),r=a(79955);let n=()=>(0,i.useContext)(r.A)},39378:(e,t,a)=>{"use strict";a.d(t,{X:()=>c,f:()=>m});var i=a(18125),r=a(18012),n=a(65083),s=a(69174),l=a(37876);let o=e=>{let{width:t}=e;return(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",height:"231",fill:"none",viewBox:`0 0 ${t} 231`,className:"w-auto",children:[(0,l.jsx)("g",{clipPath:"url(#clip0_90_19458)",children:(0,l.jsx)("path",{fill:"color(display-p3 0.8510 0.8980 0.9725)",d:"M169.56-50.54c103.774 1.09 109.113 96.524 98.31 134.134-10.803 37.721 74.056 43.276 84.694 104.083 10.638 60.806-54.948 89.002-101.817 91.566-46.869 2.674-83.907-19.966-91.982-49.324-8.076-29.358-30.516-42.934-69.65-47.222-39.043-4.403-109.735-46.796-97.95-105.505 0 0 2.32-62.16 69.848-105.694C106.452-57.874 169.56-50.54 169.56-50.54z",opacity:"0.10"})}),(0,l.jsx)("defs",{children:(0,l.jsx)("clipPath",{id:"clip0_90_19458",children:(0,l.jsx)("rect",{width:t,height:"230",y:"0.445",fill:"#fff",rx:"8"})})})]})},c=e=>{let{firebaseAuth:{initAuth:t,userInfo:a}}=(0,n.m9)(),{width:c}=e;return(0,l.jsx)(l.Fragment,{children:!(null!=a&&a.user)&&(0,l.jsxs)("div",{className:"relative bg-midnight rounded-md overflow-hidden",children:[(0,l.jsxs)("div",{className:"absolute w-full grid grid-cols-12",children:[(0,l.jsx)("div",{className:"text-2xl text-white font-extrabold col-span-12 mt-2.5 mb-2 text-center",id:"entrypoint_mobile",children:"Welcome back!"}),(0,l.jsxs)("div",{className:"text-sm font-semibold mt-[2px] xl:col-start-4 col-start-3 whitespace-nowrap",children:[(0,l.jsx)(i.g,{icon:["far","check-circle"],className:"text-jordy-400 text-md mr-2.5"}),(0,l.jsx)(s.EY,{color:"text-white",fontSize:"text-md",weight:"font-semibold",children:"Bookmark content"})]}),(0,l.jsxs)("div",{className:"text-sm font-semibold mt-[2px] xl:col-start-4 col-start-3 whitespace-nowrap",children:[(0,l.jsx)(i.g,{icon:["far","check-circle"],className:"text-jordy-400 text-md mr-2.5"}),(0,l.jsx)(s.EY,{color:"text-white",fontSize:"text-md",weight:"font-semibold",children:"Download resources easily"})]}),(0,l.jsxs)("div",{className:"text-sm font-semibold mt-[2px] xl:col-start-4 col-start-3 whitespace-nowrap",children:[(0,l.jsx)(i.g,{icon:["far","check-circle"],className:"text-jordy-400 text-md mr-2.5"}),(0,l.jsx)(s.EY,{color:"text-white",fontSize:"text-md",weight:"font-semibold",children:"Manage your donations"})]}),(0,l.jsxs)("div",{className:"text-sm font-semibold mt-[2px] xl:col-start-4 col-start-3 whitespace-nowrap",children:[(0,l.jsx)(i.g,{icon:["far","check-circle"],className:"text-jordy-400 text-md mr-2.5"}
15),(0,l.jsx)(s.EY,{color:"text-white",fontSize:"text-md",weight:"font-semibold",children:"Track your spiritual growth"})]}),(0,l.jsx)("div",{className:"mt-6 mx-4 col-start-1 col-span-12 whitespace-nowrap",children:(0,l.jsx)(s.$n,{id:"vwo_entrypoint",className:"focus:border-jordy-400 focus:outline-none border-transparent bg-carrot-500 hover:bg-carrot-800 px-3 py-[9px] rounded-sm w-full",onPress:()=>{(0,r.$s)("entrypoint","click","var_a"),t()},children:(0,l.jsx)(s.EY,{weight:"font-bold",as:"p",color:"text-white",fontSize:"text-md",children:"Log in"})})})]}),(0,l.jsx)(o,{width:c})]})})};var d=a(54587),h=a.n(d),u=a(86400);let m=()=>{let{firebaseAuth:{initAuth:e,userInfo:t}}=(0,n.m9)();return(0,l.jsx)(l.Fragment,{children:!(null!=t&&t.user)&&(0,l.jsxs)("div",{className:"relative hidden lg:block",children:[(0,l.jsx)(h(),{src:"/static/images/entrypoint/[email protected]",width:240,height:230,alt:"entrypoint",loader:u.R2,className:"rounded-md",priority:!0}),(0,l.jsxs)("div",{className:"absolute w-full top-0",children:[(0,l.jsx)("div",{className:"text-2xl text-white font-extrabold text-center mt-3 mb-2",id:"entrypoint_web",children:"Welcome back!"}),(0,l.jsxs)("div",{className:"text-sm font-semibold mt-[1.3px] ml-4",children:[(0,l.jsx)(i.g,{icon:["far","check-circle"],className:"text-jordy-400 text-md mr-2.5"}),(0,l.jsx)(s.EY,{color:"text-white",fontSize:"text-md",weight:"font-semibold",children:"Bookmark content"})]}),(0,l.jsxs)("div",{className:"text-sm font-semibold mt-[1.3px] ml-4",children:[(0,l.jsx)(i.g,{icon:["far","check-circle"],className:"text-jordy-400 text-md mr-2.5"}),(0,l.jsx)(s.EY,{color:"text-white",fontSize:"text-md",weight:"font-semibold",children:"Download resources easily"})]}),(0,l.jsxs)("div",{className:"text-sm font-semibold mt-[1.3px] ml-4",children:[(0,l.jsx)(i.g,{icon:["far","check-circle"],className:"text-jordy-400 text-md mr-2.5"}),(0,l.jsx)(s.EY,{color:"text-white",fontSize:"text-md",weight:"font-semibold",children:"Manage your donations"})]}),(0,l.jsxs)("div",{className:"text-sm font-semibold mt-[1.3px] ml-4 whitspace-nowrap",children:[(0,l.jsx)(i.g,{icon:["far","check-circle"],className:"text-jordy-400 mr-2.5"}),(0,l.jsx)(s.EY,{color:"text-white",fontSize:"text-md",weight:"font-semibold",children:"Track your spiritual growth"})]}),(0,l.jsx)("div",{className:"mt-6 mx-4",children:(0,l.jsx)(s.$n,{id:"vwo_entrypoint",className:"focus:border-jordy-400 focus:outline-none border-transparent xl:block hidden bg-carrot-500 hover:bg-carrot-800 px-3 py-[9px] rounded-sm w-full",onPress:()=>{(0,r.$s)("entrypoint","click","var_a"),e()},children:(0,l.jsx)(s.EY,{weight:"font-bold",as:"p",className:"text-center",color:"text-white",children:"Log in"})})})]})]})})}},40051:(e,t,a)=>{"use strict";a.d(t,{mk:()=>w,AJ:()=>v,kv:()=>f,j8:()=>b,vt:()=>y,gy:()=>x});var i=a(14232),r=a(89099),n=a(66284),s=a(49829),l=a(32008),o=a(70428),c=a(91959),d=a(17250);function h(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,i)}return a}class u{static async getMyCircle(){let e=c.j.getUser();if(!e)return null;try{let t=await (0,d.s7)("Circles",e.uid);return t.exists()?t.data():null}catch(t){throw l.A.log(t.toString(),{user:e},l.$.ERROR),t}}static async createMyCircle(e){let t=c.j.getUser();if(!t)return null;try{let a=(0,d.l$)("Circles",t.uid);return await (0,d._9)(a,{owner:t.uid,meta:e,name:e.circle_name,history:{trainings:[],modules:[],kits:[]},support:[],kitsHistory:[],completed:[],createdAt:(0,s.O5)()},{merge:!1}),await (0,d.W4)(a),!0}catch(a){return l.A.log("Error creating Circle",{user:t,circleData:e,err:a},l.$.ERROR),console.log(a),!1}}static getAuth(){return c.j.auth()}static async saveData(e){let t=c.j.getUser();if(!t)return!1;let a={},{history:i,completed:r,kitSurveys:n,kitsHistory:s}=e;if(i&&(i.trainings&&(a["history.trainings"]=i.trainings),i.modules&&(a["history.modules"]=i.modules),i.kits&&(a["history.kits"]=i.kits)),s?a.kitsHistory=s:a.kitsHistory=[],r?a.completed=r:a.completed=[],n&&(a.kitSurveys=n),!Object.keys(a))return!0;try{let a=(0,d.l$)("Circles",t.uid);return await (0,d.lU)(a,e),!0}catch(e){return l.A.error(`Error saving Circle data ${e}`,{user:{uid:t.uid,email:t.email},data:a,error:e}),!1}}static async saveTraining(e,t){return(e.history||(e.history={trainings:[],modules:[],kits:[]}),e.history.trainings||(e.history.trainings=[]),e.history.trainings.find(e=>e.id===t.id))?(console.log("Material already exists",e.history.trainings),!0):(e.history.trainings.push({id:t.id,createdAt:s.Dc.now().toString()}),console.log("Saving data",e),u.saveData(e))}static async saveDiscussionKit(e,t,a){return(e.history||(e.history={trainings:[],modules:[],kits:[]}),e.history.modules||(e.history.modules=[]),e.history.kits||(e.history.kits=[]),e.history.kits.find(e=>e.id===a))?(console.log("Kit already exists",e.history.kits),!0):(e.history.modules.push({id:t,createdAt:s.Dc.now().toString()}),e.history.kits.push({id:`${t}.${a}`,createdAt:s.Dc.now().toString()}),e.kitsHistory||(e.kitsHistory=[]),e.kitsHistory.push({id:`${t}.${a}`,createdAt:s.Dc.now().toString()}),u.saveData(e))}static async addKitsHistory(e){let t=c.j.getUser();if(!t)return!1;try{let a=(0,d.l$)("Circles",t.uid),i={id:e.slug,createdAt:s.Dc.now().toString()};return await (0,d.lU)(a,{kitsHistory:(0,s.hq)(i)}),!0}catch(a){l.A.error(`Error saving kit history ${a}`,{uid:t.uid,kit:e.id})}return!1}static async markKitCompleted(e,t,a){return(e.completed||(e.completed=[]),e.completed.find(e=>e.id===t))?(console.log("Kit already completed"),!0):(e.kitSurveys||(e.kitSurveys=[]),e.kitSurveys.find(e=>e.id===t)||e.kitSurveys.push({id:t,data:a.data,createdAt:s.Dc.now().toString()}),e.completed.push({id:t,createdAt:s.Dc.now().toString()}),u.saveData(e))}static async saveFeedback(e){let t=c.j.getUser();if(!t)return!1;try{let a=(0,d.l$)("Circles",t.uid),i={email:t.email,about:e.about,feedback:e.feedback.substr(0,1e3),createdAt:s.Dc.now().toString()};return await (0,d.lU)(a,{support:(0,s.hq)(i)}),!0}catch(a){throw l.A.error(`Error saving support ${a}`,{uid:t.uid,data:e}),Error(a)}}static async getCompleted(){let e=await u.getMyCircle();return e&&e.completed||[]}static async getHistory(){let e=await u.getMyCircle();return e&&null!=e&&e.history?e.history:null}static async getTrainingsHistory(){return(await u.getHistory()).trainings}static async getModulesHistory(){return(await u.getHistory()).modules}static async getKitsHistory(){return(await u.getHistory()).kits}static async getMaterial(e){let t=await (0,d.s7)("CirclesMaterials",e),a=t.data();return a.url&&(a.url=(0,o.f_)(a.url)),t.exists?function(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};
15t%2?h(Object(a),!0).forEach(function(t){(0,n.A)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):h(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}({id:t.id},a):null}static async getModules(){let e=await (0,d.HK)("CirclesModules");return await Promise.all(e.docs.map(async e=>{let t=e.data(),a=await Promise.all(Object.keys(t).filter(e=>parseInt(e)).map(async a=>{let i=t[a],r=await u.getMaterial(i.kit);return{moduleId:e.id,id:a,idx:parseInt(a),slug:`${e.id}.${a}`,title:r.title,description:r.description,basedOn:null,media:null,resources:null,published:!0,downloadLink:r.url,shareUrl:r.share_url,thumbnail:r.thumbnail}}));return{id:e.id,idx:parseInt(e.id),slug:e.id,title:`Module ${e.id}`,media:[],items:a}}))}static async getMaterialsByType(e){let t=await (0,d.HK)("CirclesMaterials",(0,s._M)("type","==",e),(0,s.AB)(20)),a=t.empty?[]:t.docs.map(e=>{let t=e.data();return{id:e.id,title:t.title,description:t.description,thumbnail:null,url:(0,o.f_)(t.url),type:t.type}});return console.log(`${e} materials: `,a),a}static async getTrainingGroups(){try{let e=await (0,d.HK)("CirclesTraining",(0,s.AB)(100),(0,s.My)("createdAt")),t={};if(!e.empty){let a=(await Promise.all(e.docs.map(e=>{let a=e.data();return a.group in t||(t[a.group]=0),t[a.group]++,{idx:a.idx,group:a.group,title:a.title,thumbnail:a.thumbnail,description:a.description,slug:a.slug,courses:0,items:a.items}}))).filter(e=>!e.group.startsWith("Module ")).map(e=>(e.courses=t[e.group].toString(),e));return a.sort((e,t)=>e.idx-t.idx),a}}catch(e){l.A.error(e)}return null}static async getAllTrainings(){let e=await (0,d.HK)("CirclesTraining",(0,s.AB)(200),(0,s.My)("idx"));return e.empty?[]:await Promise.all(e.docs.map(async e=>{let t=e.data(),a=await Promise.all(t.items.map(u.getMaterial));return{idx:t.idx,title:t.title,group:t.group,thumbnail:t.thumbnail||"https://i.yaqeeninstitute.org/?src=img/paper/072/072_hero_default.jpg",description:t.description||"",items:a,slug:t.slug||""}}))}static async getTrainingsBySlug(e){let t=await (0,d.HK)("CirclesTraining",(0,s._M)("slug","==",e),(0,s.AB)(10),(0,s.My)("idx"));return t.empty?[]:await Promise.all(t.docs.map(async e=>{let t=e.data(),a=await Promise.all(t.items.map(u.getMaterial));return{idx:t.idx,title:t.title,group:t.group,thumbnail:t.thumbnail||"https://i.yaqeeninstitute.org/?src=img/paper/072/072_hero_default.jpg",description:t.description||"",items:a,slug:t.slug||""}}))}static async getDiscussionKitBySlug(e){if(!e)return null;if(!e.match(/^\s*\d+\.\d+\s*$/))return l.A.error(`Unsupported slug: ${e}`,{slug:e}),null;let[t,a]=e.split("."),i=await (0,d.s7)("CirclesModules",t),r=i.exists()?i.get(a):null,n=await u.getMaterial(r.kit),s=await Promise.all(r.items.map(u.getMaterial));return{moduleId:t,id:a,idx:parseInt(a),slug:e,title:n.title,description:n.description,basedOn:null,media:null,resources:s,published:!0,downloadLink:n.url,shareUrl:n.share_url,thumbnail:n.thumbnail,featuredVideoUrl:n.featuredVideoUrl}}}var m=a(38369),p=a(56189),g=a(8218);let f=()=>{let{0:e,1:t}=(0,i.useState)(null),{0:a,1:n}=(0,i.useState)(null),{query:s}=(0,r.useRouter)(),o=null==s?void 0:s.id;return(0,i.useEffect)(()=>{o&&(async()=>{let e=await u.getDiscussionKitBySlug(o);if(!e)return p.toast.error("Module or Kit not found",{toastId:o,position:"bottom-right"}),l.A.error("Module or Kit not found",{slug:o}),n("Error getting modules"),m.A.circles("modules");t(e)})()},[o]),{data:e,error:a,slug:o}},x=e=>{let{0:t,1:a}=(0,i.useState)(null),{0:n,1:s}=(0,i.useState)(null),{0:c,1:d}=(0,i.useState)(null),{query:h}=(0,r.useRouter)();return(0,i.useEffect)(()=>{h.id&&e&&(async()=>{let t=h.id,i=await u.getTrainingsBySlug(t),r=(0,o.Gr)(e,i);if(s(r),r&&u.saveTraining(e,r),!i)return p.toast.error("Training course not found",{toastId:t,position:"bottom-right"}),l.A.error("Training course not found",{query:h}),d("Error getting training"),m.A.circles("training");a(i)})()},[h,e]),{data:t,current:n,saveCurrent:t=>{e&&t&&u.saveTraining(e,t).then(e=>s(t))},error:c}},y=()=>{let{0:e,1:t}=(0,i.useState)(null),{0:a,1:r}=(0,i.useState)(null),[n,s,l]=(0,g.As)(u.getAuth());return(0,i.useEffect)(()=>{s||((s||n)&&!l||m.A.push("/conviction-circles"),console.debug("Getting modules"),u.getModules().then(t).cat
15ch(r))},[s]),{data:e,error:a}},b=()=>({saveFeedback:e=>u.saveFeedback(e)}),v=()=>({createCircle:e=>u.createMyCircle(e)}),w=()=>{let{0:e,1:t}=(0,i.useState)(null),{0:a,1:n}=(0,i.useState)({modules:[],kits:[],trainings:[]}),{0:s,1:c}=(0,i.useState)([]),{0:d,1:h}=(0,i.useState)([]),{0:f,1:x}=(0,i.useState)(null),[y,b,v]=(0,g.As)(u.getAuth()),{0:w,1:j}=(0,i.useState)(!0),{0:k,1:N}=(0,i.useState)(!0),{0:_,1:S}=(0,i.useState)(null),{0:A,1:C}=(0,i.useState)(null),{0:P,1:T}=(0,i.useState)(null),{0:O,1:E}=(0,i.useState)(null),I=(0,i.useRef)(!1),D=(0,r.useRouter)(),q=async()=>{if(I.current)return void console.debug("Already fetching data");console.debug("Getting CircleData");try{I.current=!0;let a=await u.getMyCircle();if(a){var e;let i=[];t(a),n(a.history),c(a.completed),h(a.kitsHistory),(0,o.cg)(a)||N(!1),i.push(u.getTrainingGroups().then(T));let{trainings:r}=a.history,s=a.kitsHistory[a.kitsHistory.length-1];s&&s.id.match(/\d+\.\d+/)&&i.push(u.getDiscussionKitBySlug(s.id).then(S));let l=(null==(e=r[r.length-1])?void 0:e.id)||"introduction";i.push(u.getTrainingsBySlug(l).then(e=>{C(e[e.length-1])})),i.push(u.getAllTrainings().then(E)),await Promise.all(i),j(!1)}else{l.A.error("Unable to load circle",{uid:null==y?void 0:y.uid}),console.error("unable to load circle");let{pathname:e}=D;"/conviction-circles/sign-up"!==e&&m.A.push("/conviction-circles/sign-up"),j(!1)}}catch(e){"unavailable"===e.code?(p.toast.error("Network connectivity error. Try again later.",{position:"top-center"}),x("Network connectivity error. Try again later.")):x(e),j(!1)}I.current=!1},M=async e=>{let t=await u.addKitsHistory(e);return t&&q(),t},$=async(t,a)=>Promise.all([u.markKitCompleted(e,t.slug,a),u.addKitsHistory(t)]).then(e=>0===e.filter(e=>!e).length&&q().then(()=>!0));return(0,i.useEffect)(()=>{v&&x("Error getting user"),y&&q(),(b||y)&&!v||m.A.push("/conviction-circles")},[y,b]),{circle:e,error:f,loading:b,loadingData:w,isNewCircleUser:k,user:y,refetch:q,saveKit:M,addCompleted:$,history:a,kitsHistory:d,completed:s,trainingGroups:P,trainings:O,currentKit:_,currentTraining:A}}},40627:(e,t,a)=>{"use strict";a.d(t,{_x:()=>i.A,cq:()=>s,tg:()=>l});var i=a(62255),r=a(69174),n=a(37876);let s=e=>{let{children:t,variant:a="endeavour",fontWeight:i="font-extrabold",align:s,fontSize:l="text-4xl xl:text-6xl",lineHeight:o="leading-3-s",isPageTitle:c=!0}=e,d="endeavour"===a?"text-endeavour-500":"text-white";return c?(0,n.jsx)(r.DZ,{level:1,fontSize:l,weight:i,lineHeight:o,letterSpacing:"tracking-tight-2",color:d,className:"title-bar",align:s,children:t}):(0,n.jsx)(r.EY,{as:"p",fontSize:l,weight:i,lineHeight:o,letterSpacing:"tracking-tight-2",color:d,className:`title-bar ${s}`,children:t})},l=e=>{let{children:t,variant:a}=e;return(0,n.jsx)(r.EY,{as:"p",fontFamily:"font-source-serif-pro",fontSize:"xl:text-base text-sm",color:"dark"===a?"text-grey-800":"text-grey-200",className:"title-description whitespace-pre-wrap",children:t})}},40748:(e,t,a)=>{"use strict";a.d(t,{A:()=>d});var i=a(57002),r=a(32738),n=a(12013),s=a(99990),l=a(35744);let o=[i.hZ.Publication,i.hZ.Animation,i.hZ.Infographic,i.hZ.Lecture,i.hZ.Bts,i.hZ.Audio],c=[i.hZ.Academy,i.hZ.Curriculum,i.hZ.ConvictionCircle,i.hZ.Other],d=e=>e.data&&(0,l.Bq)(e.data.map(t=>{let a=n.A.find(e=>e.type===t.type);if(o.includes(t.type)){let i=t[(e=>Object.keys(e).find(t=>{let a=(0,s.rI)(t);return o.includes(a)&&Array.isArray(e[t])}))(t)];return null==i?void 0:i.map(i=>{var n;let s=null==e||null==(n=e.posts)?void 0:n.find(e=>(null==e?void 0:e.id)===i);return s?{link:(0,r.lr)(s),icon:a,title:s.title,type:t.type}:null}).filter(e=>e)}if(c.includes(t.type))return{link:t.url,icon:a,title:t.title,type:t.type}}).filter(e=>!!e))},41048:(e,t,a)=>{"use strict";a.d(t,{z:()=>y});var i=a(66284),r=a(14232),n=a(89099);let s=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],{0:t,1:a}=(0,r.useState)(e),i=(0,r.useRef)(null),n=(0,r.useCallback)(()=>{i.current&&(clearTimeout(i.current),i.current=null)},[]),s=(0,r.useCallback)(()=>{n(),a(!0)},[n]),l=(0,r.useCallback)(()=>{n(),i.current=setTimeout(()=>{a(!1),i.current=null},250)},[n]),o=(0,r.useCallback)(()=>{n(),a(!1)},[n]);return(0,r.useEffect)(()=>n,[n]),{isOpen:t,open:s,scheduleClose:l,close:o}};var l=a(18012),o=a(65258),c=a(37876);function d(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,i)}return a}function h(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};
15t%2?d(Object(a),!0).forEach(function(t){(0,i.A)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):d(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}let u=0,m=0,p=!1,g=()=>{p||(p=!0,window.addEventListener("scroll",()=>{u=Date.now()},{capture:!0,passive:!0}),window.addEventListener("pointermove",()=>{m=Date.now()},{passive:!0}))},f=()=>u>m&&Date.now()-u<150,x=e=>!!e.closest(".yqn-hl-armed"),y=e=>{let{title:t,anchorClassName:a,placeholderLabel:i}=e,{0:s,1:o}=(0,r.useState)(null),{asPath:d}=(0,n.useRouter)();(0,r.useEffect)(g,[]);let u=e=>{s||((0,l.$s)("footnote","hover"===e?"mouse-enter":"click",`item_name: ${d} - ftnt${t}`),o(window.screen.width<=700?"mobile":"desktop"))};return"desktop"===s?(0,c.jsx)(v,h(h({},e),{},{panelClassName:e.desktopPanelClassName,contentClassName:e.desktopContentClassName,label:e.desktopLabel})):"mobile"===s?(0,c.jsx)(w,h(h({},e),{},{panelClassName:e.mobilePanelClassName,contentClassName:e.mobileContentClassName,label:e.mobileLabel})):(0,c.jsx)("span",{className:"inline",children:(0,c.jsx)("sup",{children:(0,c.jsx)("span",{className:"inline-flex",children:(0,c.jsx)("a",{href:`#ftnt${t}`,id:`ftnt_ref${t}`,className:a,"aria-expanded":!1,onPointerEnter:e=>{"mouse"!==e.pointerType||f()||x(e.currentTarget)||u("hover")},onClick:e=>{e.preventDefault(),u("click")},children:i})})})})},b=(e,t,a,i)=>{(0,r.useEffect)(()=>{if(!e)return;let r=Date.now(),n=e=>{let r=e.target;null!=t&&t.contains(r)||null!=a&&a.contains(r)||i()},s=e=>{"Escape"===e.key&&i()},l=e=>{!(Date.now()-r<250)&&(a&&e.target instanceof Node&&a.contains(e.target)||i())};return document.addEventListener("pointerdown",n),document.addEventListener("keydown",s),window.addEventListener("scroll",l,{capture:!0,passive:!0}),()=>{document.removeEventListener("pointerdown",n),document.removeEventListener("keydown",s),window.removeEventListener("scroll",l,{capture:!0})}},[e,t,a,i])},v=e=>{let{title:t,children:a,anchorClassName:i,panelClassName:n,contentClassName:l,label:d}=e,{isOpen:u,open:m,scheduleClose:p,close:g}=s(!0),{0:y,1:v}=(0,r.useState)(null),{0:w,1:j}=(0,r.useState)(null);b(u,y,w,g);let{styles:k,attributes:N}=(0,o.E)(y,w,{placement:"auto-start",modifiers:[{name:"preventOverflow",options:{padding:8}}]});return(0,c.jsxs)("span",{className:"inline",children:[(0,c.jsx)("sup",{children:(0,c.jsx)("span",{className:"inline-flex",ref:v,onMouseEnter:e=>{f()||x(e.currentTarget)||m()},onMouseLeave:p,children:(0,c.jsx)("a",{className:i,href:`#ftnt${t}`,id:`ftnt_ref${t}`,"aria-expanded":u,onClick:e=>e.preventDefault(),children:d})})}),u&&(0,c.jsx)("div",h(h({className:n,"data-yqn-footnote":!0,ref:j,onMouseEnter:m,onMouseLeave:p,style:k.popper},N.popper),{},{children:(0,c.jsx)("div",{className:l,children:a})}))]})},w=e=>{let{title:t,children:a,anchorClassName:i,panelClassName:n,contentClassName:s,label:l}=e,{0:d,1:u}=(0,r.useState)(!0),{0:m,1:p}=(0,r.useState)(null),{0:g,1:f}=(0,r.useState)(null),{styles:x,attributes:y}=(0,o.E)(m,g,{placement:"auto-start",modifiers:[{name:"preventOverflow",options:{padding:8}}]});return b(d,m,g,(0,r.useCallback)(()=>u(!1),[])),(0,c.jsxs)("span",{className:"inline",children:[(0,c.jsx)("sup",{children:(0,c.jsx)("span",{className:"inline-flex",ref:p,children:(0,c.jsx)("a",{className:i,href:`#ftnt${t}`,id:`ftnt_ref${t}`,"aria-expanded":d,onClick:e=>{e.preventDefault(),u(e=>!e)},children:l})})}),d&&(0,c.jsx)("div",h(h({className:n,"data-yqn-footnote":!0,ref:f,style:x.popper},y.popper),{},{children:(0,c.jsx)("div",{className:s,children:a})}))]})}},41639:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});let i=(0,a(14232).createContext)(void 0)},42129:(e,t,a)=>{"use strict";a.d(t,{A:()=>c});var i=a(54587),r=a.n(i),n=a(18012),s=a(69174),l=a(86400),o=a(37876);let c=e=>{let{height:t=40,width:a=128}=e;return(0,o.jsxs)("div",{className:"flex gap-2 pb-4",children:[(0,o.jsx)(s.qh,{href:"https://play.google.com/store/apps/details?id=org.yaqeeninstitute.dua",onClick:()=>{(0,n.$s)("ameen_app_download","click","android")},target:"_blank",children:(0,o.jsxs)("div",{className:"relative h-auto",style:{width:a},children:[(0,o.jsx)(r(),{loader:l.R2,alt:"playstore_app",src:"/static/images/posts/icons/app/Google_Play.svg",height:t,width:a,layout:"fixed",priority:!0}),(0,o.jsx)("span",{className:"sr-only",children:"(opens in a new tab)"})]})}),(0,o.jsx)(s.qh,{href:"https://apps.apple.com/us/app/ameen-by-yaqeen/id6738671897",target:"_blank",onClick:()=>{(0,n.$s)("ameen_app_download","click","ios")},children:(0,o.jsxs)("div",{className:"relative h-auto",style:{width:a},children:[(0,o.jsx)(r(),{loader:l.R2,alt:"playstore_app",src:"/static/images/posts/icons/app/App_Store.svg",height:t,width:a,layout:"fixed",priority:!0}),(0,o.jsx)("span",{className:"sr-only",children:"(opens in a new tab)"})]})})]})}},42484:(e,t,a)=>{"use strict";a.d(t,{l:()=>o});var i=a(14232),r=a(14742),n=a(32984),s=a(56189),l=a(65083);let o=()=>{let{currentUser:e}=n.jO.auth(),{0:t,1:a}=(0,i.useState)(null==e?void 0:e.emailVerified);(0,l.wV)();let o=n.jO.isLoggedIn(),c=(0,r.T)({}),d=async()=>{(await n.jO.reloadUser()).emailVerified&&(a(!0),s.toast.success("Email verified successfully"),c.isOpen&&c.close())};return(0,i.useEffect)(()=>{a(null==e?void 0:e.emailVerified)},[null==e?void 0:e.emailVerified]),{isVerified:t,isLoggedIn:o,overlay:c,reloadUser:d,currentUser:e}}},43270:(e,t,a)=>{"use strict";a.d(t,{EU:()=>i,Je:()=>n,LE:()=>r,YQ:()=>s});let i=[{title:"10 AM GMT",subtitle:"5 AM EST",link:"/watch/series/the-name-i-need-ramadan-2026/the-name-i-need-with-dr-omar-suleiman-ramadan-series-2026-official-trailer",image:"/static/images/ramadan/names.webp",image_horizontal:"/static/images/ramadan/names-mobile.webp"},{title:"11 PM GMT",subtitle:"6 PM EST",link:"/series/quran-30-for-30",image:"/static/images/ramadan/q30for30.webp"},{title:"Last ten nights",link:"/series/midnight-majlis",image:"/static/images/ramadan/midnight-majlis.webp"},{title:"Post-Isha",link:"/series/pause-and-reflect-ramadan-2026",image:"/static/images/ramadan/pause-reflect.webp",image_horizontal:"/static/images/ramadan/pause-reflect-mobile.webp"},{title:"eBooks",link:"/read/books",image:"/static/images/ramadan/ebooks.png"}],r=[{title:"10 AM GMT",subtitle:"5 AM EST",image:"/static/images/ramadan/names.webp",link:i[0].link},{title:"Discussion Guides",image:"https://i.yaqeeninstitute.org/?src=2026%2F02%2FRewind-Reflect-The-Name-I-Need-Cover-01.jpg&w=640&q=70",link:"/curriculum/discussion-guides/the-name-i-need"},{title:"11 PM GMT",subtitle:"6PM EST",image:"/static/images/ramadan/q30for30.webp",link:"/watch/series/quran-30-for-30-season-7-trailer"},{title:"All things Ramadan",image:"/static/images/ramadan/dates-2.webp",link:"/tag/ramadan"}],n={image:"/static/images/ramadan/names.webp",imageAlt:"The Name I Need thumbnail",label:"Video Series",title:"The Name I Need",pillLinks:[{label:"Papers",href:"/tag/names-of-allah?filter=papers"},{label:"Videos",href:"/tag/names-of-allah?filter=videos"},{label:"Others",href:"/tag/names-of-allah?filter=blog"}],listItems:[{title:"Series: The Name I Need",href:"/watch/series/the-name-i-need-ramadan-2026/the-name-i-need-with-dr-omar-suleiman-ramadan-series-2026-official-trailer"},{title:"S7: Qurâan 30 for 30",href:"/watch/series/quran-30-for-30-season-7-trailer"},{title:"Discussion Guides: The Name I Need",href:"/curriculum/discussion-guides/the-name-i-need"},{title:"Taraweeh Reflections",href:"/series/pause-and-reflect-ramadan-2026"},{title:"Late Night Talk",href:"/series/midnight-majlis"}
15,{title:"Post-Ramadan Reminders",href:"/watch/series/post-ramadan-reminders"}],ga_category:"ramadan_video_series_feature"},s={image:"/static/images/ramadan/dates.webp",imageAlt:"Ramadan programming thumbnail",label:"Special",title:"Ramadan Programming",pillLinks:[{label:"2025",href:""},{label:"2024",href:""},{label:"2023",href:""},{label:"2022",href:""},{label:"2021",href:""},{label:"2020",href:""}],listItems:[{title:"S6: Qurâan 30 for 30",href:"/watch/series/trailer-30-juz-100-lessons-quran-30-for-30-season-6",parent:"2025"},{title:"Series: The Other Side",href:"/series/the-other-side-barzakh-and-beyond",parent:"2025"},{title:"Series Discussion Guide",href:"/curriculum/discussion-guides/the-other-side",parent:"2025"},{title:"Qurâan 30 for 30: Life Lesson Journal",href:"/read/books/quran-30-for-30-life-lesson-journal",parent:"2025"},{title:"Taraweeh Reflections",href:"/watch/series/ramadan-reflections-2025/tackling-the-beast-of-iftar-expectations-ramadan-reflections",parent:"2025"},{title:"Ramadan Duâas on Repeat",href:"/watch/series/promo-ramadan-duas-on-repeat-series-with-dr-tahir-wyatt",parent:"2025"},{title:"S5: Qurâan 30 for 30",href:"/watch/series/trailer-quran-30-for-30-season-5",parent:"2024"},{title:"Series: Why Me?",href:"/watch/series/trailer-why-me-a-ramadan-series-on-understanding-qadar",parent:"2024"},{title:"Taraweeh Reflections",href:"/watch/series/ramadan-reflections-2025/tackling-the-beast-of-iftar-expectations-ramadan-reflections",parent:"2024"},{title:"Midnight Majlis",href:"/watch/series/midnight-majlis/how-to-break-free-from-anxiety-midnight-majlis",parent:"2024"},{title:"Life Lesson Journal",href:"/read/books/quran-30-for-30-life-lesson-journal",parent:"2024"},{title:"Post-Ramadan Reminders",href:"",parent:"2024"},{title:"Series: Jannah: Home at Last",href:"/watch/series/trailer-jannah-home-at-last-ramadan-series",parent:"2023"},{title:"S4: Qurâan 30 for 30",href:"/watch/series/trailer-quran-30-for-30-season-4-with-dr-omar-suleiman-and-sh-abdullah-oduro",parent:"2023"},{title:"Qurâan 30 for 30 Companion Book",href:"/read/books/quran-30-for-30-thematic-tafsir",parent:"2023"},{title:"Taraweeh Reflections",href:"",parent:"2023"},{title:"Late Night Majlis",href:"",parent:"2023"},{title:"Post-Ramadan Reminders",href:"",parent:"2023"},{title:"S3: Qurâan 30 for 30",href:"/watch/series/quran-30-for-30-season-3/juz-1-with-dr-tesneem-alkiek-quran-30-for-30-season-3",parent:"2022"},{title:"Series: Judgement Day",href:"/watch/series/trailer-judgement-day-deeds-that-light-the-way-a-ramadan-series",parent:"2022"},{title:"A Dua a Day: Prophetic Prayers for Ramadan",href:"/read/books/a-dua-a-day-prophetic-prayers-for-ramadan",parent:"2022"},{title:"Taraweeh Reflections",href:"",parent:"2022"},{title:"Midnight Majlis",href:"",parent:"2022"},{title:"Post-Ramadan Reminders",href:"",parent:"2022"},{title:"S2: Qurâan 30 for 30",href:"/watch/series/quran-30-for-30-season-2/juz-1-with-sh-mohammad-elshinawy-quran-30-for-30-season-2",parent:"2021"},{title:"Series: Meeting Muhammad",href:"/watch/series/trailer-meeting-muhammad-a-ramadan-series",parent:"2021"},{title:"A Dua a Day: Prophetic Prayers for Ramadan",href:"/read/books/a-dua-a-day-prophetic-prayers-for-ramadan",parent:"2021"},{title:"Taraweeh Reflections",href:"",parent:"2021"},{title:"Midnight Majlis",href:"",parent:"2021"},{title:"Post-Ramadan Reminders",href:"",parent:"2021"},{title:"S1: Qurâan 30 for 30",href:"/watch/series/quran-30-for-30/juz-1-with-justin-parrott-quran-30-for-30",parent:"2020"},{title:"Series: Angels in Your Presence",href:"/watch/series/angels-in-your-presence/episode-1-theyve-got-your-back-angels-in-your-presence",parent:"2020"},{title:"A Dua a Day: Prophetic Prayers for Ramadan",href:"/read/books/a-dua-a-day-prophetic-prayers-for-ramadan",parent:"2020"},{title:"Taraweeh Reflections",href:"",parent:"2020"},{title:"Midnight Majlis",href:"",parent:"2020"},{title:"Post-Ramadan Reminders",href:"",parent:"2020"}],ga_category:"ramadan_programming_feature"}},43309:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var i=a(24519),r=a.n(i),n=a(57002),s=a(69174),l=a(37876);let o=e=>{let{children:t,type:a,topic:i,topicLink:o,isWatch:c=!1}=e;return a===n.xj.Video?(0,l.jsxs)("div",{className:"post-title text-left",children:[i&&(0,l.jsx)("div",{className:"video-category mb-3",children:(0,l.jsx)(s.qh,{href:o,children:(0,l.jsx)(s.EY,{c
15olor:"text-jordy-700",weight:"font-bold",fontSize:"text-xss",lineHeight:"leading-tight-1",letterSpacing:"tracking-wide",className:"uppercase",children:r().decode(i.name)})})}),(0,l.jsx)(s.DZ,{level:1,className:"post-title",fontSize:"text-xl",color:"text-white",weight:"font-extrabold",lineHeight:"leading-tight",children:t&&r().decode(t)})]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(s.DZ,{className:"post-title",level:1,color:c?"text-white":"text-endeavour-500",weight:c?"font-bold":"font-extrabold",fontSize:c?"text-xl":"xl:text-6xl text-4xl",letterSpacing:c?"tracking-normal":"tracking-tight-2",lineHeight:c?"leading-normal":"xl:leading-3-s leading-none",align:c?"text-left":"xl:text-left text-center",children:t&&r().decode(t)}),(0,l.jsx)("p",{className:"text-grey-900 font-semibold leading-3-xs text-2xl xl:text-4xl tracking-tight-1"})]})}},43425:(e,t,a)=>{"use strict";a.d(t,{eC:()=>n,F1:()=>s,eM:()=>l});let i=["Faith","Allah","Angels","Quran","Hadith","Prophets","The Hereafter","Divine Decree","Sharia","Methodology (usul)","Jurisprudence (fiqh)","Acts of Worship","Politics & Practical Theology","Epistemology","Islamic Ethics","Social Justice","Identity","Contemporary Ideologies","Islamophobia","Psychology & Mental Health","Trauma","General Psychology","History","Life of the Prophet (seerah)","Spread of Islam","Islamic Civilization","Islam in the West","Nature & Science","Evolution","Environment","Technology","Health","Family & Community","Parenting","Education","Culture","Marriage","Data","Reports","Visualizations"];a(94171);var r=a(57002);a(32738);let n=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r.g6.Read;return a==r.g6.Infographics?0===e.parent?`/infographics/${e.slug}`:`/infographics/${t.find(t=>t.id===e.parent).slug}/${e.slug}`:`/topic/${e.slug}`},s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.g6.Read;return t==r.g6.Infographics?`/infographics/${e.slug}`:`/topic/${e.slug}`},l=e=>e.sort((e,t)=>i.indexOf(e.name)-i.indexOf(t.name))},43445:(e,t,a)=>{"use strict";a.d(t,{Hu:()=>r,NG:()=>O,Oh:()=>E,V2:()=>s,Wc:()=>C,mU:()=>S,nh:()=>c,XA:()=>N,v:()=>w,RM:()=>j,D:()=>b,Mn:()=>I,hx:()=>$,$n:()=>D,bP:()=>q,li:()=>M,nm:()=>l}),a(14232);var i=a(96370);let r=function(e){return e.Ramadan="ramadan",e.DhulHijjah="dhul_hijjah",e.Eid="eid",e}({}),n=function(e){return e.Daily="daily",e.General="general",e.LtnAutomate="ltn_automate",e.LtnGeneral="ltn_general",e}({}),s=function(e){return e.PreDhulHijjah="pre_dhul_hijjah",e.DhulHijjah="dhul_hijjah",e}({});function l(e){return null==e?"off":e.campaign===r.Eid?"eid":`${e.campaign}:${e.phase}`}var o=a(37876);let c={campaign:r.DhulHijjah,phase:s.PreDhulHijjah,analyticsName:"dh_pre",startDate:new Date("2026-05-04T00:00:00-05:00"),endDate:new Date("2026-05-18T23:59:59-05:00"),primaryPage:"/dhul-hijjah-donate",donationType:i.ZU.DhulHijjah,content:{heroTitle:(0,o.jsxs)(o.Fragment,{children:["The Best of Days. ",(0,o.jsx)("br",{}),"The Best of Deeds."]}),heroDescription:(0,o.jsxs)(o.Fragment,{children:["The Prophet (ï·º) said, âNo good deeds done on other days are superior to those done on these (first ten days of Dhul Hijjah).â",(0,o.jsx)("br",{}),"[ ",(0,o.jsx)("em",{children:"Sahih al-Bukhari"})," #969 ]",(0,o.jsx)("br",{}),(0,o.jsx)("br",{}),"Turn these blessed days into a legacy of generosity.",(0,o.jsx)("br",{}),(0,o.jsx)("br",{}),(0,o.jsx)("strong",{children:"Catch all 10 days by automating your donations."})]}),metaTitle:"Maximize Your Rewards: Automate Dhul Hijjah Giving | Yaqeen Institute",metaDescription:"Don't miss a single day of the best 10 days of the year. Automate your Dhul Hijjah charity to support free Islamic resources and earn Sadaqah Jariyah with ease.",metaImage:"https://i.yaqeeninstitute.org/?src=/2026/05/Dhul-Hijjah_2026_Automate_Page_SEO_2.jpg&w=1200",imageAlt:"Automated donation for Dhul Hijjah 2026 â Yaqeen Institute"}},d=[c,{campaign:r.DhulHijjah,phase:s.DhulHijjah,analyticsName:"dh_main",startDate:new Date("2026-05-19T00:00:00-05:00"),endDate:new Date("2026-05-29T23:59:59-05:00"),primaryPage:"/donate",donationType:i.ZU.OneTime,content:{heroTitle:(0,o.jsxs)(o.Fragment,{children:["The Best of Days. ",(0,o.jsx)("br",{}),"The Best of Deeds."]}),heroDescription:(0,o.jsxs)(o.Fragment,{children:["The Prophet (ï·º) said, âNo good deeds done on other days are superior to those done on these (first ten days of Dhul Hijjah).â",(0,o.jsx)("br",{}),"[ ",(0,o.jsx)("em",{children:"Sahih al-Bukhari"})," #969 ]",(0,o.jsx)("br",{}),(0,o.jsx)("br",{}),"Turn these blessed days into a legacy of generosity.",(0,o.jsx)("br",{}),(0,o.jsx)("br",{}),(0,o.jsx)("strong",{children:"Give sadaqah jariyah now."})]}),metaTitle:"Maximize Your Rewards: Give Your Dhul Hijjah Sadaqah | Support Yaqeen Institute",metaDescription:"Don't let these blessed days pass without giving. Make a donation to Yaqeen Institute and support the global effort to strengthen Muslim identity.",metaImage:"https://i.yaqeeninstitute.org/?src=/2026/05/Dhul-Hijjah_2026_Donate_SEO.jpg",imageAlt:"Donate to Yaqeen Institute this Dhul Hijjah 2026"}}];var h=a(98591);let u="dhul-hijjah-automate",m="dhul-hijjah-general",p="yaqeeninstitute.org",g={[s.PreDhulHijjah]:{sticky:{body:(0,o.jsx)(o.Fragment,{children:"The 10 best days are almost here."}),cta:"Automate your donation",url:(0,h.Iq)("/dhul-hijjah-donate",{source:p,campaign:u,content:"website-sticky"}),trackingCampaign:u},homepage:{tagline:"This Dhul Hijjah, set your rewards to repeat.",description:"Automate your donations.",ctaPrimary:{label:"Automate your donation",href:"/dhul-hijjah-donate",analyticsContent:"homepage-hero-btn-daily"},backgroundImage:"https://i.yaqeeninstitute.org/?src=/2026/05/Dhul-Hijjah_Web-Banner_Web-Banner_Jabal_Uhud_BG.jpg",foregroundImage:"https://i.yaqeeninstitute.org/?src=/2026/05/Dhul-Hijjah_Web-Banner_Web-Banner_Text_FG.png"}},[s.DhulHijjah]:{sticky:{body:(0,o.jsx)(o.Fragment,{children:"The 10 best days are here."}),cta:"Give your sadaqah",url:(0,h.Iq)("/donate",{source:p,campaign:m,content:"website-sticky"}),trackingCampaign:m},homepage:{tagline:"Fall in prayer, rise in purpose.",description:"Donate to Yaqeen this Dhul Hijjah.",ctaPrimary:{label:"Donate to Yaqeen",href:"/donate",analyticsContent:"homepage-hero-btn-daily"},backgroundImage:"https://i.yaqeeninstitute.org/?src=/2026/05/Dhul-Hijjah_Web-Banner_Kaabah_Jabal_BG_2.jpg",foregroundImage:"https://i.yaqeeninstitute.org/?src=/2026/05/Dhul-Hijjah_Web-Banner_Kaabah_Jabal_Text.png"}}},f="dhul-hijjah-general",x={sticky:{body:(0,o.jsx)(o.Fragment,{children:"The 10 best days are here."}),cta:"Give your sadaqah",url:(0,h.Iq)("/donate",{source:"yaqeeninstitute.org",campaign:f,content:"website-sticky"}),trackingCampaign:f},homepage:{tagline:"Eid Mubarak",description:"Eid Mubarak from Yaqeen Institute",ctaPrimary:null,backgroundImage:"https://i.yaqeeninstitute.org/?src=/2026/03/Eid_Mubarak_Web_Banner
15-BG.png",foregroundImage:"https://i.yaqeeninstitute.org/?src=/2026/03/Eid_Mubarak_Web_Banner-FG.png"}},y={current:()=>null};function b(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:y.current();return e}let v={feb17:{label:"February 17",ramadanStartDate:new Date("Feb 18, 2026 00:00:00"),lastTenNightsStartDate:new Date("Mar 9, 2026 00:00:00"),ramadanEndDate:new Date("Mar 18, 2026 23:59:59")},feb18:{label:"February 18",ramadanStartDate:new Date("Feb 19, 2026 00:00:00"),lastTenNightsStartDate:new Date("Mar 10, 2026 00:00:00"),ramadanEndDate:new Date("Mar 19, 2026 23:59:59")}},w={year:2026,options:[v.feb17,v.feb18],phases:{ramadanDaily:{start:"2026-01-30T00:00:00-06:00",end:"2026-02-22T23:59:59-06:00"},general:{start:"2026-02-23T00:00:00-06:00",end:"2026-03-08T23:59:59-05:00"},ltnAutomate:{start:"2026-03-04T00:00:00-06:00",end:"2026-03-15T23:59:59-05:00"},ltnGeneral:{start:"2026-03-16T00:00:00-05:00",end:"2026-03-20T23:59:59-05:00"}}},j=v.feb17;v.feb18,v.feb17,v.feb18;let{phases:k}=w,N={campaign:r.Ramadan,phase:n.Daily,analyticsName:"ramadan_daily",startDate:new Date(k.ramadanDaily.start),endDate:new Date(k.ramadanDaily.end),primaryPage:"/ramadan-daily",donationType:i.ZU.RamadanDaily,content:{heroTitle:(0,o.jsx)(o.Fragment,{children:"It takes 30 seconds to give for 30 days."}),heroDescription:(0,o.jsxs)(o.Fragment,{children:["âAnd spend [in the way of Allah] from what We have provided you before death approaches one of you and he says, ",(0,o.jsx)("br",{}),"âMy Lord, if only You would delay me for a brief term"," ",(0,o.jsx)("strong",{children:"so I would give charity"})," and be among the righteous.ââ",(0,o.jsx)("br",{})," [ Qur'an, 63:10 ]"]}),metaTitle:"Ramadan Daily Donation 2026",metaDescription:"Take 30 seconds to give for 30 days. Automate your Ramadan donations to Yaqeen.",metaImage:"https://cdn.yaqeeninstitute.org/wp-content/uploads/2026/01/pre-ramadan-2026-seo-image.jpg"}},_={campaign:r.Ramadan,phase:n.General,analyticsName:"general",startDate:new Date(k.general.start),endDate:new Date(k.general.end),primaryPage:"/donate",donationType:i.ZU.OneTime,content:{heroTitle:(0,o.jsx)(o.Fragment,{children:"He is Ar-Razzaq"}),heroDescription:(0,o.jsxs)(o.Fragment,{children:["He is the Provider of all sustenance.",(0,o.jsx)("br",{}),(0,o.jsx)("br",{}),"The Messenger of Allah (ï·º) said, âCharity does not decrease wealth.â",(0,o.jsx)("br",{}),"[",(0,o.jsx)("em",{children:"Sahih Muslim"})," #2588]",(0,o.jsx)("br",{}),(0,o.jsx)("br",{}),"Your donation helps Yaqeen provide the intellectual and spiritual guidance that keeps millions firm upon the faith."]}),metaTitle:"Make Your Ramadan Donation | Yaqeen Institute for Islamic Research",metaDescription:"Strengthen the Ummah with your Ramadan gift. Help Yaqeen provide free, conviction-building resources to Muslims everywhere.",metaImage:"https://cdn.yaqeeninstitute.org/wp-content/uploads/2026/02/Ramadan_General_Web_Seo_2026.jpg"}},S={campaign:r.Ramadan,phase:n.LtnAutomate,analyticsName:"ltn_automate",startDate:new Date(k.ltnAutomate.start),endDate:new Date(k.ltnAutomate.end),primaryPage:"/last-ten-nights",donationType:i.ZU.LastTenNights,content:{heroTitle:(0,o.jsxs)(o.Fragment,{children:["Catch Laylatul Qadr.",(0,o.jsx)("br",{}),"Automate Your Last Ten Nights"]}),heroDescription:(0,o.jsxs)(o.Fragment,{children:["The Prophet Muhammad (ï·º) said, âHurry to perform good deeds before a tribulation which will be like the dark part of the night.â",(0,o.jsx)("br",{}),"[",(0,o.jsx)("em",{children:"Sahih Muslim"})," 118]"]}),metaTitle:"Make Your Ramadan Donation",metaDescription:"Don't let a single night pass without sadaqah. Set up your automated gift once and earn reward across each of the last nights of Ramadan.",metaImage:"https://i.yaqeeninstitute.org/?src=/2026/03/Ramadan_2026_LTN_Web-Banner.jpg&w=1200"}},A=[N,_,S,{campaign:r.Ramadan,phase:n.LtnGeneral,analyticsName:"ltn_general",startDate:new Date(k.ltnGeneral.start),endDate:new Date(k.ltnGeneral.end),primaryPage:"/donate",donationType:i.ZU.OneTime,content:{heroTitle:(0,o.jsx)(o.Fragment,{children:"Elevate your last ten nights"}),heroDescription:(0,o.jsxs)(o.Fragment,{children:["âIndeed, We sent it [the Quran] down during the Night of Decree. And what can make you know
15what is the Night of Decree? The Night of Decree is better than a thousand months.â",(0,o.jsx)("br",{}),"[ ",(0,o.jsx)("em",{children:"Surah Al-Qadr"}),", 97:1-3 ]"]}),metaTitle:"Yaqeen Institute | Make the Most of These Last 10 Nights",metaDescription:"The most blessed nights of the year are here. Give your sadaqah jariyah now.",metaImage:"https://i.yaqeeninstitute.org/?src=/2026/03/Ramadan_2026_LTN_Web-Banner.jpg&w=1200"}}],C={metaTitle:"Donate to Yaqeen Institute",metaDescription:"Support Yaqeen. With your support, we can build conviction in the hearts of Muslims individually and reunite as a community to benefit humanity.",metaImage:"https://i.yaqeeninstitute.org/?src=2025/05/DH25-YT-Banner-scaled.jpg"},P={[n.Daily]:{sticky:{body:(0,o.jsx)(o.Fragment,{children:"Take 30 seconds to give for 30 days."}),cta:"Automate Your Donations",url:"/ramadan-daily",trackingCampaign:"ramadan-daily-fundraising"},homepage:{tagline:"Take 30 seconds to give for 30 days",description:"30 days, countless ways of reaching out to every hurting Muslim, every new Muslim, every practicing Muslim, every doubtful Muslimâevery Muslim.",ctaPrimary:{label:"Automate Your Donations",href:"/ramadan-daily",analyticsContent:"homepage-hero-btn-automate"},ctaSecondary:{label:"One-Time Donation",href:"/donate",analyticsContent:"homepage-hero-btn-one-time"},backgroundImage:"https://cdn.yaqeeninstitute.org/wp-content/uploads/2026/01/ramadan-general-2026-hero-banner-background.jpg",foregroundImage:"https://cdn.yaqeeninstitute.org/wp-content/uploads/2026/01/ramadan-general-2026-hero-banner-text.png"}},[n.General]:{sticky:{body:(0,o.jsx)(o.Fragment,{children:"Support faith-focused work."}),cta:"Make your Ramadan donation",url:"/donate",trackingCampaign:"ramadan-general-fundraising"},homepage:{tagline:"This Ramadan, give the gift of guidance.",description:"Point the way to faith for all the millions of souls still wandering in search of Him.",ctaPrimary:{label:"Donate to Yaqeen",href:"/donate",analyticsContent:"homepage-hero-btn-one-time"},backgroundImage:"https://cdn.yaqeeninstitute.org/wp-content/uploads/2026/01/ramadan-general-2026-hero-banner-background.jpg",foregroundImage:"https://cdn.yaqeeninstitute.org/wp-content/uploads/2026/01/ramadan-general-2026-hero-banner-text.png"}},[n.LtnAutomate]:{sticky:{body:(0,o.jsx)(o.Fragment,{children:"for the last ten nights."}),cta:"Automate your sadaqah",url:"/last-ten-nights",trackingCampaign:"ramadan-ltn-automate-fundraising"},homepage:{tagline:"In a world spinning with confusion, Yaqeen stands for truth.",description:"Let your generosity lead others to the truth of Islam. Automate your donations for the last 10 nights.",ctaPrimary:{label:"Automate your donations",href:"/last-ten-nights",analyticsContent:"homepage-hero-btn-automate"},backgroundImage:"https://i.yaqeeninstitute.org/?src=/2026/03/Ramadan_2026_LTN_Web_Banner
15-Background.jpg",foregroundImage:"https://i.yaqeeninstitute.org/?src=/2026/03/Ramadan_2026_LTN_Web-Banner-Text.png"}},[n.LtnGeneral]:{sticky:{body:(0,o.jsx)(o.Fragment,{children:"Support the work of Yaqeen."}),cta:"Donate Now",url:"/donate",trackingCampaign:"ramadan-ltn-fundraising"},homepage:{tagline:"In a world spinning with confusion, Yaqeen stands for truth.",description:"Let your generosity lead others to the truth of Islam. Give your sadaqah jariyah now.",ctaPrimary:{label:"Donate Now",href:"/donate",analyticsContent:"homepage-hero-btn-one-time"},backgroundImage:"https://i.yaqeeninstitute.org/?src=/2026/03/Ramadan_2026_LTN_Web_Banner-Background.jpg",foregroundImage:"https://i.yaqeeninstitute.org/?src=/2026/03/Ramadan_2026_LTN_Web-Banner-Text.png"}}},T={may18:{label:"May 18",dhulHijjahStartDate:new Date("2026-05-18T00:00:00-05:00"),dhulHijjahEndDate:new Date("2026-05-27T23:59:59-05:00")},may19:{label:"May 19",dhulHijjahStartDate:new Date("2026-05-19T00:00:00-05:00"),dhulHijjahEndDate:new Date("2026-05-28T23:59:59-05:00")}},O={year:2026,options:[T.may18,T.may19]},E=T.may18;T.may19;let I=e=>{let t=e??b();return t&&t.campaign!==r.Eid?t.campaign===r.Ramadan?A.find(e=>e.phase===t.phase)??null:t.campaign===r.DhulHijjah?d.find(e=>e.phase===t.phase)??null:null:null},D=e=>{let t=e??b();return t?t.campaign===r.Eid?x:t.campaign===r.Ramadan?P[t.phase]??null:t.campaign===r.DhulHijjah?g[t.phase]??null:null:null},q=()=>null!=b(),M=()=>{let e=b();return(null==e?void 0:e.campaign)===r.Ramadan},$=e=>{let t=b();if(!t||t.campaign===r.Eid)return null;let a=t.campaign===r.Ramadan?A:d,i=a.find(a=>a.phase===t.phase&&a.donationType===e);return i||(a.find(t=>t.donationType===e)??null)}},44221:(e,t,a)=>{"use strict";a.d(t,{ED:()=>o,EN:()=>m,M$:()=>h,R3:()=>l,h5:()=>c,jn:()=>d,kJ:()=>u});var i=a(14232),r=a(74382),n=a.n(r),s=a(10180);let l=(e,t)=>e.startsWith(`<${t}`)&&e.endsWith(`</${t}>`)?e.slice(e.indexOf(">")+1,-1*t.length-3):e,o=e=>{let t=e.match(/<([^>\s]+)([^>]*)>/);if(t){let e,[,a,i]=t,r=/(\w+)="([^"]*)"/g,n={};for(;e=r.exec(i);){let[,t,a]=e;n[t]=a}return{tagName:a.toLowerCase(),attributes:n}}return{tagName:"",attributes:{}}},c=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return`${t}-${(e=>{let t=0x811c9dc5;for(let a=0;a<e.length;a+=1)t^=e.charCodeAt(a),t=t+((t<<1)+(t<<4)+(t<<7)+(t<<8)+(t<<24))>>>0;return t.toString(36)})(e)}`},d=e=>{let t=n().load(e),a=/(§\d+(?:\-§\d+)?)(?:\.)?(?:\s+)?/,i=t("p").text()||"",r=i.match(a);return{translationNumber:r?r[1]:"",rest:i.replace(a,"").trim()}},h=e=>(e("figure").addClass("overflow-scroll"),e("th").addClass("bg-blue-100 border px-2 py-2"),e("td").addClass("border px-2 py-2"),e("tr").addClass("border px-2 py-2"),e("table, thead, tbody, tfoot, tr").contents().each((t,a)=>{"text"!==a.type||/\S/.test(a.data||"")||e(a).remove()}),e("body").html()||""),u=(e,t)=>
15{let a=e(t).text();return a=a.replace(/^\[/g,"").replace(/\]$/g,""),e(t).text(a)},m=(e,t)=>(0,i.isValidElement)(e)?"string"==typeof e.type?(0,i.cloneElement)(e,{[s.bt]:t}):(0,i.createElement)("div",{[s.bt]:t,key:e.key},e):e},45135:(e,t,a)=>{"use strict";a.d(t,{U:()=>i});let i=[{title:"Conversationsâ¢",description:"Jump straight into a faith discussion using simple card decks designed to bring clarity and perspective.",src:"/static/images/main/learn/Conversations.svg",is_new:!1,coming_soon:!1,category:"learning",href:"/conversations"},{title:"Conviction Circlesâ¢",description:"Make deeply intellectual, guided group discussions on challenging faith topics a routine.",src:"/static/images/main/learn/Conviction_Circles.svg",is_new:!1,coming_soon:!1,category:"educator",href:"/conviction-circles"},{title:"Curriculumâ¢",description:"Dive deep into faith issues through lesson plans specifically tailored to Muslim youth today.",src:"/static/images/main/learn/Curriculum.svg",is_new:!1,coming_soon:!1,category:"educator",href:"/curriculum"},{title:"Talk Toolkitsâ¢",description:"Deliver talks with ease using authentic, well-researched, pre-prepared lectures relevant to Muslims today.",src:"/static/images/main/learn/Talk_Toolkits.svg",is_new:!1,coming_soon:!1,category:"educator",href:"/talk-toolkits"},{title:"What Islam Says About",description:"Youâll find a quick and comprehensive catalogue of answers to common questions that arise from misconceptions about Islam.",src:"/static/images/products/pillars/wisa.svg",is_new:!1,coming_soon:!1,category:"learning",href:"/what-islam-says-about"}]},45313:(e,t,a)=>{"use strict";a.r(t),a.d(t,{LoginModal:()=>p});var i=a(14232),r=a(54587),n=a.n(r),s=a(9361),l=a(65083),o=a(69174),c=a(67579),d=a(37876);let h=()=>{let{firebaseAuth:e}=(0,l.m9)(),{onCloseLoginModal:t}=e;return(0,d.jsx)("div",{className:"inline-flex items-end justify-end w-full",children:(0,d.jsx)(o.$n,{"aria-label":"close modal",onPress:t,children:(0,d.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,d.jsx)("path",{d:"M7.7846 6L11.824 1.96056C12.0577 1.72694 12.0577 1.34782 11.824 1.11383L10.8854 0.175216C10.6518 -0.0584053 10.2727 -0.0584053 10.0387 0.175216L5.99963 4.21503L1.96019 0.175591C1.72657 -0.0580303 1.34745 -0.0580303 1.11345 0.175591L0.175216 1.11383C-0.0584053 1.34745 -0.0584053 1.72657 0.175216 1.96056L4.21465 6L0.175216 10.0394C-0.0584053 10.2731 -0.0584053 10.6522 0.175216 10.8862L1.11383 11.8248C1.34745 12.0584 1.72657 12.0584 1.96056 11.8248L5.99963 7.78497L10.0391 11.8244C10.2727 12.058 10.6518 12.058 10.8858 11.8244L11.8244 10.8858C12.058 10.6522 12.058 10.2731 11.8244 10.0391L7.7846 6Z",fill:"#D1D5DB"})})})})},u=()=>{let{firebaseAuth:e}=(0,l.m9)(),{userInfo:t}=e;return(0,d.jsxs)("div",{className:"inline-flex space-x-6 items-center justify-start w-full mb-6",children:[(0,d.jsxs)("div",{className:"inline-flex flex-col space-y-4 items-start justify-start flex-1",children:[(0,d.jsx)(o.DZ,{fontSize:"text-2xl",weight:"font-semibold",letterSpacing:"tracking-tight-1",color:"text-endeavour-500",className:"w-64 leading-loose whitespace-nowrap",children:(()=>{switch(t.authState){case s.j_.SignInLinkSent:return"Check your email";case s.j_.RequireEmailConfirmation:return"Confirm your email";default:return"Log in or Sign up"}})()}),(0,d.jsx)("div",{className:"w-10 h-1 border-b-4 border-carrot-500 mt-2"})]}),(0,d.jsx)("div",{className:"flex items-center justify-center w-12 h-full px-1 py-0.5",children:(0,d.jsx)(n(),{src:"/static/images/yaqeen-logo-compass.svg",alt:"Yaqeen Logo",width:48,height:48})})]})},m=()=>{let{firebaseAuth:e}=(0,l.m9)(),{email:t,onCloseLoginModal:a}=e;return(0,d.jsx)("div",{className:"w-full",children:(0,d.jsxs)("div",{className:"m-5 text-center",children:[(0,d.jsxs)("p",{className:"mb-5",children:["Click the link we sent to"," ",t?(0,d.jsx)("span",{className:"font-bold",children:t}):"your email"," to sign in. If you do not see the email in a few minutes, check your Spam or Junk mail folder."]}),(0,d.jsx)("p",{children:(0,d.jsx)(o.$n,{className:"inline-block w-1/4 bg-carrot-500 px-4 py-3 rounded",onPress:()=>{a()},children:(0,d.jsx)(o.EY,{weight:"font-bold",color:"text-white",children:"Ok"})})})]})})},p=()=>{let{0:e,1:t}=(0,i.useState)(!1),{firebaseAuth:a}=(0,l.m9)(),{authError:r,isDismissable:n,modalHeader:o,signInError:p,userInfo:g,setSignInError:f}=a,x=(0,i.useMemo)(()=>[s.j_.AuthLoading,s.j_.VerifiedAuth,s.j_.UnverifiedAuth],[]);return(0,i.useEffect)(()=>{t(x.includes(g.authState))},[g.authState,x]),(0,i.useEffect)(()=>
15{if(r.error)return void f({message:r.message})},[r]),!e&&(0,d.jsxs)(d.Fragment,{children:[n&&(0,d.jsx)(h,{}),o||(0,d.jsx)(u,{}),p&&(0,d.jsx)("div",{className:"inline-flex items-start justify-start w-full p-4 bg-red-50 rounded-md",children:(0,d.jsx)(l.$p,{errors:p,logTitle:p.code,content:p.message,onClose:()=>{f(null)}})}),(()=>{switch(g.authState){case s.j_.RequireLoginOrSignUp:return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(c.FederatedOptionList,{}),(0,d.jsx)(c.EmailOption,{})]});case s.j_.RequireEmailConfirmation:return(0,d.jsx)(c.EmailConfirmationForm,{});case s.j_.RequireDisplayName:return(0,d.jsx)(c.FullNameForm,{});case s.j_.SignInLinkSent:return(0,d.jsx)(m,{})}})()]})}},45541:(e,t,a)=>{"use strict";a.d(t,{vm:()=>l,N:()=>o,Kv:()=>d,yH:()=>c});var i=a(14232),r=a(56189);let n=function(e){return e.consumed="consumed",e.unconsumed="unconsumed",e}({});var s=a(17385);let l=e=>{let{data:t,error:a}=(0,s.Ay)(e?`https://2npow79v74.execute-api.us-east-1.amazonaws.com/production/v1/compass/lesson-plan?email=${e}`:null),r=(0,i.useMemo)(()=>null!=t&&t.plan?[t.plan.plan_post_1_id,t.plan.plan_post_2_id,t.plan.plan_post_3_id,t.plan.plan_post_4_id].filter(Boolean):[],[t]);return{compassPlanRaw:t,compassPlanPosts:r,isLoading:!a&&!t,isError:a}},o=e=>{let{data:t,error:a}=(0,s.Ay)(e?`https://2npow79v74.execute-api.us-east-1.amazonaws.com/production/v1/compass/recommendation-events?email=${e}`:null);return{consumedPosts:(0,i.useMemo)(()=>t?t.postIds:[],[t]),isLoading:!!e&&!a&&!t,isError:a}},c=()=>{let{mutate:e}=(0,s.iX)();return async(t,a,i)=>{let s=i?n.consumed:n.unconsumed;try{if(!(await fetch("https://2npow79v74.execute-api.us-east-1.amazonaws.com/production/v1/compass/recommendation-event",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({post_id:t,email:a,event_type:s,created_at:Date.now()})})).ok)throw Error("Failed to update recommendation event");return await e(`https://2npow79v74.execute-api.us-east-1.amazonaws.com/production/v1/compass/recommendation-events?email=${a}`),!0}catch(e){return console.error("Error updating recommendation event:",e),r.toast.error("Failed to update. Please try again."),!1}}},d=()=>{let{mutate:e}=(0,s.iX)(),{0:t,1:a}=(0,i.useState)(!1);return{generateNewPlan:(0,i.useCallback)(async t=>{if(!t)return r.toast.error("User email not available. Please ensure you're logged in."),!1;a(!0);try{if(!(await fetch(`https://2npow79v74.execute-api.us-east-1.amazonaws.com/production/v1/compass/new-lesson-plan?email=${t}`)).ok)throw Error("Failed to generate new plan");return await e(`https://2npow79v74.execute-api.us-east-1.amazonaws.com/production/v1/compass/lesson-plan?email=${t}`),r.toast.success("New plan generated successfully!"),!0}catch(e){return console.error("Error generating new plan:",e),r.toast.error("Failed to generate new plan. Please try again."),!1}finally{a(!1)}},[e]),isLoading:t}}},45543:(e,t,a)=>{"use strict";a.d(t,{L:()=>o,p:()=>l});var i=a(56217),r=a(79052),n=a(32008),s=a(99742);function l(e){let{directory:t,componentTag:a,requiredFields:l}=e,o=[],c=[],d=(0,r.join)(s.cwd(),"public","_data",t);try{for(let e of(0,i.readdirSync)(d).filter(e=>e.endsWith(".json")))try{let t=(0,r.join)(d,e),s=(0,i.readFileSync)(t,"utf-8"),h=JSON.parse(s),u=l.filter(e=>!(e in h)||!h[e]);if(u.length>0){let i=`Missing required fields [${u.join(", ")}] in file ${e}`;n.A.error(i,{component:a,file:e,path:t,missingFields:u}),c.push(i);continue}o.push(h)}catch(i){let t=`Error reading file ${e}: ${i}`;n.A.error(t,{component:a,file:e,error:i}),c.push(t)}}catch(i){let e=`Error reading ${t} directory: ${i}`;n.A.error(e,{component:a,directory:t,error:i}),c.push(e)}return{data:o,errors:c}}function o(e,t,a,l){let o=(0,r.join)(s.cwd(),"public","_data",e,`${t}.json`);try{let e=(0,i.readFileSync)(o,"utf-8"),r=JSON.parse(e),s=l.filter(e=>!(e in r)||!r[e]);if(s.length>0)return n.A.error(`Missing required fields [${s.join(", ")}] in file ${t}.json`,{component:a,id:t,path:o,missingFields:s}),null;return r}catch(e){return null}}},45999:(e,t,a)=>{"use strict";a.d(t,{r:()=>i});let i=async(e,t)=>{try{let a=await fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),i=await a.json();if(!i.success)throw Error("Submission failed");
15return[!0,!0===i.alreadySubmitted]}catch(e){console.error(e)}return[!1,!1]}},46359:(e,t,a)=>{"use strict";a.d(t,{K:()=>l});var i=a(66284),r=a(37876);function n(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,i)}return a}function s(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?n(Object(a),!0).forEach(function(t){(0,i.A)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):n(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}function l(e){let{active:t,id:a,labelledBy:i,className:n="",children:l}=e;return(0,r.jsx)("div",s(s({id:a,role:"tabpanel","aria-labelledby":i,"aria-hidden":!t},t?{}:{inert:""}),{},{className:`${t?"relative opacity-100 pointer-events-auto z-10":"absolute inset-0 opacity-0 pointer-events-none overflow-hidden z-0"} ${n}`.trim(),children:l}))}},47369:(e,t,a)=>{"use strict";a.d(t,{gE:()=>h,X1:()=>m,BJ:()=>u});var i=a(66284),r=a(74382);let n=[{slug:"what-to-do-on-the-day-of-arafah-making-the-most-of-a-blessed-day",keyTakeaways:["The Day of Arafah (9th of Dhul Hijjah) is the day Allah frees the most people from the Fire â fasting it is reported by the Prophet ï·º to expiate the sins of the year before and the year after (<i>Sahih Muslim</i>, no. 1162).","For non-pilgrims, the five recommended practices are: fasting, continuous du'a and dhikr, honoring the sunnah prayers, reflecting on the Prophet's ï·º Final Sermon, and renewing one's covenant with Allah.",'The best dhikr taught by the Prophet ï·º for this day is: "La ilaha illa Allah, wahdahu la sharika lah, lahul-mulku wa lahul-hamdu, wa huwa Ê¿ala kulli shayʾin qadeer" (<i>Sunan al-Tirmidhi</i>, no. 3585).'],FAQs:[]},{slug:"a-sacred-invitation-what-to-do-in-the-first-10-days-of-dhul-hijjah",keyTakeaways:['The first 10 days of Dhul Hijjah are the most beloved days to Allah for righteous deeds â "No good deeds are better than those done in these first ten days of Dhul Hijjah" (<i>Sahih al-Bukhari</i>).',"Non-pilgrims can participate fully through fasting (especially the 9th), increased dhikr, tahajjud, sadaqa, and concluding the days with Eid al-Adha â Hajj is not the only valid form of devotion this month.","The 9th (Day of 'Arafah) and 10th (Day of Sacrifice) are the spiritual peak of the 10 days; every other day's worship builds toward those two."],FAQs:[]},{slug:"centering-sacrifice-the-importance-of-the-first-10-days-of-dhul-hijjah",keyTakeaways:["The first 10 days of Dhul Hijjah are the best days to do righteous deeds â the Prophet ï·º said no other days are more beloved to Allah for worship (<i>Sahih al-Bukhari</i>, no. 969).","Sacrifice in Dhul Hijjah is not only the slaughter of livestock â it is the inward reorientation of giving up something costly (time, comfort, ego) for the sake of Allah, as Prophet Ibrahim's ï·º readiness to sacrifice his son demonstrated.",'The honest question for every non-pilgrim during these 10 days is: "What am I willing to sacrifice to draw closer to Allah?" â convenient devotion does not match the spirit of the days.'],FAQs:[]},{slug:"convert-connection-dhul-hijjah-reflections-with-sh-abdullah-oduro",keyTakeaways:["Dhul Hijjah can feel isolating for new Muslims when family and cultural context are absent â Sh. Abdullah Oduro emphasizes that the season is observed primarily through worship and intention, not communal infrastructure.","Sh. Oduro's first Hajj as a convert reframed his understanding of Islam as a global, transhistorical community â the rites of Hajj rehearse the same submission practiced by Prophet Ibrahim ï·º across centuries.","For converts navigating Dhul Hijjah for the first time, the advice is: anchor in obligatory worship first (prayer, fasting where applicable), build community deliberately rather than waiting for it, and treat any sense of disconnect as a normal phase rather than a sign of weak faith."],FAQs:[]},{slug:"important-duas-and-dhikr-for-the-day-of-arafah",keyTakeaways:['The Prophet ï·º said the best supplication is the supplication of the Day of Arafah, and the best dhikr is the declaration of tawhid: "La ilaha illa Allah, wahdahu la sharika lah, lahul-mulku wa lahul-hamdu, wa huwa Ê¿ala kulli shayʾin qadeer" (<i>Sunan al-Tirmidhi</i>, no. 3585).',"Companion supplications on this day (Ali ibn Abi Talib's du'a for inner light; Abdullah ibn Umar's du'a for guidance and forgiveness) extend the Prophet's ï·º dhikr with personal petition â a model of combining sunnah formulas with sincere du'a.","Specific du'as transmitted from this day carry exceptional virtue because the Day of Arafah is the day Allah frees more people from the Fire than any other (<i>Sahih Muslim</i>, no. 1348)."],FAQs:[{question:"What du'a did the Prophet ï·º recite on the Day of Arafah?",answer:"The Prophet ï·º said: \"The best supplication is the supplication of the Day of Arafah, and the best thing that I and the Prophets before me have said is: 'La ilaha illa Allah, wahdahu la sharika lah, lahul-mulku wa lahul-hamdu, wa huwa Ê¿ala kulli shayʾin qadeer' â There is no god but Allah, alone, without partner; to Him belongs the dominion and to Him belongs all praise; and He has power over all things.\" (<i>Sunan al-Tirmidhi</i>, no. 3585, graded <i>hasan</i> by al-Albani)"},{question:"What du'a did Ali ibn Abi Talib (ra) recite on the Day of Arafah?",answer:'Ali (ra) used to repeat on the Day of Arafah: "Allahumma ajÊ¿al fi qalbi nuran, wa fi sami nuran, wa fi basari nuran. Allahumma ishrah li sadri, wa yassir li amri â O Allah, place light in my heart, light in my hearing, and light in my sight. O Allah, expand my chest and ease my affair." His recitation reflects the early Companions\' practice of combining the best dhikr taught by the Prophet ï·º with personal supplication for spiritual openness.'},{question:"What du'a did Abdullah ibn Umar (ra) recite on the Day of Arafah?",answer:'Abdullah ibn Umar (ra) used to recite on the Day of Arafah, in addition to the dhikr taught by the Prophet ï·º: "Allahumma ihdini bil-huda, wa naqqini bit-taqwa, waghfir li fil-akhirati wal-ula â O Allah, guide me with guid
15ance, purify me with God-consciousness, and forgive me in this world and the next." His narration appears in <i>Sahih Muslim</i>, no. 1348 and is one of the canonical Companion supplications associated with this day.'},{question:"Why is the Day of Arafah significant for duâa?",answer:'The Day of Arafah (9th of Dhul Hijjah) is the day on which Allah completed the religion (Qurâan 5:3) and the day the Prophet ï·º described as the best day on which duâa is made. The Prophet ï·º said: "There is no day on which Allah frees more people from the Fire than the Day of Arafah." (<i>Sahih Muslim</i>, no. 1348) This is why specific duâas transmitted from the Prophet ï·º and his Companions on this day carry exceptional virtue.'}]},{slug:"what-is-hajj-understanding-the-muslim-pilgrimage",keyTakeaways:["Hajj is the fifth pillar of Islam, alongside the declaration of faith, daily prayer, fasting in Ramadan, and charity. Every Muslim who is physically and financially able must perform it once in their lifetime.","Hajj takes place during the first thirteen days of Dhul Hijjah â the twelfth and final month of the Islamic lunar calendar â in and around Mecca, with rites at the Kaaba, the hills of Safa and Marwa, Mina, Muzdalifa, and the plain of âArafa.","The rites of Hajj â ihram, <i>tawaf</i> (circling the Kaaba seven times), <i>saâi</i> (walking seven times between Safa and Marwa), the standing at âArafa, the stoning at Mina, and the <i>hady</i> sacrifice â are a deliberate reenactment of the trials faced by Prophet Ibrahim ï·º, his wife Hajar, and their son Ismail ï·º.",'The Day of âArafa (9th of Dhul Hijjah) is the central pillar of Hajj â the rite without which the pilgrimage is not complete. The Prophet ï·º said, "Hajj is âArafa" (<i>Sunan al-Tirmidhi</i>, no. 2975), and "There is no day on which Allah frees more people from the Fire than the Day of âArafa" (<i>Sahih Muslim</i>, no. 1348).','On the plain of \'Arafa during his Final Pilgrimage, the Prophet ï·º delivered his Final Sermon â calling for racial equality, the just treatment of women, and an end to economic exploitation through usury â and the verse "This day I have perfected for you your religion and completed My favor upon you" was revealed (Qurâan 5:3).'],FAQs:[{question:"What is Hajj?",answer:"Hajj is the fifth pillar of Islam â the major pilgrimage to Mecca that every Muslim who is physically and financially able must perform once in their lifetime. The pilgrimage takes place during the first thirteen days of Dhul Hijjah, the twelfth month of the Islamic lunar calendar. Its rites â entering <i>ihram</i> (a state of consecration), circling the Kaaba (<i>tawaf</i>), walking between Safa and Marwa (<i>saâi</i>), standing at the plain of âArafa, stoning the pillars at Mina, and offering a sacrifice (<i>hady</i>) â are a deliberate reenactment of the trials faced by Prophet Ibrahim ï·º, his wife Hajar, and their son Ismail ï·º."},{question:"When is Hajj performed?",answer:"Hajj takes place during the first thirteen days of Dhul Hijjah, the twelfth and final month of the Islamic lunar calendar. The Day of âArafa â the central rite of Hajj â falls on the 9th of Dhul Hijjah, followed by Eid al-Adha on the 10th. Because the Islamic calendar is lunar, the corresponding Gregorian dates shift by roughly eleven days each year."},{question:"Who is required to perform Hajj?",answer:"Every Muslim who is physically and financially able is obligated to perform Hajj once in their lifetime. Those who lack the physical capacity or the financial means â including the cost of travel, accommodation, and providing for any dependents in their absence â are not obligated. Hajj is one of the Five Pillars of Islam, alongside the declaration of faith (<i>shahada</i>), daily prayer (<i>salah</i>), fasting in Ramadan (<i>sawm</i>), and obligatory charity (<i>zakat</i>)."},{question:"What is the Day of âArafa and why is it the most important day of Hajj?",answer:'The Day of âArafa is the 9th of Dhul Hijjah, when pilgrims gather on the plain of âArafa and stand from noon until sunset in prayer and supplication. It is the central pillar of Hajj â the rite without which the pilgrimage is not complete. The Prophet Muhammad ï·º said simply, "Hajj is âArafa" (<i>Sunan al-Tirmidhi</i>, no. 2975), and "There is no day on which Allah frees more people from the Fire than the Day of âArafa" (<i>Sahih Muslim</i>, no. 1348). On this very plain, during his Final Pilgrimage, the Prophet ï·º delivered his Final Sermon and the verse "This day I have perfected for you your religion and completed My favor upon y
15ou" was revealed (Qurâan 5:3).'},{question:"What does Hajj commemorate?",answer:"The rites of Hajj are a reenactment of the trials faced by the Prophet Ibrahim ï·º (Abraham), his wife Hajar, and their son Ismail ï·º (Ishmael). According to Islamic tradition, each was tested by God: Ibrahim ï·º was commanded to leave his family in an empty desert valley and, years later, to offer his only son in sacrifice; Hajar was left there alone with a thirsty infant; Ismail ï·º was the child at the center of both ordeals. The <i>saâi</i> between Safa and Marwa reenacts Hajar's search for water; the stoning at Mina reenacts Ibrahim's ï·º rejection of Satan's whispers; the <i>hady</i> sacrifice recalls God's substitution of a ram for Ibrahim's ï·º son."},{question:"How is Hajj different from Umrah?",answer:"Hajj is the major pilgrimage â obligatory once in a lifetime for every able Muslim â and can only be performed during the first thirteen days of Dhul Hijjah. Umrah is a shorter, lesser pilgrimage that is recommended but not obligatory, and can be performed at any time of year. Hajj includes additional rites that Umrah does not â most importantly the standing at the plain of âArafa on the 9th of Dhul Hijjah, the stoning of the pillars at Mina, and the <i>hady</i> sacrifice."},{question:"Where does Hajj take place?",answer:'Hajj takes place in and around Mecca, in present-day Saudi Arabia. Its spiritual center is the Kaaba â an ancient cube-shaped structure inside the Sacred Mosque â though the rites also unfold at the hills of Safa and Marwa nearby, and at Mina, Muzdalifa, and the plain of âArafa. The Qurâan describes the Kaaba as the worldâs first house of worship: "Surely the first House [of worship] established for humanity is the one at Bakka [i.e., Mecca] â a blessed sanctuary and a guide for all people" (Qurâan 3:96). According to Islamic teaching, Prophet Ibrahim ï·º and Ismail ï·º raised its foundations together (Qurâan 2:127).'}]},{slug:"fasting-ashura-what-is-ashura-and-why-is-it-important",keyTakeaways:["Ashura literally means âthe tenthâ and refers to the 10th day of Muharram, the first month in the Islamic calendar year. It is a day that our Prophet Muhammad ï·º fasted and encouraged us to fast as well â He ï·º tells us that fasting on this day forgives our sins from the previous year.","The Prophet ï·º never abandoned fasting the day of Ashura: âThere are four things which the Prophet never gave up: fasting Ashura, fasting during the ten days [of Dhul Hijjah], fasting three days of each month, and praying two <i>rakâat</i> before <i>al-ghadah</i> [i.e., Fajr].â [<i>Sunan Al-Nasaâi</i> #2416]","The importance of Ashura predates Islam â the Quraysh fasted it during the era of <i>Jahiliyya</i> (<i>Sahih Al-Bukhari</i> #4504), and the Prophet ï·º taught that Muslims have more right to commemorate Mosesâ victory over Pharaoh than others do (<i>Sahih Al-Bukhari</i> #4680)."],FAQs:[{question:"What is Ashura and what does it mean?",answer:"Ashura literally means âthe tenthâ and refers to the 10th day of Muharram, the first month in the Islamic calendar year. It is a day that our Prophet Muhammad ï·º fasted and encouraged us to fast as well. He ï·º tells us that fasting on this day forgives our sins from the previous year. What better way to get started on a clean slate?"},{question:"Why did the Prophet ï·º never stop fasting Ashura?",answer:"The Prophet ï·º never abandoned fasting the day of Ashura. We are told that, âThere are four things which the Prophet never gave up: fasting Ashura, fasting during the ten days [of Dhul Hijjah], fasting three days of each month, and praying two <i>rakâat</i> before <i>al-ghadah</i> [i.e., Fajr].â [<i>Sunan Al-Nasaâi</i> #2416] Many of you may have heard that the Prophet ï·º began fasting the day of Ashura when he arrived in Madinah and found the Jews fasting this day because it coincided with Passover. Ibn Abbas (rA) narrated that when the Prophet ï·º arrived at Madinah, the Jews were observing the fast on Ashura and said, âThis is the day when Moses became victorious over Pharaoh.â The Prophet ï·º replied, âYou (Muslims) have more right to celebrate Mosesâ victory than they have, so observe the fast on this day.â [<i>Sahih Al-Bukhari</i> #4680]"},{question:"What happened on Ashura throughout history?",answer:"The pre-Islamic Arabs of Quraysh were already observing Ashura, which was in reality a remnant from the teachings of Prophet Ibrahim that they observed, similar to the rituals of Hajj. Another hadith, although it is weak, adds that Ashura âis the day that the ship of Prophet Nuh settled upon Mount Judi, and so Prophet Nuh fasted the day out of thankfulness to Allahâ [<i>Musnad Ahmad</i> #8717]. Later in history, the Prophetâs grandson al-Husayn would be martyred at Karbala on the day of Ashura while opposing the unjust governance of his time. While the tragedy at Karbala holds theological impl
15ications for Shia Muslims that it does not hold for Sunni Muslims, we can interpret it in the grander scheme as another moment in which Allah saves His servant from oppressionâthis time through martyrdom."},{question:"How should we observe Ashura today?",answer:"Altogether, these events illustrate the historic significance of the day of Ashura. Not only did the Prophets of the past observe this day, but it seems to also be connected to moments of Godâs victory on earth: Nuh (as) escaping the ridicule and opposition of his people, Musa (as) escaping the tyranny of the Pharaoh, and al-Husayn (rA) escaping the oppressors in power. So as we fast this day in pursuit of Allahâs forgiveness, letâs reflect on the examples of the prophets and the righteous, who opposed tyranny and oppression while standing up for the religion of Allah. As the new year unfolds, we pray that Allah forgives our sins of the past and gives us the strength to stand up for His Truth."}]},{slug:"what-happened-on-the-day-of-ashura-contextualizing-the-events-and-meaning-of-ashura",keyTakeaways:["On the day of Ashura, millennia ago, Musa (as) and the Children of Israel achieved a momentous victory over the oppressive tyranny of Pharaoh. The splitting of the sea (Qurâan 26:63-68) remains a vivid symbol of Allahâs aid to those who steadfastly maintain their trust in Him.","Ashura also coincides with the martyrdom of al-Husayn ibn Ali (ra) at Karbala. His was not an apparent worldly victory but one of the Hereafter â âHussein is from me and I am from Hussein. Allah loves anyone who loves Hussein.â (<i>Jamiâ al-Tirmidhi</i> #3775)","Husaynâs end, and our continued hope for worldly <i>and</i> everlasting victory, is even more relevant today as our Palestinian brothers and sisters suffer such abhorrent barbarity â as believers we refrain from measuring victory by earthly metrics and entrust our hopes to the greater design of Allahâs plans."],FAQs:[{question:"What happened to Musa (as) and the Children of Israel on Ashura?",answer:"On the day of Ashura, millennia ago, Musa (as) and the Children of Israel achieved a momentous victory over the oppressive tyranny of Pharaoh. Guided by divine command, Musa (as) led his people to the edge of the parted sea, where Allah miraculously allowed them to cross to safety while the pursuing army of Pharaoh drowned (Qurâan 26:63-68). The splitting of the sea, a divine gesture of mercy and deliverance, remains a vivid symbol of Allahâs aid to those who steadfastly maintain their trust in Him."},{question:"What is the connection between Ashura, Noah (as) and the flood?",answer:"Though it is considered a weak narration, Ashura is potentially âthe day that the ship of Prophet Nuh (as) settled upon Mount Judi, and so Prophet Nuh (as) fasted the day out of thankfulness to Allahâ [<i>Musnad Ahmad</i> #8717]. The Qurâan recounts that the Ark rested on Mount Judi after the floodwater receded (Qurâan 11:40-44). Prophet Nuh (as) faced immense trials and challenges during his mission, and the survival of some of his family and believers shows his obedience to Allah. Victory is not always immediate or apparent, but it comes to those who steadfastly trust in Allah."},{question:"Why is Husayn ibn Ali (ra) associated with Ashura?",answer:"Hasan and Hussein were the grandsons of the Prophet ï·º, and he loved them immensely â Ibn Umar narrated, âI heard the Prophet ï·º say, âThey are my two sweet-basils in the world.ââ (<i>Sahih al-Bukhari</i> #5994) Ashura coincides with the martyrdom of Hussein during the reign of the tyrant Yazid, after the people of Kufa who had promised him their allegiance ultimately betrayed him. The victory of Hussein in this case was not an apparent worldly victory but one of the Hereafter; his victory came in the form of martyrdom, and it stands as a testament to the strength of unwavering faith in the face of tyranny. The Prophet ï·º said, âHussein is from me and I am from Hussein. Allah loves anyone who loves Hussein. He is one of my distinguished descendants.â (<i>Jamiâ al-Tirmidhi</i> #3775)"},{question:"What does Palestine have to do with Ashura?",answer:"Husseinâs end, and our continued hope for worldly <i>and</i> everlasting victory, is even more relevant today, as our Palestinian brothers and sisters, with their unwavering dignity and strength, suffer such abhorrent and heart-wrenching barbarity. Allahâs granting of victory need not materialize in immediate worldly terms. Whether in our lifetime or beyond, as believers we refrain from measuring victory by earthly metrics. Instead, we entrust our hopes to the greater design of Allahâs plans, remaining steadfast in the certainty that Allah will honor the martyrs and reward their sacrifices."},{question:"Why are Muslims fasting Ashura?",answer:"Ashura is derived from the Arabic word <i>ashara</i> meaning ten, and refers specifically to the 10th day of the month of Muharram, the first month of the Islamic calendar. The best way to commemorate Ashura is the way of the sunnah, through fasting. We honor a practice dating back to the time before Islam, when even the Quraysh recognized its importance, and the Prophet Muhammad ï·º emphasized our rightful claim to celebrate Mosesâ victory, urging us to fast on this blessed day (<i>Sahih Al-Bukhari</i> #4680). It is recommended to distinguish our fast from that of earlier traditions by fasting a day before (which is preferred) or after Ashura."}]}];var s=a(16591),l=a(1811),o=a(55850);function c(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,i)}return a}function d(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};
15t%2?c(Object(a),!0).forEach(function(t){(0,i.A)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):c(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}let h=(e,t,a)=>{if(!t||0===t.length||!e||0===e.length)return e;let i=(0,o.bo)(a);return[...e,{question:`What are the key takeaways of "${i}"?`,answer:t.map((e,t)=>`${t+1}. ${(0,o.bo)(e)}`).join("\n")}]},u=e=>{var t;let a=null==e||null==(t=e.acf)?void 0:t.keyTakeaways;if(Array.isArray(a)&&a.length>0)return a;let i=s.z.find(t=>t.slug===(null==e?void 0:e.slug));if(null!=i&&i.keyTakeaways&&i.keyTakeaways.length>0)return i.keyTakeaways;let r=n.find(t=>t.slug===(null==e?void 0:e.slug));if(null!=r&&r.keyTakeaways&&r.keyTakeaways.length>0)return r.keyTakeaways;let o=l.q.find(t=>t.slug===(null==e?void 0:e.slug));return null!=o&&o.takeaways&&o.takeaways.length>0?o.takeaways:null},m=(e,t)=>{try{var a,i,l;if(null!=e&&null!=(a=e.acf)&&a.faqs&&e.acf.faqs.length>0)return e.acf.faqs;let o=t?(e=>{if(!Array.isArray(e)||0===e.length)return null;let t=e.flat().join("\n"),a=r.load(t),i=e=>a("<div>").html(e).text().trim(),n=e.find(e=>{let t=(null==e?void 0:e[0])||"";return t&&(e=>{let t=a("<div>").html(e).text().trim().toLowerCase();return"frequently asked questions"===t||"faq"===t||"faqs"===t})(t)});if(!n||n.length<=1)return null;let s=[],l=null,o=[],c=()=>{if(l){let e=i(o.join("\n"));e&&s.push({question:i(l),answer:e})}l=null,o=[]};return n.slice(1).forEach(e=>{(e=>{let t=a("<div>").html(e),i=t.text().trim(),r=t.find("strong").length>0||t.find("b").length>0||t.find("h4, h5").length>0||i.startsWith("Q:"),n=/\?\s*$/.test(i),s=i.length>0&&i.length<=220&&!e.includes("<li>");return r||n||s})(e)?(c(),l=e):o.push(e)}),c(),s.length>0?s:null})(t):null;if(o&&o.length>0)return o;let c=s.z.find(t=>t.slug===(null==e?void 0:e.slug));if(null!=c&&null!=(i=c.FAQs)&&i.length)return c.FAQs.map(e=>d({question:e.question,answer:e.answer},e.citations&&e.citations.length>0?{citations:e.citations}:{}));let h=n.find(t=>t.slug===(null==e?void 0:e.slug));if(null!=h&&null!=(l=h.FAQs)&&l.length)return h.FAQs.map(e=>d({question:e.question,answer:e.answer},e.citations&&e.citations.length>0?{citations:e.citations}:{}));return null}catch(e){return console.error("Error in getFaqsWithFallbacks:",e),null}}},47489:(e,t,a)=>{"use strict";a.d(t,{AD:()=>d,X1:()=>c,uU:()=>o});var i=a(49829),r=a(32008),n=a(17250);let s="BasicSubmissions",l=(e,t)=>{r.A.log(e,t,r.$.ERROR),console.error(e,t)},o=async e=>{try{let t=(0,n.tI)(s,e);return(await t).id}catch(t){return l("Error adding survey to BasicSubmissions",{surveyData:e,error:t}),!1}},c=async e=>{try{return!(await (0,n.HK)(s,(0,i._M)("userId","==",e))).empty}catch(t){return l("Error getting doc with userId in BasicSubmissions",{userId:e,error:t}),!1}},d=async e=>{try{let t=await (0,n.HK)(s,(0,i._M)("userId","==",e));return(t.empty?[]:t.docs.map(e=>{{let t=e.data(),a=t.meta.timestamp;return{submissionId:e.id,contribution:t.contribution,attitude:t.attitude,belief:t.belief,spiritual_behavior:t.spiritual_behavior,institution:t.institution,spiritual_connection:t.spiritual_connection,meta:{timestamp:a.toDate()},userId:t.userId,yob:t.yob,gender:t.gender}}})).filter(Boolean).sort((e,t)=>t.meta.timestamp-e.meta.timestamp)}catch(t){throw l("Error getting doc with id in BasicSubmissions",{id:e,error:t}),t}}},47917:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});var i=a(69174),r=a(17325),n=a(37876);let s=e=>{let{date:t,fontSize:a="xl:text-base text-xs",color:s,fontFamily:l="font-proxima-nova"}=e,o="text-grey-900";return s&&(o=s),(0,n.jsx)(i.EY,{fontFamily:l,color:o,fontSize:a,children:(0,r.p)(t)})}},48492:(e,t,a)=>{"use strict";a.d(t,{hx:()=>v,hG:()=>l.hG,Iw:()=>b,rx:()=>w});var i=a(66284),r=a(32008),n=a(43445),s=a(96370),l=a(76075);function o(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,i)}return a}function c(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};
15t%2?o(Object(a),!0).forEach(function(t){(0,i.A)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):o(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}let d={[s.ZU.OneTime]:{title:"One-Time",slug:s.ci.Donate},[s.ZU.Monthly]:{title:"Monthly",slug:s.ci.Donate},[s.ZU.LastTenNights]:{title:"Last 10 Nights",slug:s.ci.Donate},[s.ZU.DhulHijjah]:{title:"Dhul Hijjah",slug:s.ci.DhulHijjah},[s.ZU.RamadanDaily]:{title:"Ramadan Daily",slug:s.ci.RamadanDaily},[s.ZU.Ramadan27]:{title:"Ramadan 27",slug:s.ci.Ramadan27},[s.ZU.GreetRamadanWithSadaqah]:{title:"Greet Ramadan",slug:s.ci.GreetRamadanWithSadaqah},[s.ZU.Daily]:{title:"Daily",slug:s.ci.DonateDaily},[s.ZU.Weekly]:{title:"Weekly",slug:s.ci.DonateWeekly}},h={[s.ci.Donate]:[s.ZU.DhulHijjah,s.ZU.OneTime,s.ZU.LastTenNights,s.ZU.Monthly],[s.ci.DhulHijjah]:[s.ZU.DhulHijjah,s.ZU.OneTime],[s.ci.LastTenNights]:[s.ZU.LastTenNights,s.ZU.OneTime,s.ZU.Monthly],[s.ci.YearEndDonate]:[s.ZU.OneTime,s.ZU.LastTenNights,s.ZU.Monthly]},u=[s.ZU.OneTime],m={[s.ci.Donate]:[s.ZU.OneTime,s.ZU.DhulHijjah,s.ZU.LastTenNights,s.ZU.Monthly],[s.ci.DhulHijjah]:[s.ZU.OneTime,s.ZU.DhulHijjah]},{phases:p}=n.v,g=n.RM,f={start:{hour:20,minute:0},end:{hour:23,minute:0}},x=e=>{let t=new Date(e.getTime());t.setDate(t.getDate()+6);let a=new Date(t.getTime());return a.setDate(a.getDate()+1),{startDate:t,endDate:a}},y={[s.ZU.RamadanDaily]:{openDate:new Date(p.ramadanDaily.start),closeDate:new Date(p.ltnAutomate.start),startDate:g.ramadanStartDate,endDate:g.ramadanEndDate,chargeableHours:f},[s.ZU.LastTenNights]:{openDate:new Date(p.ltnAutomate.start),closeDate:new Date(p.ltnGeneral.end),startDate:g.lastTenNightsStartDate,endDate:g.ramadanEndDate,chargeableHours:f},[s.ZU.Ramadan27]:c(c({openDate:new Date(p.ltnAutomate.start),closeDate:new Date(p.ltnGeneral.end)},x(g.lastTenNightsStartDate)),{},{chargeableHours:f}),[s.ZU.DhulHijjah]:{openDate:new Date("2026-04-01T00:00:00-05:00"),closeDate:new Date("2026-05-25T00:00:00-05:00"),startDate:n.Oh.dhulHijjahStartDate,endDate:n.Oh.dhulHijjahEndDate,chargeableHours:{start:{hour:6,minute:30},end:{hour:15,minute:45}}},[s.ZU.GreetRamadanWithSadaqah]:{openDate:new Date("April 12, 2021 00:00:00"),closeDate:new Date("April 21, 2021 23:59:59"),startDate:new Date("April 12, 2021 00:00:00"),endDate:new Date("April 21, 2021 23:59:59")}},b=(e,t,a)=>{let i=c({},y[e]);if(0===Object.keys(i).length)return null;if(t&&[s.ZU.RamadanDaily,s.ZU.LastTenNights,s.ZU.Ramadan27].includes(e)){let a=n.v.options.find(e=>e.label===t);if(a){if(e===s.ZU.RamadanDaily)i.startDate=a.ramadanStartDate,i.endDate=a.ramadanEndDate;else if(e===s.ZU.LastTenNights)i.startDate=a.lastTenNightsStartDate,i.endDate=a.ramadanEndDate;else if(e===s.ZU.Ramadan27){let{startDate:e,endDate:t}=x(a.lastTenNightsStartDate);i.startDate=e,i.endDate=t}}}if(e===s.ZU.DhulHijjah&&a){let e=n.NG.options.find(e=>e.label===a);e&&(i.startDate=e.dhulHijjahStartDate,i.endDate=e.dhulHijjahEndDate)}return i},v=(e,t,a)=>(e=>{let t=(0,n.D)();if((null==t?void 0:t.campaign)===n.Hu.DhulHijjah&&t.phase===n.V2.DhulHijjah){let t=m[e];if(t)return t}return h[e]??u})(e).map(e=>{let t=d[e];return{type:e,title:t.title,slug:t.slug}}).filter(e=>((e,t,a)=>{let i=new Date,s=b(e.type,t,a);if(!s)return!0;if(!(0,n.bP)())return!1;let{openDate:l,closeDate:o,startDate:c,endDate:d}=s;return l>c?(r.A.error("Campaign openDate is greater than startDate",{donationType:e,config:s}),!1):i>=l&&i<=(o||d)})(e,t,a)),w={us:"[email protected]",ca:"[email protected]",ca_ed:"[email protected]",my:"[email protected]",endowment:"[email protected]",uk:"[email protected]"}},48879:(e,t,a)=>{"use strict";a.d(t,{Bp:()=>r,EU:()=>n,Np:()=>l,gd:()=>c,h5:()=>d,l$:()=>i,lj:()=>s});let i=[{title:"Papers",link:"#papers"},{title:"Video series",link:"#videoseries"},{title:"eBooks",link:"#ebooks"},{title:"Infographics",link:"#infographics"},{title:"Blog",link:"#blog"},{title:"More",link:"#additionalresources"}],r=[{title:"eBooks",link:"/read/books"},{title:"Palestine",link:"/tag/palestine"},{title:"Islam 101",link:"/what-islam-says-about/basics-of-islam"},{title:"Shariah",link:"/what-islam-says-about/shariah"},{title:"Hijab",link:"/tag/hijab"}],n=[{title:"Donate",slug:"/donate?int_source=__INT_SOURCE__&int_campaign=general&int_content=home-bottom-do-more-donate-cta",type:"link"},{title:"Become a member",type:"login"},{title:"Volunteer",slug:"/volunteer",type:"link"},{title:"Work with us",slug:"/careers",type:"link"},{title:"Newsletters",slug:"/newsletters",type:"link"},{title:"Follow us",type:"social_media"}],s=[{type:"youtube",link:"https://www.youtube.com/c/YaqeenInstituteforIslamicResearch"},{type:"tiktok",link:"https://www.tiktok.com/@yaqeeninstitute"},{type:"instagram",link:"https://www.instagram.com/yaqeeninstitute"},{type:"twitter",link:"https://twitter.com/yaqeeninstitute"},{type:"facebook",link:"https://www.facebook.com/yaqeeninstitute"},{type:"spotify",link:"https://open.spotify.com/show/5rjpsAFtpKcJHZo3jISA6Q"}],l={categories:[{title:"Research Papers",link:"/read"},{title:"Videos",link:"/watch"},{title:"Podcasts",link:"/listen"},{title:"Infographics",link:"/infographics"},{title:"Curriculum",link:"/curriculum"}]},o={2024:{slug:"2024",name:"2024",id:1},2023:{slug:"2023",name:"2023",id:2},2022:{slug:"2022",name:"2022",id:3},2021:{slug:"2021",name:"2021",id:4}
15,2020:{slug:"2020",name:"2020",id:5}};o[2024],o[2023],o[2022],o[2021],o[2020],o["2024"],o["2024"],o["2024"],o["2024"],o["2023"],o["2023"],o["2023"],o["2023"],o["2023"],o["2022"],o["2022"],o["2021"],o["2021"],o["2020"],o["2020"];let c=["Weekly highlights"," Upcoming content, behind the scenes","Events and happenings"],d=["Bookmark content","Manage your donations","Track your spiritual growth"]},50147:(e,t,a)=>{"use strict";a.d(t,{p:()=>c});var i=a(66284),r=a(59860),n=a(37876);let s=["children","className","maxWidth","padding"];function l(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,i)}return a}function o(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?l(Object(a),!0).forEach(function(t){(0,i.A)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):l(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}let c=e=>{let{children:t,className:a="",maxWidth:i="container",padding:l="px-4 lg:px-6"}=e,c=(0,r.A)(e,s);return(0,n.jsx)("div",o(o({},c),{},{className:`main-web-content-layout flex-1 w-full min-w-[360px] overflow-x-hidden ${l} ${i} mx-auto ${a}`,children:t}))}},50598:(e,t,a)=>{"use strict";a.d(t,{d:()=>s});var i=a(18012),r=a(69174),n=a(37876);let s=e=>{let{title:t,href:a}=e,s=a?r.qh:"div",l=a?"mt-10 mb-4":"mt-6 mb-5";return(0,n.jsxs)("div",{id:"title-hr",className:`relative flex items-center xl:mt-14 xl:mb-12 ${l}`,children:[(0,n.jsx)("div",{className:`${a?"xl:block hidden":""} flex-grow xl:w-auto w-18 border-t border-carrot-500`}),(0,n.jsxs)(s,{href:a,onClick:()=>a?(0,i.$s)("home_section_title","click",`item_name: ${t}`):null,className:`inline-flex items-center gap-x-4 ${a?"xl:mx-10":"xl:mx-10 mx-6"}`,children:[(0,n.jsx)(r.DZ,{weight:"font-semibold",color:"text-midnight",fontSize:"xl:text-3xl text-2xl",lineHeight:"xl:leading-7 leading-8",letterSpacing:"xl:tracking-tight-1 tracking-[-0.018rem]",className:"text-center",children:t}),a&&(0,n.jsx)("svg",{className:"w-4 h-4 text-carrot-500",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:(0,n.jsx)("path",{d:"M7 4l6 6-6 6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})]}),(0,n.jsx)("div",{className:`${a?"xl:block hidden":""} flex-grow xl:w-auto w-18 border-t border-carrot-500`})]})}},51100:(e,t,a)=>{"use strict";a.d(t,{Sv:()=>n,x7:()=>d});var i=a(14232),r=a(40950);let n="not all and (min-width: 1280px)",s=null,l=/^(?:ftnt(?:_ref)?\d+|dua-[A-Za-z0-9_-]+|section-\d+(?:-h3-\d+)?|title-\d+)$/,o=["wheel","touchstart","keydown"],c=e=>{if(!e||"#"===e)return"";try{return decodeURIComponent(e.slice(1))}catch{return""}},d=e=>{(0,i.useEffect)(()=>{if(!e)return;let t=null,a=e=>{var a;let i=(e=>{if(!l.test(e))return null;let t=Array.from(document.querySelectorAll(`[id="${e}"]`));if(0===t.length)return null;let a=window.matchMedia(n).matches,i=e=>null!==e.closest(".xl\\:hidden");if(!a)return t.find(e=>!i(e))??t[0];let r=t.find(i);return r||(t.find(e=>null===e.closest(".hidden.xl\\:block"))??null)})(e);return!!i&&((e=>{let t=e.parentElement;for(;t&&t!==document.body;){let a=Array.from(t.children).find(t=>t.hasAttribute("aria-expanded")&&t!==e&&!t.contains(e));(null==a?void 0:a.getAttribute("aria-expanded"))==="false"&&a.click(),t=t.parentElement}})(i),null==(a=t)||a(),t=(e=>{let t=performance.now(),a=0,i=!1,r=()=>{i||(i=!0,cancelAnimationFrame(a),o.forEach(e=>window.removeEventListener(e,r)))};o.forEach(e=>window.addEventListener(e,r,{passive:!0}));let n=()=>{i||(e.scrollIntoView({block:"center"}),performance.now()-t<1500?a=requestAnimationFrame(n):r())};return a=requestAnimationFrame(n),r})(i),!0)},i=()=>window.matchMedia(n).matches,d=e=>{var t;let r=null==(t=e.target)?void 0:t.closest('a[href^="#"]');if(!r)return;let n=c(r.getAttribute("href")||"");if(l.test(n))p(),i()&&a(n)&&(e.preventDefault(),window.location.hash!==`#${n}`&&window.history.replaceState(window.history.state,"",`#${n}`))},h=()=>{p(),i()&&a(c(window.location.hash))},u=0,m=!1,p=()=>
15{m||(m=!0,cancelAnimationFrame(u),u=0,o.forEach(e=>window.removeEventListener(e,p)))},g=performance.now(),f=()=>{if(!m){if(!i()||a((()=>{let e=c(window.location.hash);return l.test(e)&&document.getElementById(e)?e:(()=>{let e=new URLSearchParams(window.location.search).get(r.C_);if(!e)return"";let t=Array.from(document.querySelectorAll("[data-dua-id]")).find(t=>t.getAttribute("data-dua-id")===e);return(null==t?void 0:t.id)||""})()||e})())){s=x,p();return}if(performance.now()-g>=3e3)return void p();u=requestAnimationFrame(f)}},x=`${window.location.pathname}${window.location.search}`;return(()=>{let e=c(window.location.hash);return!!new URLSearchParams(window.location.search).get(r.C_)||l.test(e)})()&&s!==x?(o.forEach(e=>window.addEventListener(e,p,{passive:!0})),u=requestAnimationFrame(f)):m=!0,document.addEventListener("click",d),window.addEventListener("hashchange",h),()=>{var e;p(),null==(e=t)||e(),document.removeEventListener("click",d),window.removeEventListener("hashchange",h)}},[e])}},51131:(e,t,a)=>{"use strict";a.d(t,{R_:()=>o,dA:()=>r,db:()=>s,fT:()=>l,kK:()=>n,l5:()=>c,zs:()=>i});let i="faq-question",r="faq-answer",n="key-takeaways-section",s=Object.freeze([`.${i}`,`.${r}`]);Object.freeze([`.${n}`,`.${i}`,`.${r}`,"h1","h2","h3"]);let l=Object.freeze(["h1","h2","h3",".blog-content"]),o=Object.freeze(["h1","h2","h3"]),c=e=>Object.freeze([...e.hasKeyTakeaways?[`.${n}`]:[],...e.hasFaqs?[`.${i}`,`.${r}`]:[],"h1","h2","h3"])},51348:(e,t,a)=>{"use strict";function i(e){let t={};for(let a in e)if(Object.prototype.hasOwnProperty.call(e,a)){let i=e[a];null!=i&&(t[a]=i)}return t}a.d(t,{D:()=>i,x:()=>r});let r=function(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return t.filter(Boolean).join(" ")}},51412:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});let i=[{src:"/static/images/products/listen/listen_1.svg",type:"apple"},{src:"/static/images/products/listen/listen_3.svg",type:"spotify"},{src:"/static/images/products/listen/listen_9.png",type:"amazon"},{src:"/static/images/products/listen/listen_4.svg",type:"google"},{src:"/static/images/products/listen/listen_2.svg",type:"overcast"},{src:"/static/images/products/listen/listen_5.svg",type:"iheart"},{src:"/static/images/products/listen/listen_6.svg",type:"castro"},{src:"/static/images/products/listen/listen_7.svg",type:"castbox"},{src:"/static/images/products/listen/listen_8.svg",type:"pocketcasts"}]},53780:(e,t,a)=>{"use strict";a.d(t,{j_:()=>i.j_,w5:()=>r.w});var i=a(9361),r=a(2527);a(40051),a(42484),a(23749),a(97424),a(5544),a(68086),a(14232),a(89099),a(32984),a(8218),a(67579),a(6143),a(37876),a(66918),a(13943),a(58513),a(51100),a(66071)},53959:()=>{},54231:(e,t,a)=>{"use strict";a.d(t,{Bp:()=>m,M9:()=>d,TE:()=>o,Zd:()=>h,f5:()=>u,fV:()=>c,gX:()=>p});var i=a(66284),r=a(57002),n=a(55850);function s(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,i)}return a}function l(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?s(Object(a),!0).forEach(function(t){(0,i.A)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):s(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}let o=e=>{var t,a;let i=null==(t=e.contentType)||null==(t=t.find(e=>0===e.parent))?void 0:t.slug;if([r.xj.Collection,r.xj.Series].includes(i))return`/${i}/${e.slug}`;if(i===r.xj.Infographic)return`/infographics/${e.slug}`;if([r.xj.Paper,r.xj.Publication,r.xj.Translation].includes(i))return`/read/paper/${e.slug}`;if(i===r.xj.Audio)return`/listen/${e.slug}`;if(["books","conversations","reports","curriculum"].includes(i))return e.slug;if(i===r.xj.Video){let t=null==(a=e.contentType)||null==(a=a.find(e=>0!==e.parent))?void 0:a.slug;return t?`/watch/${t}/${e.slug}`:`/watch/${e.slug}`}return`/yaqeen-institute/${e.slug}`},c=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],a=[],i=[],r=null,n={date:"",excerpt:"",featured:!1,images:null,media:null,status:null,tags:[],type:null};if(e.link.includes("/read/books")){var s,o;let c=t.find(t=>e.link.includes(t.slug)),d={name:"Book",count:1,description:"",id:0,parent:0,slug:"books"};a.push(d),i.push(d),r=l(l({},n),{},{featured_image:null==c||null==(s=c.images)?void 0:s.highlight,authors:null==c?void 0:c.authors,thumbnail:null==c||null==(o=c.images)?void 0:o.book_cover,topic:i,contentType:a,title:null==c?void 0:c.title,slug:e.link,id:"book#"+(null==c?void 0:c.slug)})}else if(e.link.includes("/conversations")){let t={name:"Conversation",count:1,description:"",id:0,parent:0,slug:"conversations"};a.push(t),i.push(t),r=l(l({},n),{},{featured_image:e.imgSrc,authors:null,thumbnail:e.imgSrc,topic:i,contentType:a,title:e.title,slug:e.link,id:"conversation#"+e.link})}return r},d=e=>{var t,a;if(!e)return null;let i=[{name:"Book",count:1,description:"",id:0,parent:0,slug:"books"}
15];return{date:"",excerpt:"",featured:!1,images:null,media:null,status:null,tags:[],type:null,featured_image:e.meta_image_link||(null==(t=e.images)?void 0:t.book_cover),authors:e.authors,thumbnail:null==(a=e.images)?void 0:a.book_cover,topic:i,contentType:i,title:e.title,slug:"/read/books/"+e.slug,id:"book#"+e.slug,description:e.description||""}},h=e=>"string"==typeof(null==e?void 0:e.id)&&e.id.startsWith("book#"),u=e=>{let t=[],a=[],i={name:"Discussion Guide",count:1,description:"",id:0,parent:0,slug:"discussion-guide"};return t.push(i),a.push(i),l(l({},{id:"",date:"",excerpt:"",featured:!1,images:null,media:null,status:null,tags:[],type:null}),{},{featured_image:e.thumbnail,authors:[],thumbnail:e.thumbnail,topic:a,contentType:t,title:e.name,slug:"/curriculum/discussion-guides/"+e.slug,id:"discussion_guide#"+e.slug})},m=e=>{let t=[],a=[],i={name:"Curriculum",count:1,description:"",id:0,parent:0,slug:"curriculum"};return t.push(i),a.push(i),l(l({},{id:"",date:"",excerpt:"",featured:!1,images:null,media:null,status:null,tags:[],type:null}),{},{featured_image:e.featured_image,authors:[],thumbnail:e.thumbnail,topic:a,contentType:t,title:e.name,slug:"/curriculum/"+e.topic.slug+"/"+e.slug,id:"curriculum#"+e.topic.slug+"#"+e.slug})},p=e=>{var t;let a=[],i=[],s={name:"Report",count:1,description:"",id:0,parent:0,slug:r.xj.Reports};a.push(s),i.push(s);let o=e.slug||(0,n.Yv)(e.title),c=(null==(t=e.galleries)||null==(t=t[0])?void 0:t.src)||"";return l(l({},{date:"",excerpt:"",featured:!1,images:null,media:null,status:null,tags:[],type:null}),{},{featured_image:c,authors:[],thumbnail:c,topic:i,contentType:a,title:e.title,slug:"/read/data/reports/"+o,id:"report#"+o})}},54468:(e,t,a)=>{"use strict";a.d(t,{A:()=>c});var i=a(54587),r=a.n(i),n=a(18012),s=a(69174),l=a(86400),o=a(37876);let c=()=>(0,o.jsxs)("div",{className:"flex flex-wrap gap-3",children:[(0,o.jsxs)(s.qh,{href:"https://play.google.com/store/apps/details?id=org.yaqeeninstitute.yaqeen_mobile&hl=en","data-testid":"footer-playstore",onClick:()=>{(0,n.$s)("mobile_apps_download","click","android")},target:"_blank",className:"inline-block",children:[(0,o.jsx)(r(),{loader:l.R2,alt:"Download on Google Play",src:"/static/images/posts/icons/app/Google_Play.svg",height:"40",width:"135",layout:"fixed",priority:!0}),(0,o.jsx)("span",{className:"sr-only",children:"(opens in a new tab)"})]}),(0,o.jsxs)(s.qh,{href:"https://apps.apple.com/us/app/yaqeen-institute/id1341006949",target:"_blank",onClick:()=>{(0,n.$s)("mobile_apps_download","click","ios")},className:"inline-block",children:[(0,o.jsx)(r(),{loader:l.R2,alt:"Download on App Store",src:"/static/images/posts/icons/app/App_Store.svg",height:"40",width:"135",layout:"fixed",priority:!0}),(0,o.jsx)("span",{className:"sr-only",children:"(opens in a new tab)"})]})]})},54898:(e,t,a)=>{"use strict";a.d(t,{E:()=>l,L:()=>o});var i=a(66284),r=a(1816);function n(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,i)}return a}function s(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?n(Object(a),!0).forEach(function(t){(0,i.A)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):n(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}let l=async(e,t,a,i)=>{try{let r=await fetch("/api/v1/donate/interac/request-payment",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s(s({},e),{},{amount:t,uniqueId:a,returnUrl:i}))});if(!r.ok)throw Error(`Failed to make payment request. Status: ${r.status}`);let n=await r.json();return console.debug("Response from API:",n),n}catch(e){console.error("Error making API request:",e.message)}},o=async e=>{let t=0;for(;t<3;)try{let a=await fetch(`/api/v1/donate/interac/query-payment?partner_txn_id=${e}`);if(!a.ok)throw Error(`Failed to fetch. Status: ${a.status}`);let i=(await a.json()).status;if(i!==r.d.PENDING)return i;await new Promise(e=>setTimeout(e,5e3)),t++}catch(e){console.error("Error making API request:",e.message),t++}return r.d.UNKNOWN}},56217:()=>{},56409:(e,t,a)=>{"use strict";a.d(t,{ES:()=>n,X2:()=>r,uA:()=>l,vt:()=>i,ze:()=>s});let i=function(e){return e.Video="video",e.PDF="pdf",e}({}),r=function(e){return e.Idle="idle",e.DownloadUnit="download_unit",e.DownloadSection="download_section",e.DownloadResource="download_resource",e.WatchResource="watch_resource",e.DownloadGuide="download_guide",e}({}),n=function(e){return e.LessonPlan="lesson_plan",e.Worksheet="worksheet",e.FullUnit="full_unit",e.Introduction="introduction",e.DiscussionGuide="discussion_guide",e.DiscussionGuideItem="discussion_guide_item",e}({}),s=function(e){return e.HighSchool="high_school",e.MiddleSchool="middle_school",e}({}),l={[s.HighSchool]:"High School",[s.MiddleSchool]:"Middle School"}},57908:(e,t,a)=>{"use strict";a.r(t),a.d(t,{RelatedData:()=>d});var i=a(54587),r=a.n(i),n=a(18012),s=a(69174),l=a(86400),o=a(12013),c=a(37876);let d=e=>{let{relatedData:t,type:a,isBlog:i}=e;return(0,c.jsxs)("div",{id:"related-items",className:"lg:mb-12 mb-12",children:[(0,c.jsx)("div",{className:"px-6 max-w-7xl mx-auto w-full mb-4",children:(0,c.jsx)("p",{className:"text-lg font-semibold text-[#0f172b] leading-7 tracking-[-0.216px]",children:"Related"})}),(0,c.jsxs)("div",{className:"xl:grid xl:grid-cols-5 xl:gap-4 flex overflow-x-auto xl:space-x-0 space-x-4 snap-x xl:px-6 xl:max-w-7xl xl:mx-auto w-full",children:[(0,c.jsx)("div",{className:"lg:hidden flex-shrink-0"}),t.map((e,t)=>(0,c.jsx)(s.qh,{href:e.link,target:"_blank",className:"flex-shrink-0 lg:grid col-span-1 flex flex-col xl:w-auto md:w-1/3 w-3/4",onClick:()=>(0,n.$s)(`${a}_detail_related`,"click",`item_title: ${e.title}, category: ${a}`),children:(0,c.jsxs)("div",{className:"bg-white rounded border border-slate-200 px-4 py-3 flex flex-col gap-4 grow snap-center",children:[o.A.find(t=>t.type===e.type.toLowerCase())&&(0,c.jsx)("div",{className:"w-10 h-10 flex items-center justify-center",children:(0,c.jsx)(r(),{src:o.A.find(t=>t.type===e.type.toLowerCase()).src,alt:o.A.find(t=>t.type===e.type.toLowerCase()).title,height:40,width:40,loader:l.R2})}),(0,c.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,c.jsx)("p",{className:"text-[10px] font-bold uppercase tracking-[0.5px] text-[#2b7fff]",children:e.type}),(0,c.jsx)("p",{className:"text-sm font-bold text-[#111827] leading-[1.25] tracking-[-0.168px]",children:e.title})]})]},t)},t)),(0,c.jsx)("div",{className:"lg:hidden flex-shrink-0"})]})]})}},58216:(e,t,a)=>{"use strict";a.d(t,{k:()=>g,s:()=>f});var i=a(66284),r=a(54587),n=a.n(r),s=a(17199),l=a(57002),o=a(69174),c=a(12444),d=a(86400),h=a(61300),u=a(37876);function m(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,i)}return a}function p(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};
15t%2?m(Object(a),!0).forEach(function(t){(0,i.A)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):m(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}let g={replace:e=>{if("p"===e.name){let t=(0,s.$5)(e.attribs);return(0,u.jsx)("div",{className:"mt-5",children:(0,u.jsx)(o.EY,p(p({as:e.name,color:"text-grey-800",fontFamily:"font-source-serif-pro",lineHeight:"leading-relaxed"},t),{},{children:(0,s.zd)(e.children,g)}))})}if("span"===e.name)return(0,u.jsx)("span",{children:(0,s.zd)(e.children,g)});if("b"===e.name&&"a"===e.parent.name)return(0,u.jsx)(u.Fragment,{children:(0,s.zd)(e.children,g)});if("a"===e.name){let t=(0,s.$5)(e.attribs);return(0,u.jsx)(o.qh,{href:t.href.replace("https://yaqeeninstitute.org",""),className:"url text-grey-900",children:(0,s.zd)(e.children,g)})}}},f=e=>{if(e.contentType.slug===l.xj.Video){let t=(0,h.ld)(e.media.videoUrl);if(t)return(0,u.jsx)(c.n,{videoId:t,title:e.title})}let t=e.contentType.slug===l.xj.Infographic,a=t?e.media.image.horizontal:e.media.image.vertical;return(0,u.jsx)("div",{className:`${t?"aspect-w-9 aspect-h-16":"aspect-w-16 aspect-h-9"} bg-grey-200`,children:(0,u.jsx)(n(),{loader:d.R2,src:a,layout:"fill",alt:e.title})})}},58418:(e,t,a)=>{"use strict";a.d(t,{I:()=>k,R:()=>j});var i=a(66284),r=a(14232),n=a(89099),s=a(70757),l=a(11511),o=a(18012),c=a(32008),d=a(97839),h=a(94030),u=a(57002),m=a(59859),p=a(65083),g=a(69174),f=a(94128),x=a(54231),y=a(65087),b=a(37876);function v(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,i)}return a}function w(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?v(Object(a),!0).forEach(function(t){(0,i.A)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):v(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}let j=e=>{let{0:t,1:a}=(0,r.useState)(!1),{asPath:i}=(0,n.useRouter)(),{eventTracker:g}=(0,l.OF)(),{firebaseAuth:f}=(0,p.m9)(),{userInfo:b}=f,{trackInteraction:v}=(0,s.w)(),j=async()=>{var t,i;try{g("download","book#"+e.slug),v({post:w(w({},(0,x.M9)(e)),{},{type:u.xj.Books}),type:m.X8.Download}),(0,o.$s)("yq-books","download",`logged-in, url: ${e.download_url}`),(0,h.h6)("Download"),window.open(e.download_url,"_blank")||a(!0),await Promise.all([(0,y.Oh)(e.title,e.download_url),(0,y.Pt)(null==b||null==(t=b.user)?void 0:t.email,e.slug)])}catch(t){console.error("Error while sending email",t),c.A.error("Error while sending book download email",{errors:t,book:e.title,userKey:(0,d.c6)(null==b||null==(i=b.user)?void 0:i.email)})}};return(0,r.useEffect)(()=>{a(!1)},[i]),{handleDownload:j,showManualDownload:t}},k=e=>{let{book:t}=e,{handleDownload:a,showManualDownload:i}=j(t);return(0,b.jsxs)("div",{children:[(0,b.jsx)(p.iH,{components:{verifiedAuth:(0,b.jsx)(f.AV,{url:t.download_url,onDownload:a,title:t.title}),main:(0,b.jsx)(g.$n,{onPress:()=>a(),className:"inline-flex justify-center items-center w-full xl:w-auto bg-carrot-500 rounded px-6 py-2",children:(0,b.jsx)(g.EY,{as:"p",color:"text-white",weight:"font-bold",children:"Download"})})},btnSize:"w-full xl:w-[122px]"}),i&&(0,b.jsx)("div",{className:"py-4",children:(0,b.jsx)(g.EY,{weight:"font-semibold",children:(0,b.jsxs)("em",{children:["Your download should begin automatically. Didn't work?"," ",(0,b.jsx)(g.qh,{href:t.download_url,className:"url",target:"_blank",children:"Try again."})," "]})})})]})}},58508:(e,t,a)=>{"use strict";a.d(t,{A:()=>n});var i=a(14232),r=a(74831);let n=()=>{let e=(0,i.useContext)(r.A);if(!e)throw Error("useUnitAccessContext must be used within a UnitAccessProvider");return e}},59427:(e,t,a)=>{"use strict";a.d(t,{Dt:()=>eh,fj:()=>u,vx:()=>es,u0:()=>en,GO:()=>ej,ej:()=>N,Ot:()=>eS,hD:()=>eu,yN:()=>Z,Ve:()=>Q,Ad:()=>_,LZ:()=>j,c7:()=>V,Qn:()=>S,yf:()=>D,Mz:()=>eP,lv:()=>C,JE:()=>q,N9:()=>T,ZB:()=>eb,n$:()=>ey,T0:()=>eA,Y5:()=>M,Ct:()=>em,if:()=>W,jY:()=>ed,ib:()=>et,lo:()=>g,fk:()=>U,vi:()=>y,Fg:()=>G,Kr:()=>h,a4:()=>eN,a7:()=>eg,Jz:()=>z,OE:()=>ek,DT:()=>e_});var i=a(43445),r=a(96370),n=a(22242),s=a(52495),l=a.n(s),o=a(85766),c=a(35744);let d=(e,t)=>{let a;return a=e>1e6?1e6:e>1e3?1e3:1,t?Math.floor(e/a)*a:Math.ceil(e/a)*a},h=(e,t)=>("us"!==e&&"endowment"!==e||t.title===r.Sj.USD)&&("ca"!==e||t.title===r.Sj.CAD)&&("ca_ed"!==e||t.title===r.Sj.CAD)&&("uk"!==e||n.Rb.includes(t.title))&&"my"!==e?n.Hj:n.Hj+1,u=(e,t)=>
15e?l()((e*t/100+n.wC)/(1-t/100)).value:null,m={[r.ZU.OneTime]:[50,100,500,1e3],[r.ZU.Monthly]:[10,25,50,100],[r.ZU.LastTenNights]:[100,250,500,1e3],[r.ZU.RamadanDaily]:[100,250,500,1e3],[r.ZU.DhulHijjah]:[100,250,500,1e3],[r.ZU.Ramadan27]:[25,50,100,250]},p={[r.ZU.OneTime]:1,[r.ZU.Monthly]:1,[r.ZU.DhulHijjah]:1,[r.ZU.LastTenNights]:1,[r.ZU.Ramadan27]:0},g=(e,t)=>{var a;let i=p[t];return void 0===i?null:(null==(a=y(e,t)[i])?void 0:a[0])??null},f={[r.Sj.USD]:{[r.ZU.RamadanDaily]:[100,250,500,1e3],[r.ZU.LastTenNights]:[100,250,500,1e3],[r.ZU.Ramadan27]:[25,50,100,250]},[r.Sj.CAD]:{[r.ZU.RamadanDaily]:[100,250,500,1e3],[r.ZU.LastTenNights]:[100,250,500,1e3],[r.ZU.Ramadan27]:[25,50,100,250]},[r.Sj.MYR]:{[r.ZU.RamadanDaily]:[250,500,1e3,2500],[r.ZU.LastTenNights]:[250,500,1e3,2500],[r.ZU.Ramadan27]:[50,100,250,500]}},x=[r.Sj.USD,r.Sj.CAD,r.Sj.MYR,r.Sj.GBP,r.Sj.EUR,r.Sj.AUD],y=(e,t)=>{var a;let i=null==(a=f[e.title])?void 0:a[t];if(i)return b(i,e);let r=m[t]||[50,100,500,1e3];return x.includes(e.title)?b(r,e):b(w(e,r),e)},b=(e,t)=>e.map(e=>[e,v(e,t)]),v=(e,t)=>
15{let a;try{a=new Intl.NumberFormat("en-US",{style:"currency",currency:t.title,minimumFractionDigits:2,currencyDisplay:"narrowSymbol"})}catch(e){if(e instanceof RangeError)a=new Intl.NumberFormat("en-US",{style:"currency",currency:t.title,minimumFractionDigits:2,currencyDisplay:"symbol"});else throw e}let i=a.format(e);return i.slice(0,i.indexOf("."))},w=(e,t)=>{if((0,o.KF)((0,c.gP)(t),e.code)<=e.maxAmount)return t.map(t=>(0,o.KF)(t,e.code)).map(e=>d(e));{let t=e.maxAmount,a=e.minAmount;return[t,t-(t-a)/3,a+(t-a)/3,a].map((e,t)=>d(e,3!==t))}},j=e=>{var t;return(null==(t=n.m7.find(t=>t.countryCode===e.toLocaleUpperCase()))?void 0:t.currencyCode)||r.Sj.USD},k=e=>e?+e.toString().match(/^-?\d+(?:\.\d{0,2})?/)[0]:null,N=(e,t)=>{let a=l()(e).value;return{formattedAmount:a,formattedTxFee:t?l()(t).value:null,totalAmount:t?l()(e).add(t).value:l()(e).value}},_=e=>l()(e).intValue,S=e=>{var t,a,i;let r=null==(t=n.$i.find(e=>"USD"===e.title))?void 0:t.symbol;return(null==(a=n.$i.find(t=>t.title===e.title))?void 0:a.symbol)===r?null==(i=e.title)?void 0:i.toUpperCase():""},A={[r.ZU.OneTime]:"onetime",[r.ZU.Monthly]:"monthly",[r.ZU.GreetRamadanWithSadaqah]:"grws",[r.ZU.LastTenNights]:"ltn",[r.ZU.Ramadan27]:"27n",[r.ZU.DhulHijjah]:"dhulhijjah",[r.ZU.RamadanDaily]:"ramadandaily",[r.ZU.Daily]:"daily",[r.ZU.Weekly]:"weekly"},C=e=>A[e]??"unknown",P={[r.ZU.OneTime]:"one_time",[r.ZU.Monthly]:"monthly",[r.ZU.GreetRamadanWithSadaqah]:"greet_ramadan",[r.ZU.LastTenNights]:"last_ten_nights",[r.ZU.Ramadan27]:"ramadan_27",[r.ZU.DhulHijjah]:"dhul_hijjah",[r.ZU.RamadanDaily]:"ramadan_daily",[r.ZU.Daily]:"daily",[r.ZU.Weekly]:"weekly"},T=e=>P[e]??"unknown";var O=a(65072),E=a(48492),I=a(57279);let D=(e,t)=>{let a=(0,E.Iw)(e,t);return null!=a&&a.startDate?(0,I.qL)(a.startDate):null},q=e=>{let t=(0,E.Iw)(r.ZU.GreetRamadanWithSadaqah,e);return(0,I.vk)(t.startDate,t.endDate)},M=e=>(0,O.format)(e,"MMMM D"),$=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};window.fbq&&window.fbq("track",e,t)};var H=a(18012),R=a(94030);let z=e=>{let t,{paymentMode:a,designation:i,donationType:r,currency:n,transactionId:s,revenue:l}=e,o=(t=C(r),`${a} - ${t} - ${i}`),c=s?String(s):`donation_${Date.now()}_${Math.random().toString(36).substring(2,11)}`;(0,H.r2)({transactionId:c,description:o,currency:n,donationType:T(r),revenue:l}),(0,H.O2)(c,l||0,n),(0,H.$s)("donate","succeed"),$("Donate"),(0,R.h6)("CompletePayment",{content_id:o,description:c,currency:n,value:l})};var F=a(66284),Y=a(98591);function L(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,i)}return a}function B(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?L(Object(a),!0).forEach(function(t){(0,F.A)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):L(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}let U=e=>{let{designation:t,donationType:a,amount:i,receiveMktEmails:n,memoryOrHonor:s,recipientName:l,timezone:o,coverTxFee:c,txFee:d,sadaqahChargeTime:h,ltnChargeTime:u,paymentSchedule:m,splitAmount:p,ramadanStartDate:g}=e;return B(B(B(B(B(B(B(B(B(B({designation:t,donation_type:a,amount_without_fee:i},n&&{receive_mkt_emails:"true"}),s&&{dedicated_in:s}),l&&{recipient_name:l}),c&&{cover_tx_fee:"true"}),c&&{tx_fee:d}),eg(a)&&B({start_date:(0,O.format)(a===r.ZU.GreetRamadanWithSadaqah?h:u,"MMMM D, YYYY")},o&&{user_selected_timezone:o.title})),[r.ZU.LastTenNights,r.ZU.DhulHijjah,r.ZU.Ramadan27].includes(a)&&{ltn_schedule:JSON.stringify(eu(m)),split_amount:p}),[r.ZU.RamadanDaily].includes(a)&&{amount_per_day:null==m?void 0:m[0].totalAmount,charge_start_date:(0,O.format)(null==m?void 0:m[0].date,"MMMM D, YYYY"),charge_end_date:(0,O.format)(null==m?void 0:m[m.length-1].date,"MMMM D, YYYY"),campaign_start_date:(0,O.format)((0,E.Iw)(r.ZU.RamadanDaily,g).startDate,"MMMM D, YYYY")}),(0,Y.Zl)()),(0,Y.VV)())},W=e=>{let{amount:t,designation:a,receiveMktEmails:i,memoryOrHonor:r,re
15cipientName:n,txFee:s,timezone:l,donationType:o,coverTxFee:c}=e,d=(0,Y.Zl)(),h=(0,Y.VV)();return B(B({amount:t?t.toString():null,tx_fee:s?s.toString():null,designation:a,receive_mkt_emails:i},r?{dedicated_in:r}:{}),{},{recipient_name:n||null,user_selected_timezone:(null==l?void 0:l.name)||null,utm_source:d.utm_source||null,utm_medium:d.utm_medium||null,utm_campaign:d.utm_campaign||null,utm_content:d.utm_content||null,utm_term:d.utm_term||null,int_content:h.int_content||null,int_campaign:h.int_campaign||null,int_source:h.int_source||null,donation_type:o||null,cover_tx_fee:c||null})},G=e=>{let t=Z();e.id=t;let a={amount:"a",tx_fee:"tf",designation:"d",receive_mkt_emails:"m",dedicated_in:"di",id:"id",recipient_name:"r"},i={designation:{[r.u0.Endowment]:"E",[r.u0.General]:"G"},dedicated_in:{[r.jp.Memory]:"m",[r.jp.Honor]:"h"}};return[t,Object.keys(a).map(t=>{if(e&&e[t])return i[t]?`${a[t]}:${i[t][e[t]]}`:`${a[t]}:${e[t]}`}).filter(e=>e).join(" ").slice(0,127)]},Z=()=>{let e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",t="";for(;t.length<16;){let a=e.charAt(Math.floor(Math.random()*e.length));t.includes(a)||(t+=a)}return t},Q=(e,t)=>n.cr.includes(t)?e:(0,o.xj)(e,t),V=e=>n.cr.includes(e)?e:r.Sj.USD;var K=a(32008);a(99742);let J=(e,t,a)=>delete Object.assign(e,{[a]:e[t]})[t];function X(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,i)}return a}function ee(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?X(Object(a),!0).forEach(function(t){(0,F.A)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):X(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}let et=(e,t,a,i,n,s,l,o)=>{let c,d=(0,E.Iw)(s,l,o),h=new Date,u=(d.endDate.getTime()-d.startDate.getTime())/864e5;u%1!=0&&(u=Math.ceil(u)),s===r.ZU.LastTenNights?c=21:s===r.ZU.Ramadan27&&(c=27),[r.ZU.DhulHijjah,r.ZU.RamadanDaily].includes(s)&&(c=1);let m=[...Array(u)].map((e,t)=>{let i=(0,I.qL)(d.startDate);return{date:new Date(new Date(i).setDate(i.getDate()+t)),nightOfRamadan:c+t,amount:null,coverTxFee:null,totalAmount:null,currencySymbol:a.symbol}}).filter(e=>e.date.getTime()>=h.getTime()||(0,I.VX)(e.date,h)).filter(e=>(0,I.VX)(e.date,h)?+(60*d.chargeableHours.end.hour+d.chargeableHours.end.minute-(60*h.getHours()+h.getMinutes())>5&&h>d.startDate):1),p=m.length;return 0===p?{paymentSchedule:[],paymentAmounts:t===r.vq.MoreOnOdd?{moreOnOdd:{amountFirstDay:0,amountSecondDay:0}}:t===r.vq.MoreOn27th?{moreOn27th:{amountNormal:0,amount27th:0}}:{equally:{amount:0}}}:t===r.vq.MoreOnOdd?ea(m,e,i,n):t===r.vq.MoreOn27th&&m.find(e=>27===e.nightOfRamadan)?ei(m,e,p,i,n):er(m,e,p,i,n)},ea=(e,t,a,i)=>{let r=e.reduce((e,t)=>t.nightOfRamadan%2==0?e+1:e,0),s=e.reduce((e,t)=>t.nightOfRamadan%2!=0?e+1:e,0),o=k(t/(r+(1+n.Qc/100)*s)),c=k((1+n.Qc/100)*o),[d,h]=[u(o,i),u(c,i)],m=a?l()(o).add(d).value:l()(o).value,p=a?l()(c).add(h).value:l()(c).value,g=e[0].nightOfRamadan%2==0?m:p,f=e[0].nightOfRamadan%2==0?p:m;return{paymentSchedule:e.map(e=>ee(ee({},e),{},{coverTxFee:a},e.nightOfRamadan%2!=0?{amount:c,txFee:h,totalAmount:p}:{amount:o,txFee:d,totalAmount:m})),paymentAmounts:{moreOnOdd:{amountFirstDay:g,amountSecondDay:f}}}},ei=(e,t,a,i,r)=>{let s=k(t/(a+n.Qc/100)),o=k((1+n.Qc/100)*s),[c,d]=[u(s,r),u(o,r)],h=i?l()(s).add(c).value:l()(s).value,m=i?l()(o).add(d).value:l()(o).value;return{paymentSchedule:e.map(t=>{var a;return ee(ee({},t),{},{coverTxFee:i},(0,I.VX)(t.date,null==(a=e.find(e=>27===e.nightOfRamadan))?void 0:a.date)?{amount:o,txFee:d,totalAmount:m}:{amount:s,txFee:c,totalAmount:h})}),paymentAmounts:{moreOn27th:{amountNormal:h,amount27th:m}}}},er=(e,t,a,i,r)=>{let n=k(t/a),s=u(n,r),o=i?l()(n).add(s).value:l()(n).value;return{paymentSchedule:e.map(e=>ee(ee({},e),{},{amount:n,coverTxFee:i,txFee:s,totalAmount:o})),paymentAmounts:{equally:{amount:o}}}},en=e=>[{items:[{price:e,quantity:1}],iterations:1}],es=(e,t,a)=>e===r.vq.Equally?el(t[0],a):e===r.vq.MoreOn27th?eo(t[0],t[1],a):e===r.vq.MoreOnOdd?ec(t[0],t[1],a):void 0,el=(e,t)=>
15[{items:[{price:e,quantity:1}],iterations:t}],eo=(e,t,a)=>[...a>4?[{items:[{price:e,quantity:1}],iterations:a-4}]:[],...a>3?[{items:[{price:t,quantity:1}],iterations:1}]:[],{items:[{price:e,quantity:1}],iterations:Math.min(a,3)}],ec=(e,t,a)=>[...Array(a)].map((a,i)=>({items:[{price:i%2==0?e:t,quantity:1}],iterations:1})),ed=(e,t)=>{var a;return e.length*(null==(a=n.$i.find(e=>e.title===t.title))?void 0:a.minAmount)},eh=e=>!e.every(e=>isNaN(e.amount)||!e.amount),eu=e=>({data:e.map(e=>{let t=ee({},e);return delete t.coverTxFee,delete t.amount,delete t.txFee,delete t.currencySymbol,t.date=M(t.date),J(t,"nightOfRamadan","n"),J(t,"totalAmount","a"),J(t,"date","d"),t}),currency:e[0].currencySymbol}),em=(e,t,a,i)=>{if(!((null==t?void 0:t.length)>0&&eg(e)))return null;{var r,n;let s=(0,E.Iw)(e,a,i),l=t[0].date,o=new Date,c=o.getTime()>l.getTime()?o:l,d=(null==(r=s.chargeableHours)?void 0:r.start)||{hour:0,minute:0},h=(null==(n=s.chargeableHours)?void 0:n.end)||{hour:23,minute:59},u=c.getHours()>d.hour||c.getHours()===d.hour&&c.getMinutes()>=d.minute?c:new Date(new Date(c).setHours(d.hour,d.minute)),m=new Date(new Date(c).setHours(h.hour,h.minute));return(0,I.vk)(u,m)}},ep=[r.ZU.DhulHijjah,r.ZU.LastTenNights,r.ZU.Ramadan27,r.ZU.RamadanDaily,r.ZU.GreetRamadanWithSadaqah],eg=e=>ep.includes(e);var ef=a(37876);let ex=(e,t)=>{let a=(0,i.Mn)();return t===r.ci.DhulHijjah?(null==a?void 0:a.campaign)===i.Hu.DhulHijjah?a:i.nh:a&&a.donationType===e||a&&a.campaign===i.Hu.DhulHijjah?a:(0,i.hx)(e)},ey=(e,t)=>{let a=ex(e,t);if(a)return(0,ef.jsx)(ef.Fragment,{children:a.content.heroTitle});switch(e){case r.ZU.Monthly:return(0,ef.jsx)(ef.Fragment,{children:"The Most Beloved Deed"});case r.ZU.GreetRamadanWithSadaqah:return(0,ef.jsxs)(ef.Fragment,{children:["Greet Ramadan with ",(0,ef.jsx)("em",{children:"sadaqah."})]});case r.ZU.LastTenNights:return(0,ef.jsx)(ef.Fragment,{children:"The final ten nights are upon us. Raise a voice for Islam that points the way to faith."});case r.ZU.RamadanDaily:return(0,ef.jsx)(ef.Fragment,{children:"It takes 30 seconds to give for 30 days."});case r.ZU.Ramadan27:return(0,ef.jsxs)("span",{className:"text-3xl xl:text-5xl",children:["Schedule your donation",(0,ef.jsx)("br",{}),"for the 27",(0,ef.jsx)("sup",{children:"th"})," Night"]});default:return(0,ef.jsx)(ef.Fragment,{children:"Donate"})}},eb=(e,t,a)=>{let i=ex(e,a);if(i)return(0,ef.jsx)(ef.Fragment,{children:i.content.heroDescription});switch(e){case r.ZU.Monthly:return(0,ef.jsxs)(ef.Fragment,{children:["Allahâs Messenger ï·º said, âKnow that the most beloved deed to Allah is done regularly, even if it is small.â",(0,ef.jsx)("br",{}),"[ ",(0,ef.jsx)("em",{children:"Sahih al-Bukhari"})," #6464 ]"]});case r.ZU.GreetRamadanWithSadaqah:return(0,ef.jsxs)(ef.Fragment,{children:["The Prophet was asked, âWhich charity is best?â",(0,ef.jsx)("br",{}),"He said, âCharity in Ramadan.â",(0,ef.jsx)("br",{}),(0,ef.jsx)("br",{}),(0,ef.jsx)("strong",{children:"Schedule a donation for the first day of Ramadan."})]});case r.ZU.LastTenNights:return(0,ef.jsxs)(ef.Fragment,{children:["âWith the start of the last 10 days of Ramadan, the Prophet ï·º used to tighten his waist belt, pray all the night, and keep his family awake for the prayers.â",(0,ef.jsx)("br",{}),"[ ",(0,ef.jsx)("em",{children:"Sahih al-Bukhari"})," #2024 ]",(0,ef.jsx)("br",{}),(0,ef.jsx)("br",{}),"The end of Ramadan is a time to redouble your efforts. Pray more, fast moreâ",(0,ef.jsx)("strong",{children:"give more."})]});case r.ZU.RamadanDaily:return t?(0,ef.jsxs)(ef.Fragment,{children:["âAnd spend [in the way of Allah] from what We have provided you before death approaches one of you and he says, ",(0,ef.jsx)("br",{}),"âMy Lord, if only You would delay me for a brief term"," ",(0,ef.jsx)("strong",{children:"so I would give charity"})," and be among the righteous.ââ",(0,ef.jsx)("br",{})," [ Qurâan, 63:10 ]",(0,ef.jsx)("br",{}),(0,ef.jsx)("br",{}),(0,ef.jsx)("strong",{children:"Automate your donations now to receive 30 days of reward."})]}):(0,ef.jsxs)(ef.Fragment,{children:["âAnd spend [in the way of Allah] from what We have provided you before death approaches one of you and he says, ",(0,ef.jsx)("br",{}),"âMy Lord, if only You would delay me for a brief term"," ",(0,ef.jsx)("strong",{children:"so I would give charity"}
15)," and be among the righteous.ââ",(0,ef.jsx)("br",{})," [ Qurâan, 63:10 ]",(0,ef.jsx)("br",{}),(0,ef.jsx)("br",{}),"Itâs easy to tell yourself that youâll remember to donate every day during the blessed month. But time is tricky; donât delay a moment in doing good.\xa0",(0,ef.jsx)("br",{}),(0,ef.jsx)("br",{}),(0,ef.jsx)("strong",{children:"Automate your donations now to receive 30 days of reward."})]});case r.ZU.Ramadan27:return(0,ef.jsxs)(ef.Fragment,{children:["âIndeed, We sent it [the Quran] down during the Night of Decree. And what can make you know what is the Night of Decree? The Night of Decree is better than a thousand months.â",(0,ef.jsx)("br",{}),"[ ",(0,ef.jsx)("em",{children:"Surah Al-Qadr"}),", 97:1-3 ]"]});default:return(0,ef.jsxs)(ef.Fragment,{children:["Allah said: âSpend in charity, O son of Adam, and I will spend on you.â",(0,ef.jsx)("br",{}),(0,ef.jsx)("br",{}),"[ ",(0,ef.jsx)("em",{children:"Sahih al-Bukhari"})," #5352 ]"]})}};var ev=a(55850);let ew=async(e,t)=>await fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),ej=async(e,t)=>{let a=null,i=0;do i>0&&K.A.debug(`Retry #${i} for ${e}`),a=await ew(e,t);while([504,525].includes(a.status)&&i++<3);return a.json()},ek=(e,t)=>{var a,i;let r="";return{name:r="MY"===e.country?(0,ev.ZH)(e.first_name):e.first_name&&e.last_name?`${(0,ev.ZH)(e.first_name)} ${(0,ev.ZH)(e.last_name)}`:(null==t||null==(i=t.value)||null==(i=i.billingDetails)?void 0:i.name)||"",email:e.email||(null==t||null==(a=t.value)||null==(a=a.billingDetails)?void 0:a.email)||"",phone:e.phone?`${e.phone_code} ${e.phone}`:null,address:{line1:e.address_line1,line2:e.address_line2,city:e.city,country:e.country,postal_code:e.zip||"",state:e.state}}},eN=e=>{var t,a;return e?null!=(t=e.card)&&null!=(t=t.wallet)&&t.apple_pay?"apple-pay":null!=(a=e.card)&&null!=(a=a.wallet)&&a.google_pay?"gpay":e.type:null},e_=e=>!eS(e).endsWith(".con")||"Invalid email: should not end with .con",eS=e=>e.trim().toLowerCase(),eA=e=>{let t=(e=>{switch(e){case r.ci.GreetRamadanWithSadaqah:return r.ZU.GreetRamadanWithSadaqah;case r.ci.LastTenNights:return r.ZU.LastTenNights;case r.ci.Ramadan27:return r.ZU.Ramadan27;case r.ci.Sustainers:return r.ZU.Monthly;case r.ci.DhulHijjah:return r.ZU.DhulHijjah;case r.ci.RamadanDaily:return r.ZU.RamadanDaily;case r.ci.DonateDaily:return r.ZU.Daily;case r.ci.DonateWeekly:return r.ZU.Weekly;default:return r.ZU.OneTime}})(e);if(e===r.ci.Donate||e===r.ci.DhulHijjah){let e=(0,i.Mn)();if((null==e?void 0:e.campaign)===i.Hu.DhulHijjah)return e.donationType}return t},eC={"one-time":r.ZU.OneTime,monthly:r.ZU.Monthly,"last-ten-nights":r.ZU.LastTenNights,"ramadan-27":r.ZU.Ramadan27,"dhul-hijjah":r.ZU.DhulHijjah,"ramadan-daily":r.ZU.RamadanDaily,"greet-ramadan":r.ZU.GreetRamadanWithSadaqah,daily:r.ZU.Daily,weekly:r.ZU.Weekly},eP=e=>e?eC[e.trim().toLowerCase().replace(/\s+/g,"-")]??null:null},59733:(e,t,a)=>{"use strict";a.d(t,{g:()=>n});var i=a(69174),r=a(37876);let n=e=>{let{items:t,align:a,fontSize:n="text-xs xl:text-sm",variant:s}=e;return(0,r.jsx)(i.Qp,{variant:s,fontSize:n,align:a,children:t.map(e=>(0,r.jsx)(i.J5,{href:e.href,children:e.title},e.href))})}},61381:(e,t,a)=>{"use strict";a.d(t,{ZV:()=>c,Zh:()=>h,gv:()=>u,zn:()=>d});var i=a(14232),r=a(74382),n=a.n(r),s=a(17199),l=a(25636),o=a(37876);let c=(e,t)=>{var a;return!!e&&!!e.props&&!!e.props.children&&(!!("a"===e.type&&null!=(a=e.props.href)&&a.startsWith(t))||(Array.isArray(e.props.children)?e.props.children.some(e=>c(e,t)):!!i.isValidElement(e.props.children)&&c(e.props.children,t)))},d=e=>{let{Popover:t,styleContent:a}=e;return e=>{let{id:i,title:r,footnotes:c}=e,d=!!c&&c.find(e=>e.id===i);if(d){let{content:e}=d,i=a(e),c=n().load(i);return c("div > ol").addClass("list-decimal font-source-serif-pro text-grey-900 leading-relaxed tracking-normal font-normal break-words md:ml-10 ml-8 my-5"),(0,l.nK)(c),(0,o.jsx)(t,{title:r,children:(0,s.Ay)(c("html body").html()||"")})}return(0,o.jsx)(o.Fragment,{})}},h=e=>{let t=(a,r)=>{var n;if(!c(a,"#ftnt"))return a;let{type:s,props:d}=a;if("a"===s&&null!=(n=d.href)&&n.startsWith("#ftnt")){let t=d.children,a=(0,l._Z)(d.href,d.id,t);return(0,o.jsx)(e,{id:a,title:t,footnotes:r})}if(0===i.Children.count(d.children))return a;let h=i.Children.map(d.children,e=>i.isValidElement(e)?t(e,r):e);return i.cloneElement(a,d,h)};return t},u=e=>{var t;let a=e.children;if("number"==typeof a||"string"==typeof a)return String(a).replace(/[\[\]]/g,"");if(Array.isArray(a)&&a.length>0)return String(a[0]).replace(/[\[\]]/g,"");let i=null==(t=e.href)?void 0:t.match(/#ftnt[_ref]?(\d+)/);return i?i[1]:String(a||"")}},61978:(e,t,a)=>{"use strict";a.d(t,{A:()=>L});var i=a(66284),r=a(14232),n=a(18125),s=a(70757),l=a(32008),o=a(38369),c=a(57002),d=a(59859),h=a(69174),u=a(39378),m=a(67579),p=a(32984),g=a(5602),f=a(8218),x=a(61300),y=a(37876);let b=e=>{let[t]=(0,f.As)(p.jO.auth()),{post:a,playlist:i,onReady:n,onPlay:s,onEnded:l,onPlayerStateChange:o,playerVars:c,memberOnly:d}=e,{0:h,1:u}=(0,r.useState)(""),{0:m,1:b}=(0,r.useState)(null);return(0,r.useEffect)(()=>{var e;a?u(a.videoUrl||(null==(e=i.find(e=>e.id===a.id))?void 0:e.videoUrl)):u(i[0].videoUrl)},[a,i]),(0,r.useEffect)(()=>{d&&(!t&&m&&m.stopVideo(),t&&m&&m.playVideo())},[t,d]),h&&(0,y.jsx)("div",{className:"iphonese:-mx-4 -mx-6 xl:mx-0",children:(0,y.jsx)(g.A,{videoId:(0,x.ld)(h),containerClassName:"aspect-w-16 aspect-h-9",onReady:e=>{b(e.target),n&&n(e)},onEnd:l,onPlay:s,onStateChange:o,opts:{playerVars:c}})})||null};var v=a(37735),w=a(54587),j=a.n(w),k=a(24519),N=a.n(k),_=a(18012),S=a(86400),A=a(28734);let C=e=>{let[t]=(0,f.As)(p.jO.auth()),{items:a,post:i,trackData:r,eventCategory:s,memberOnly:l}=e,o=(0,A.HH)();return(0,y.jsx)(y.Fragment,{children:(0,y.jsx)("div",{className:"up-next-list w-full",children:a.map((e,a)=>{var c;return(0,y.jsxs)("div",{className:"up-next-video flex my-4 mx-2",children:[(0,y.jsx)("div",{className:"w-1/12 flex justify-end items-center font-bold text-sm text-grey-500",children:i&&e.id===i.id?(0,y.jsx)(n.g,{icon:["far","play-circle"],size:"lg",className:"mr-2 text-carrot-500"}):(0,y.jsx)("div",{className:"mr-2 text-right",children:(0,y.jsx)(h.EY,{color:"text-grey-700",fontSize:"text-xs",weight:"font-semibold",children:a+1})})}),(0,y.jsxs)(h.qh,{href:e.articleLink,className:"w-11/12 flex",onClick:()=>{r&&(0,_.$s)(s,"click",`item_title: ${N().decode(e.title)}, device: ${o}`)},prefetch:!1,children:[(0,y.jsx)("div",{className:"w-5/12",children:(0,y.jsxs)("div",{className:"relative",children:[(0,y.jsx)("div",{className:"aspect-w-16 aspect-h-9",children:(0,y.jsx)(j(),{loader:S.R2,src:`https://img.youtube.com/vi/${(0,x.ld)(e.videoUrl)}/mqdefault.jpg`,alt:"up-next",layout:"fill"})}),(0,y.jsxs)("div",{className:"absolute flex justify-center items-center py-1 px-2 bottom-0 right-0 bg-y-black-1",children:[(0,y.jsx)(n.g,{icon:"play",className:"text-white mx-1 h-2 w-2",size:"xs"}),(0,y.jsx)(h.EY,{color:"text-white",fontSize:"text-xs",children:(0,y.jsx)("span",{className:"text-white text-xs"})})]}),(e=>{if(l&&e&&!t)return(0,y.jsxs)("div",{className:"absolute inset-0 flex justify-center items-center z-10 bg-black/75",children:[(0,y.jsx)(n.g,{icon:["fas","lock"],className:"text-white w-4 h-1/4",size:"lg"}),(0,y.jsx)(h.EY,{color:"text-white",fontSize:"text-xs",children:(0,y.jsx)("span",{className:"text-white text-xs"})})]})})(a)]})}),(0,y.jsxs)("div",{className:"w-5/12 flex flex-col ml-3",children:[(0,y.jsx)(h.EY,{color:"text-jordy-700",weight:"font-bold",fontSize:"text-xss",lineHeight:"leading-tight-1",letterSpacing:"tracking-wide",className:"flex uppercase mb-1.5",children:N().decode((null==(c=e.subtopic)?void 0:c.name)||"")}),(0,y.jsx)(h.DZ,{color:"text-grey-40",weight:"font-bold",fontSize:"text-xs",lineHeight:"leading-4",children:e.title&&N().decode(e.title)})]})]})]},a)})})})},P=e=>{let{playlistTitle:t,playlistIdx:a,playlistLength:i,sortOrder:r,toggleSortOrder:s,getSortIcon:l,isMobile:o=!1}=e;return(0,y.jsxs)("div",{className:`flex justify-between items-center ${o?"w-full":"pb-3 border-b border-grey-900 space-x-2"}`,children:[(0,y.jsxs)("div",{className:o?"flex-auto":"",children:[(0,y.jsx)(h.DZ,{color:o?"text-grey-40":"text-grey-100",fontSize:o?"text-base":"text-lg",weight:"font-bold",letterSpacing:o?"tracking-tight-1":void 0,children:t?N().decode(t):"Latest"}),o&&(0,y.jsx)("div",{className:"mt-1",children:(0,y.jsxs)(h.EY,{color:"text-grey-500",fontSize:"text-xs",className:"whitespace-nowrap",children:[a+1," / ",i]})})]}),(0,y.jsxs)("div",{className:`flex items-center ${o?"ml-2":""}
15`,children:[!o&&(0,y.jsxs)(h.EY,{color:"text-grey-500",fontSize:"text-xs",className:"whitespace-nowrap mr-2",children:[a+1," / ",i]}),(0,y.jsx)(h.$n,{onPress:()=>{let e=r===c.xB.Asc?c.xB.Desc:c.xB.Asc,n=r===c.xB.Asc?"ascending":"descending",l=e===c.xB.Asc?"ascending":"descending";(0,_.$s)("playlist_interaction","sort_toggle",`${t||"Latest"} - ${n} to ${l}`,!1,{playlist_title:t?N().decode(t):"Latest",current_sort_order:n,new_sort_order:l,playlist_length:i,current_position:a+1,device_type:o?"mobile":"desktop",event_name:"playlist_sort_toggle"}),s()},"aria-label":`Sort playlist by date ${r===c.xB.Asc?"descending":"ascending"}`,className:"px-2 py-1",children:(0,y.jsx)(n.g,{icon:l(),className:"text-grey-500",size:"sm"})})]})]})};var T=a(23001),O=a(17325),E=a(12898),I=a(85271),D=a(23749),q=a(77572);let M=e=>{let{post:t}=e,{country:a}=(0,D.A)(),i=(0,q.S)(t.authors,a),r="text-xs xl:text-sm",n="font-bold";return(0,y.jsxs)(y.Fragment,{children:[i.length>0&&(0,y.jsx)(h.EY,{color:"text-grey-500",children:" ⢠"}),i.map((e,a)=>{var i,s;return(0,y.jsxs)(y.Fragment,{children:[a>0&&(null==(i=t.authors)?void 0:i.length)-1===a&&(0,y.jsxs)(h.EY,{color:"text-grey-500",fontSize:"text-xs",children:[" ","and"," "]}),(0,y.jsx)(h.EY,{color:"text-white",weight:n,fontSize:r,children:N().decode(e.name)}),(null==(s=t.authors)?void 0:s.length)>2&&a<t.authors.length-2&&(0,y.jsxs)(h.EY,{fontSize:r,weight:n,color:"text-grey-500",children:[","," "]})]})})]})};var $=a(540),H=a(43309);let R=e=>{var t;let{post:a,type:i,description:r,relatedItems:n}=e;if(!a)return null;let s=(0,v.pd)(a.content);return(0,y.jsxs)("div",{className:"episode-details pb-10",children:[(0,y.jsxs)("div",{className:"pt-4 xl:pt-6 w-full",children:[(0,y.jsx)("div",{className:"mb-3",children:(0,y.jsx)(H.A,{type:i,isWatch:!0,children:a.title})}),(0,y.jsxs)("div",{className:"mb-5 leading-4",children:[(0,y.jsx)(h.EY,{color:"text-grey-500",fontFamily:"font-proxima-nova",fontSize:"text-xs xl:text-sm",children:(0,O.p)(null==a?void 0:a.date)}),a.authors&&(0,y.jsx)(M,{post:a})]}),(0,y.jsxs)("div",{className:"flex space-x-1 -mx-1",children:[(0,y.jsx)(E.Tx,{post:a,darkMode:!0}),(0,y.jsx)(m.PostSharePlatformDropdown,{darkMode:!0,url:window.location.href,title:a.title,logTitle:`Video - ${a.title}`,hideLabel:!0}),(0,y.jsx)(I.X,{postId:a.id,isDarkMode:!0,title:a.title,url:window.location.href})]}),r&&(0,y.jsx)("div",{className:"pt-5 -mb-5",children:(0,y.jsx)(h.EY,{fontFamily:"font-source-serif-pro",fontSize:"text-base",color:"text-grey-200",as:"div",children:(0,y.jsx)("div",{dangerouslySetInnerHTML:{__html:(0,T.aJ)(r,c.KT.Dark)}})})}),s.length>0&&(0,y.jsxs)("div",{className:"pt-5",children:[(0,y.jsx)(h.DZ,{level:2,className:"video-references-heading",fontSize:"text-large",color:"text-white",weight:"font-extrabold",lineHeight:"leading-tight",children:"References"}),(0,y.jsx)("ol",{className:"list-decimal list-inside",children:s.map((e,t)=>(0,y.jsx)(h.EY,{fontFamily:"font-source-serif-pro",fontSize:"text-base",color:"text-grey-200",as:"li",className:"mt-2",children:e},t))})]})]}),null!=n&&null!=(t=n.posts)&&t.length?(0,y.jsx)("div",{className:"border-t border-grey-900 mt-6",children:(0,y.jsx)($.A,{relatedItems:n,withHeading:!0,pageType:c.g6.Watch,variant:c.KT.Dark})}):""]})};function z(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,i)}return a}function F(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?z(Object(a),!0).forEach(function(t){(0,i.A)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):z(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}var Y=function(e){return e[e.Playing=1]="Playing",e[e.Paused=2]="Paused",e[e.Ended=0]="Ended",e}(Y||{});let L=e=>{let{post:t,playlist:a,description:i,type:p,relatedItems:g,playlistTitle:f,showVideoDetails:w=!0,trackData:j,eventCategory:k}=e,N=(0,r.useRef)(null),_=(0,r.useRef)(null),{0:S,1:A}=(0,r.useState)(c.xB.Desc),T=(0,r.useMemo)(()=>
15{if(!a)return[];let e=[...a];return S===c.xB.Asc?(0,v.my)(e,!0):S===c.xB.Desc?(0,v.my)(e,!1):e},[a,S]),O=(null==T?void 0:T.findIndex(e=>e.id===t.id))??-1,E=j?{trackData:j,eventCategory:k}:{trackData:!1},{trackInteraction:I,getInteraction:D}=(0,s.w)(),q=(0,r.useCallback)(async e=>{let t=e.target;if(N.current=t,t&&window.location.search){let e=new URLSearchParams(window.location.search);if(e.has("t")){let a=parseInt(e.get("t"));a>0&&(t.seekTo(a),t.playVideo())}return}try{var a;let e=await D(d.X8.VideoProgress),i=null==e||null==(a=e.result)||null==(a=a.score)?void 0:a.raw;i&&i>0&&(t.seekTo(i),setTimeout(()=>t.playVideo(),1e3))}catch(e){console.error("Error resuming video:",e)}},[D]),M=(0,r.useCallback)(e=>{let a=e.data;if(a===Y.Playing&&!_.current){_.current=setInterval(()=>{try{if(N.current&&"function"==typeof N.current.getCurrentTime&&"function"==typeof N.current.getDuration){let e=N.current.getCurrentTime(),a=N.current.getDuration();e>0&&a>0&&I({post:t,type:d.X8.VideoProgress,value:e,percentValue:e/a*100})}}catch(e){console.error("Error tracking video progress:",e)}},5e3);return}if(a===Y.Paused){try{if(N.current&&"function"==typeof N.current.getCurrentTime&&"function"==typeof N.current.getDuration){let e=N.current.getCurrentTime(),a=N.current.getDuration();e>=0&&a>0&&I({post:t,type:d.X8.VideoProgress,value:e,percentValue:e/a*100})}}catch(e){console.error("Error tracking video pause:",e)}clearInterval(_.current),_.current=null;return}a===Y.Ended&&(clearInterval(_.current),_.current=null)},[t,I]);(0,r.useEffect)(()=>()=>{_.current&&(clearInterval(_.current),_.current=null)},[]);let $=(0,r.useCallback)(()=>{l.A.log(`onEnded triggered with index ${O}`);let e=T[(O+1)%T.length];e&&o.A.push(e.articleLink)},[O,T]),H=(0,r.useMemo)(()=>({autoplay:1}),[]),z=t&&w,L=(0,x.ld)(t.videoUrl||t.video),B=(0,r.useCallback)(()=>{A(e=>e===c.xB.Asc?c.xB.Desc:c.xB.Asc)},[]),U=(0,r.useCallback)(()=>S===c.xB.Asc?["fas","sort-amount-up-alt"]:(c.xB.Desc,["fas","sort-amount-down-alt"]),[S]);return(0,y.jsx)(y.Fragment,{children:(0,y.jsx)("div",{className:"feature-video-section",children:(0,y.jsxs)("div",{className:"grid xl:grid-cols-10 xl:gap-6 xl:mt-6",children:[(0,y.jsxs)("div",{className:"xl:col-span-7",children:[(0,y.jsx)(b,{playlist:a,post:t,onEnded:$,onReady:q,memberOnly:!1,playerVars:H,onPlayerStateChange:M}),(0,y.jsxs)("div",{children:[(0,y.jsx)("div",{className:"playlist-mobile-accordion iphonese:-mx-4 -mx-6 bg-y-black xl:hidden border-b border-grey-800",children:(0,y.jsxs)(h.nD,{className:"overflow-hidden",defaultExpanded:!1,children:[(0,y.jsx)(h.Xo,{"aria-controls":`panel-playlist-${t.slug}`,id:`playlist-${t.slug}`,className:"py-4 px-6 items-center",expandIcon:(0,y.jsx)(n.g,{icon:["fas","chevron-down"],size:"lg",className:"text-carrot-500"}),children:a&&(0,y.jsx)(P,{playlistTitle:f,playlistIdx:O,playlistLength:a.length,isMobile:!0,sortOrder:S,toggleSortOrder:B,getSortIcon:U})}),(0,y.jsx)(h.vr,{children:(0,y.jsx)("div",{className:"overflow-auto max-h-128 h-128 border-t border-grey-900",children:(0,y.jsx)(C,F({post:t,items:T,isWatch:!0},E))})})]})}),z&&(0,y.jsx)(R,{post:t,type:p,description:i,relatedItems:g})]}),L&&(0,y.jsx)(m.TranscriptSection,{videoId:L,player:N.current}),(0,y.jsx)("div",{className:"my-6 bg-midnight rounded xl:hidden overflow-hidden",children:(0,y.jsx)(u.X,{width:324})})]}),(0,y.jsxs)("div",{className:"xl:col-span-3",children:[(0,y.jsxs)("div",{className:"playlist xl:block hidden overflow-auto",children:[a&&(0,y.jsx)(P,{playlistTitle:f,playlistIdx:O,playlistLength:a.length,sortOrder:S,toggleSortOrder:B,getSortIcon:U}),(0,y.jsx)("div",{className:`overflow-auto ${w?"h-[31.3rem]":"max-h-108"}`,children:(0,y.jsx)(C,F({post:t,items:T,isWatch:!0},E))})]}),(0,y.jsx)("div",{className:"mt-6 bg-midnight rounded-md xl:block hidden",children:(0,y.jsx)(u.X,{width:400})})]})]})})})}},62255:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});var i=a(18125),r=a(57002),n=a(69174),s=a(37876);let l=e=>{let{title:t,rightText:a,titleLink:l,rightTextLink:o,variant:c=r.KT.Light,isBorder:d=!0,titleSize:h="text-3xl",isSpacing:u=!0,titleWeight:m="font-bold"}=e,p=c===r.KT.Dark?"text-white":"text-grey-900",g=c===r.KT.Dark?"text-white":"text-grey-900",f="",x="",y="";d&&(x="border-b",f=c===r.KT.Dark?"border-grey-800":"border-grey-200"),u&&(y="mb-6 pb-4");let b=(e,t)=>t?(0,s.jsx)(n.qh,{href:t,children:e()}):e();return(0,s.jsxs)("div",{className:`section-title flex justify-between items-center ${x} ${f} ${y}`,children:[b(()=>(0,s.jsxs)("div",{className:"inline-flex items-center",children:[(0,s.jsx)(n.DZ,{color:p,fontSize:h,weight:m,lineHeight:"leading-3-s",children:t}),l&&(0,s.jsx)(i.g,{icon:"chevron-right",className:"text-carrot-500 ml-3 text-xl",fixedWidth:!0})]}),l),b(()=>
15{if(a)return(0,s.jsx)(n.EY,{color:g,weight:"font-semibold",children:a})},o)]})}},62343:(e,t,a)=>{"use strict";a.d(t,{TJ:()=>s,ec:()=>m,yA:()=>g});var i=a(14232),r=a(65083),n=a(37876);let s=e=>{let{children:t,items:a}=e,{0:s,1:l}=(0,i.useState)(0);return(0,n.jsx)(r.Hx,{index:s,onChangeIndex:e=>l(e),onNext:()=>{if(s<a-1)return l(s+1)},onPrev:()=>{if(0!==s)return l(s-1)},size:a,slideStyle:{display:"flex",paddingRight:"1rem"},children:t})};var l=a(54587),o=a.n(l),c=a(18125),d=a(46824),h=a(69174),u=a(86400);let m=e=>{let{items:t,children:a,galleries:r}=e,{0:s,1:l}=(0,i.useState)(0),m=()=>{l(0===s?t-1:s-1)},p=()=>{l(s>t-2?0:s+1)},g=s<t-1?"text-carrot-500":"text-grey-500",f=0!==s?"text-carrot-500":"text-grey-500",x=()=>(0,n.jsx)("div",{className:"flex xl:flex-col items-start",children:(0,n.jsxs)("div",{className:"flex xl:flex-col items-center",children:[(0,n.jsx)("div",{className:"mt-1.5 mb-4 xl:block hidden",children:(0,n.jsx)(h.$n,{onPress:m,"aria-label":"slide left",className:"rounded-full xl:mx-4 w-10 h-10 focus:outline-none",children:(0,n.jsx)(c.g,{icon:"chevron-left",className:`transform rotate-90 ${f}`})})}),(0,n.jsx)("div",{className:"flex xl:flex-col xl:gap-y-2",children:r.map((e,t)=>{let a=t===s;return(0,n.jsx)(h.$n,{elementType:"div",onPress:()=>{l(t)},"aria-label":`go to ${t+1}`,className:`xl:mx-4 focus:outline-none border-2 xl:mt-0 mt-5 ${a?"rounded border-carrot-500":"border-transparent"}`,children:(0,n.jsxs)("div",{className:"xl:p-2",children:[(0,n.jsx)("div",{className:"xl:hidden flex py-1 px-2",children:(0,n.jsx)(o(),{loader:u.R2,src:`${e.src}&h=250&w=300`,height:"100",width:"70",alt:e.title,layout:"intrinsic",objectFit:"cover",className:"outline-greyish"})}),(0,n.jsx)("div",{className:"xl:flex hidden justify-center items-center py-0.25 px-3",children:(0,n.jsx)(o(),{loader:u.R2,src:`${e.src}&h=300&w=250`,width:56,height:72,alt:e.title,objectFit:"cover",layout:"intrinsic",className:"outline-greyish"})})]})},t)})}),(0,n.jsx)("div",{className:"mt-6 xl:block hidden",children:(0,n.jsx)(h.$n,{onPress:p,"aria-label":"slide left",className:"rounded-full xl:mx-4 w-10 h-10 focus:outline-none",children:(0,n.jsx)(c.g,{icon:"chevron-left",className:`transform -rotate-90 ${g}`})})})]})});return(0,n.jsxs)("div",{className:"grid xl:grid-flow-col",children:[(0,n.jsx)("div",{className:"xl:block hidden",children:x()}),(0,n.jsx)(d.A,{enableMouseEvents:!0,onChangeIndex:e=>{l(e)},index:s,resistance:!0,className:"flex",children:a}),(0,n.jsx)("div",{className:"xl:hidden",children:x()})]})};var p=a(67579);let g=e=>{let{chapter:t,index:a}=e,i=0===a;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"chapter mb-6",children:[(0,n.jsx)(p.CardCategory,{category:t.chapter_name,size:"text-sm"}),(0,n.jsx)(h.DZ,{fontSize:i?"xl:text-3xl text-2xl":"xl:text-xl text-lg",weight:"font-semibold",lineHeight:i?"leading-tight":"xl:leading-8 leading-tight",children:t.title}),(0,n.jsx)(h.EY,{color:"text-grey-700",fontSize:"xl:text-base text-xs",children:t.date}),(0,n.jsx)("div",{className:"border-b-2 border-carrot-500 w-10 mb-3 mt-4"}),(0,n.jsx)(h.EY,{as:"p",fontFamily:"font-source-serif-pro",lineHeight:"leading-relaxed",children:(0,n.jsx)("span",{dangerouslySetInnerHTML:{__html:t.content}})})]}),(0,n.jsx)("div",{className:"border-b border-grey-200 w-full mb-6"})]})}},63840:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>n});var i=a(67579),r=a(37876);let n=e=>{let{posts:t,analytic:a,numberOfPost:n,isSidebar:s}=e;return s?(0,r.jsx)("div",{className:"flex flex-col gap-y-10",children:t.map(e=>(0,r.jsx)(i.Card,{imgSrc:e.featured_image,title:e.title,postLink:e.slug,category:e.topic.filter(e=>0!==e.parent)[0].name,authors:e.authors,categoryLink:`/topic/${e.topic.filter(e=>0!==e.parent)[0].slug}`,analytic:a},e.title))}):(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{className:"lg:pt-6 pt-4",children:[(0,r.jsx)("div",{className:`hidden lg:grid xl:grid-cols-${n} grid-cols-1 gap-x-6 gap-y-10`,children:t.map(e=>(0,r.jsx)(i.Card,{imgSrc:e.featured_image,title:e.title,postLink:`/read/paper/${e.slug}`,category:e.topic.filter(e=>0!==e.parent)[0].name,authors:e.authors,categoryLink:`/topic/${e.topic.filter(e=>0!==e.parent)[0].slug}`,analytic:a},e.title))}),(0,r.jsx)("div",{className:"lg:hidden",children:(0,r.jsx)("div",{className:"flex overflow-x-auto gap-4 lg:pb-4 pb-0 snap-x -mx-4 px-4",children:t.map(e=>(0,r.jsx)("div",{className:"flex-shrink-0 w-36 snap-center",children:(0,r.jsx)(i.Card,{imgSrc:e.featured_image,title:e.title,titleSize:"text-xs",postLink:`/read/paper/${e.slug}`,category:e.topic.filter(e=>0!==e.parent)[0].name,authors:e.authors,categoryLink:`/topic/${e.topic.filter(e=>0!==e.parent)[0].slug}`,analytic:a})}
15,e.title))})})]})})}},64141:(e,t,a)=>{"use strict";a.d(t,{_U:()=>n,sE:()=>i,xY:()=>r,ru:()=>s}),a(2002),a(16365),a(22451);let i=function(e){return e.NEWSLETTER="newsletter",e.ANGELS="angels",e.CURRICULUM_FEEDBACK="curriculumFeedback",e.PAPER_FEEDBACK="paperFeedback",e.COMPASS="compass",e.BETA_TESTING="betaTesting",e.HOST_EVENT="hostEvent",e.SPONSOR_CONFERENCE="sponsorConference",e.SPONSOR_EVENT="sponsorEvent",e.EVENTS_NEWSLETTER="eventsNewsletter",e}({}),r=function(e){return e.CURRICULUM_DOWNLOAD="curriculum_download",e.COMPASS_NEWSLETTER="compass_newsletter_landing_page",e.HOME_PAGE="homepage",e.HOME_PAGE_2022="homepage2022",e.HOME_PAGE_2024="homepage2024",e.PAPER_PAGE="paper_page",e.NEWSLETTER_LANDING_PAGE="newsletter_landing_page",e.PAPERS_NEWSLETTER_LANDING_PAGE="papers_newsletter_landing_page",e.MEMBERS_LANDING_PAGE="members_landing_page",e.FOOTER="footer",e}({}),n={firstname:"Not",lastname:"Logged-in"},s={[i.NEWSLETTER]:{formId:"29d0eeb6-5a7a-48d0-8ee7-940fdbb16c2a",coreRequired:["email","yaqeen_subscriber_source","pageUri","pageName"],conditionalRequired:[{condition:e=>e.yaqeen_subscriber_source===r.CURRICULUM_DOWNLOAD,params:["yaqeen_subscriber_source_content"],errorMessage:"yaqeen_subscriber_source_content is required for curriculum downloads"}]},[i.ANGELS]:{formId:"282efbcc-3ab4-4101-bef0-fa371b7e7ea0",coreRequired:["email","yaqeen_subscriber_source","pageUri","pageName"]},[i.CURRICULUM_FEEDBACK]:{formId:"c88beb81-c6c8-46ad-a7da-c3e49fd7b00a",coreRequired:["email","teacher_portal_feedback","pageUri","pageName","how_can_we_support_you_"]},[i.PAPER_FEEDBACK]:{formId:"9407d3c8-52f6-400b-958b-bd0a4331f413",coreRequired:["email","paper_feedback","pageUri","pageName","paper_feedback_type"]},[i.COMPASS]:{formId:"677e7cf8-1f6d-4f76-bcce-9cf67463715c",coreRequired:["email","firstname","lastname","pageName","pageUri"]},[i.BETA_TESTING]:{formId:"4d20557c-d36b-44fc-ae39-565f2cc44221",coreRequired:["email","yaqeen_subscriber_source","pageName","pageUri","firstname","lastname"]},[i.HOST_EVENT]:{formId:"d4e6a4df-6f87-4083-9683-ea4aa865c215",coreRequired:["email","full_name","country_dropdown","city","why_do_you_think_this_event_will_bring_value_to_your_community","pageUri","pageName"]},[i.SPONSOR_CONFERENCE]:{formId:"2e6c4cee-24b4-463e-916a-2789d3dd1ffc",coreRequired:["email","full_name","mobilephone","name_of_organization_or_institute","sponsorship_package","conference_name","pageUri","pageName"]},[i.SPONSOR_EVENT]:{formId:"37cc6b8c-c5eb-4fb2-adfb-14ad0bf48913",coreRequired:["email","full_name","mobilephone","name_of_organization_or_institute","sponsorship_package","event_name","conference_name","pageUri","pageName"]},[i.EVENTS_NEWSLETTER]:{formId:"c613100b-94c9-47ac-9d4a-2f790c14078a",coreRequired:["email","full_name","country_dropdown","city","pageUri","pageName"]}}},64444:(e,t,a)=>{"use strict";a.d(t,{z:()=>g});var i=a(57002),r=a(24519),n=a.n(r),s=a(18012),l=a(69174),o=a(43425),c=a(74528),d=a(37876);let h=e=>{let{topics:t,pageType:a=i.g6.Read,variant:r=i.KT.Light}=e,h=r===i.KT.Dark?"text-grey-100 hover:text-grey-300":"text-grey-700 hover:text-grey-900",u=r===i.KT.Dark?"border-grey-800":"border-grey-100";return(0,d.jsx)("div",{className:"category-nav xl:block flex xl:whitespace-normal whitespace-nowrap overflow-auto",children:(0,d.jsx)("div",{className:`border-b ${u} pb-2`,children:(0,d.jsxs)("div",{className:"flex items-center px-4 lg:px-0 iphonese:px-2",children:[a==i.g6.Watch&&c.q.map((e,t)=>(0,d.jsx)(l.qh,{onClick:()=>{(0,s.$s)("content_filter","click",e.title)},href:"webinars"===e.slug?"/tag/webinars":`/watch/${e.slug}`,className:"flex items-center py-1",children:(0,d.jsx)(l.EY,{color:h,weight:"font-bold",fontSize:"text-xs",className:"px-2",letterSpacing:"tracking-tight-1",children:e.title})},t)),(0,d.jsx)(l.EY,{fontSize:"text-xs",letterSpacing:"tracking-tight-1",color:r===i.KT.Dark?"text-grey-400":"text-grey-900",className:`border-l ${r===i.KT.Dark?"border-grey-800":"border-grey-100"} px-2`,children:"Topics:"}),t.filter(e=>!e.parent).map(e=>(0,d.jsx)(l.qh,{onClick:()=>{(0,s.$s)("content_filter","click",e.name)},href:(0,o.eC)(e,t,a),className:"flex items-center py-1",children:(0,d.jsx)(l.EY,{weight:"font-bold",fontSize:"text-xs",letterSpacing:"tracking-tight-1",className:"px-2",color:h,children:n().decode(e.name)}
15)},e.name))]})})})};var u=a(69398),m=a(59733),p=a(40627);let g=e=>{let{breadcrumbs:t,pageTitle:a,isContentTypePage:r,topic:n,navTopics:s,topics:l,pageType:o,variant:c,pageDescription:g,navItems:f,titleSize:x,colorItems:y,secondaryDescription:b,lineHeight:v,isPageTitle:w,activeNav:j}=e,k=e=>(0,d.jsx)(p.tg,{variant:c!==i.KT.Dark?"dark":"light",children:(0,d.jsx)("span",{dangerouslySetInnerHTML:{__html:e}})});return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"xl:pt-12 pt-8",children:[(null==t?void 0:t.length)>0&&(0,d.jsx)("div",{className:"mb-2",children:(0,d.jsx)(m.g,{variant:c,items:t,fontSize:"text-xs xl:text-sm"})}),(0,d.jsx)(p.cq,{variant:c!==i.KT.Dark?"endeavour":"light",fontWeight:"font-extrabold",fontSize:x,lineHeight:v,isPageTitle:w,children:y&&y.length?a.split(" ").map((e,t)=>y.indexOf(t)>-1?(0,d.jsxs)("span",{className:"text-carrot-500",children:[e," "]},t):`${e} `):a}),b?(0,d.jsxs)("div",{className:"page-description grid xl:grid-cols-2 xl:gap-x-6 mt-2",children:[(0,d.jsx)("div",{className:"primary-description xl:mb-0 mb-5",children:k(g)}),(0,d.jsx)("div",{className:"secondary-description",children:k(b)})]}):(0,d.jsx)("div",{className:"mt-2 xl:w-3/5",children:k(g)})]}),(()=>{if(f||l||s)return f&&f.length?(0,d.jsx)(u.OB,{children:(0,d.jsx)(u.Qq,{items:f,activeNav:j})}):r?(0,d.jsx)(u.OB,{children:(0,d.jsx)(h,{topics:l,pageType:o,variant:c})}):(0,d.jsx)(u.OB,{children:(0,d.jsx)(u.j3,{topic:n,topics:s,allTopics:l,pageType:o,variant:c})})})()]})}},64470:(e,t,a)=>{"use strict";a.d(t,{A:()=>p});var i=a(14232),r=a(11511),n=a(57002),s=a(37735),l=a(17257),o=a(61978),c=a(75477),d=a(37876);function h(e){let{videoCardItems:t,pillars:a}=e;return(0,d.jsx)("div",{className:"pt-10 lg:pt-12",children:(0,d.jsx)(c.Tr,{cardItems:t,size:12,pillars:a,type:n.g6.Watch})})}var u=a(64444);let m=e=>{let{videoCardItems:t,topics:a,currentVideo:i,playlist:r,playlistTitle:s,pageTitle:l,breadcrumbs:c,isContentTypePage:m,topic:p,navTopics:g,pageType:f,pageDescription:x,relatedItems:y,pillars:b}=e;return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("div",{className:"bg-y-black",children:(0,d.jsxs)("div",{className:"container mx-auto px-6 iphonese:px-4",children:[(0,d.jsx)(u.z,{breadcrumbs:c,pageTitle:l,isContentTypePage:m,topic:p,navTopics:g,topics:a,pageType:f,variant:n.KT.Dark,titleSize:"text-4xl xl:text-6xl",lineHeight:"leading-3-s",isPageTitle:!1}),i&&(0,d.jsx)(o.A,{post:i,playlist:r,type:n.xj.Video,playlistTitle:s,isWatch:!0,description:x,relatedItems:y})]})}),t&&t.length>0&&(0,d.jsx)(h,{videoCardItems:t,pillars:b})]})},p=e=>{let{post:t,relatedItems:a,topics:o,videoCardItems:c,playlist:h,pillars:u,playlistTitle:p}=e,g=h.find(e=>e.id===t.id),f=null==g?void 0:g.subtopic,x=(null==f?void 0:f.name)||null,y=(0,l.y)(t),{eventTracker:b}=(0,r.OF)();return(0,i.useEffect)(()=>{b("page_view",t.id.toString())},[t.id]),(0,d.jsx)(m,{breadcrumbs:y,pageType:n.g6.Watch,videoCardItems:c,topics:o,currentVideo:t,playlist:h,pageTitle:x,isContentTypePage:!0,pageDescription:(0,s.WV)(t.content[0]),relatedItems:a,pillars:u,playlistTitle:p})}},64761:(e,t,a)=>{"use strict";a.d(t,{uX:()=>O,d$:()=>A,O3:()=>S,bX:()=>P});var i=a(66284),r=a(67117),n=a(32008),s=a(99742);let l=()=>!!(s.env.S3_DATA_ENDPOINT&&s.env.S3_DATA_SECRET),o=e=>{if(!l())return!1;let t=(s.env.S3_FIRST_GETTERS??"").split(",").map(e=>e.trim()).filter(Boolean);return t.includes("*")||t.includes(e)};var c=a(99742);let d=async e=>{let t=c.env.S3_DATA_ENDPOINT;if(!t)return null;let a=e.split("/").map(encodeURIComponent).join("/"),i=`${t.replace(/\/$/,"")}/object/${a}`,r=new AbortController,n=setTimeout(()=>r.abort(),5e3);try{let t=await fetch(i,{headers:{"x-yqn-data-secret":c.env.S3_DATA_SECRET??"","user-agent":"YQN-API/1"},signal:r.signal});if(404===t.status)return null;if(!t.ok)throw Error(`S3 data transport: HTTP ${t.status} for ${e}`);return await t.json()}finally{clearTimeout(n)}},h=async(e,t,a)=>{let i=new AbortController,r=setTimeout(()=>i.abort(),5e3);try{let r=await fetch(`${e}/objects`,{method:"POST",headers:{"content-type":"application/json","x-yqn-data-secret":t,"user-agent":"YQN-API/1"},body:JSON.stringify({keys:a}),signal:i.signal});if(!r.ok)throw Error(`S3 data batch transport: HTTP ${r.status}`);return(await r.json()).results??{}}finally{clearTimeout(r)}},u=async(e,t)=>{if(!e)return null;let a=new AbortController,i=setTimeout(()=>a.abort(),5e3);try{let i=await fetch(e,{signal:a.signal});if(404===i.status||403===i.status)return null;if(!i.ok)throw Error(`S3 data batch object: HTTP ${i.status} for ${t}`);return await i.json()}finally{clearTimeout(i)}},m=async e=>{let t=new Map,a=c.env.S3_DATA_ENDPOINT;if(!a||0===e.length)return t;let i=a.replace(/\/$/,""),r=c.env.S3_DATA_SECRET??"",n=[];for(let t=0;t<e.length;t+=30)n.push(e.slice(t,t+30));for(let e of n){let a=await h(i,r,e);await Promise.all(e.map(async e=>{t.set(e,await u(a[e]??null,e))}))}return t};var p=a(99742);function g(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,i)}return a}function f(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};
15t%2?g(Object(a),!0).forEach(function(t){(0,i.A)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):g(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}let x="S3Data",y=(e,t)=>n.A.log(`s3data:${e}`,f({component:x},t)),b=async(e,t,a,i)=>{let n=new Map,s=[];for(let a of e){let e=(0,r.eA)(`${a}`,t);e&&!w(e,null==i?void 0:i.get(a))?n.set(a,e):s.push(a)}for(let e of((await j(s,t,f(f({},a),{},{missMetric:"cold_id",seriesResolver:()=>null}))).forEach((e,t)=>n.set(t,e)),s)){if(n.has(e))continue;let a=(0,r.eA)(`${e}`,t);a&&n.set(e,a)}return n},v=e=>"series"===e.type,w=(e,t)=>{let a=e.modified_at;return!!t&&!!a&&t!==a},j=async(e,t,a)=>{let i,s=new Map;if(0===e.length)return s;let l=e.map(e=>({id:e,folder:(0,r.Gw)(`${e}`)})),o=e=>e.folder?[`${e.folder}/${e.id}.json`]:a.folders.map(t=>`${t}/${e.id}.json`),c=l.flatMap(o);try{i=await m(c)}catch(t){let e=t instanceof Error?t.message:String(t);return y("s3_error",{getter:a.getter,termId:a.termId,error:e,count:c.length}),n.A.error(t,{component:x,getter:a.getter}),s}for(let e of l){let n=o(e).map(e=>i.get(e)).find(e=>null!=e);if(null==n){y(a.missMetric,{getter:a.getter,termId:a.termId,id:e.id});continue}let l=(0,r.O1)(n,t,a.seriesResolver);l&&s.set(e.id,l)}return s},k=async(e,t,a,i)=>{if(!Array.isArray(null==t?void 0:t.items))return y("s3_malformed",{getter:i.getter,termId:i.termId}),e;let n=t.items,o=i.preserveSeries?e.filter(v):[],c=new Set(n.map(e=>Number(e.id)).filter(e=>Number.isInteger(e)&&e>0)),d=Array.from(c);if(0===d.length)return i.allowEmpty&&0===n.length?o:e;let h=new Set(e.map(e=>e.id)),u=(()=>{if(!l())return!1;let e=(s.env.S3_LISTING_FIELD_FRESHNESS??"").trim().toLowerCase();return"1"===e||"true"===e})()?(e=>{let t=new Map;for(let a of e){let e=Number(a.id);Number.isInteger(e)&&e>0&&"string"==typeof a.modified&&a.modified&&t.set(e,a.modified)}return t})(n):new Map,m=await N(e.filter(e=>c.has(e.id)||i.preserveSeries&&v(e)),u,a,i),p=d.filter(e=>!h.has(e));if(0===p.length)return m;let g=await b(p,a,i,u);return[...p.map(e=>g.get(e)).filter(Boolean).filter(e=>!(0,r.uN)(e,a)).sort((e,t)=>new Date(t.date).getTime()-new Date(e.date).getTime()),...m]},N=async(e,t,a,i)=>{if(0===t.size||0===e.length)return e;let n=e.filter(e=>!v(e)&&w(e,t.get(e.id))).map(e=>e.id);if(0===n.length)return e;let s=n.slice(0,(()=>{let e=Number(p.env.S3_DRIFT_REFRESH_MAX);return Number.isInteger(e)&&e>0?e:30})());n.length>s.length&&y("drift_capped",{getter:i.getter,termId:i.termId,drifted:n.length,refreshed:s.length});let l=await j(s,a,f(f({},i),{},{missMetric:"drift_miss",seriesResolver:r.td}));return 0===l.size?e:(y("drift_refresh",{getter:i.getter,termId:i.termId,count:l.size}),e.map(e=>v(e)?e:l.get(e.id)??e).filter(e=>v(e)||!(0,r.uN)(e,a)))},_=async(e,t,a)=>{let i=a.localGetter(e,t);if(!o(a.flag))return i;try{let n=((e,t)=>{var a;let i=(0,r.DR)(e);return(null==i||null==(a=i.find(e=>e.slug===t))?void 0:a.id)??null})(a.termTaxonomy??a.keyPrefix,e);
15if(null===n)return y("cold_term",{getter:a.flag,slug:e}),i;let s=await d(`${a.keyPrefix}/${n}.json`);if(null===s)return y("s3_miss",{getter:a.flag,termId:n}),i;return y("s3_hit",{getter:a.flag,termId:n}),k(i,s,t,{getter:a.flag,termId:n,folders:a.foldersForSlug(e),allowEmpty:a.allowEmpty,preserveSeries:a.preserveSeries})}catch(r){let t=r instanceof Error?r.message:String(r);return y("s3_error",{getter:a.flag,slug:e,error:t}),n.A.error(r,{component:x,getter:a.flag,slug:e}),i}},S=(e,t)=>_(e,t,{flag:"postsByTopic",keyPrefix:"topic",localGetter:r.Cw,foldersForSlug:()=>r.dg}),A=(e,t)=>_(e,t,{flag:"postsByTag",keyPrefix:"tag",termTaxonomy:"post_tag",localGetter:r.nE,foldersForSlug:e=>"featured-read"===e?["papers"]:"featured-watch"===e?["videos"]:"featured-infographic"===e?["infographics"]:r.dg,allowEmpty:!0,preserveSeries:!0}),C=async(e,t,a,i,r)=>{if(!o(e))return a();try{let n=await d(t);if(null===n)return y("s3_miss",{getter:e,key:t}),a();if(!Array.isArray(n)||0===n.length)return y("s3_malformed",{getter:e,key:t,empty:Array.isArray(n)}),a();if(!n.every(i))return y("s3_malformed",{getter:e,key:t,elementShape:!0}),a();let s=r(n);return y("s3_hit",{getter:e,key:t,count:n.length}),s}catch(t){return y("s3_error",{getter:e,error:t.message}),n.A.error(t,{component:x,getter:e}),a()}},P=()=>C("sections","section.json",r.iZ,e=>e&&"string"==typeof e.slug&&Array.isArray(e.sections),e=>e),T=e=>!!e&&r.Y0.every(t=>"order"===t?null!=e[t]:!!e[t])&&Array.isArray(e.units)&&e.units.every(e=>e&&"string"==typeof e.name&&"string"==typeof e.description),O=async e=>{if(!o("curriculumUnit"))return(0,r.Dz)(e);try{let t=(0,r.Bq)(),a=t?(0,r.ag)(t,e):null;if(null===a){let t=await d("curriculum_topics.json"),i=Array.isArray(t)&&t.every(T)?t:null;a=i?(0,r.ag)(i,e):null}if(null===a)return y("cold_slug",{getter:"curriculumUnit",slug:e}),null;let i=`curriculum_units/${a}.json`,n=await d(i);if(null===n)return y("s3_miss",{getter:"curriculumUnit",slug:e,key:i}
15),(0,r.T6)(a);if(!r.P1.every(e=>!!n[e])||!Array.isArray(n.sections))return y("s3_malformed",{getter:"curriculumUnit",slug:e,key:i}),(0,r.T6)(a);return y("s3_hit",{getter:"curriculumUnit",key:i}),n}catch(t){return y("s3_error",{getter:"curriculumUnit",slug:e,error:t.message}),n.A.error(t,{component:x,getter:"curriculumUnit",slug:e}),(0,r.Dz)(e)}}},65087:(e,t,a)=>{"use strict";a.d(t,{Oh:()=>o,Pt:()=>s,So:()=>d,cd:()=>n,v8:()=>c});var i=a(22938),r=a(13826);let n=e=>!!window.open(e,"_blank");async function s(e,t){try{let a=await fetch("/api/hsUpdateDownloadedBooks",{method:"post",body:JSON.stringify({email:e,item:t}),headers:{"Content-Type":"application/json"}});i.A.log("hsUpdateDownloadedBooks done",a)}catch(a){i.A.error(`hsUpdateDownloadedBooks failed: ${e} and ${t}`,a)}}async function l(e,t,a){let n=`https://2npow79v74.execute-api.us-east-1.amazonaws.com/production/v1${e}`;try{let s;if(a)s=await (0,r.Ku)(n,t,"POST",!0);else{if(!(s=await fetch(n,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)})).ok)throw Error(`HTTP error! status: ${s.status}`);s=await s.json()}return console.log(`API call to ${e} response:`,s),i.A.log(`API call to ${e} done`,s),s}catch(t){throw i.A.error(`API call to ${e} failed`,t),t}}async function o(e,t){return l("/hubspot/email/book-download",{book_name:e,book_download_link:t},!0)}async function c(e,t,a){return l("/hubspot/email/book-download-no-auth",{email:e,book_name:t,book_download_link:a},!1)}let d=[{title:"Read",href:"/read"},{title:"Yaqeen Books",href:"/read/books"}]},65583:(e,t,a)=>{"use strict";a.r(t),a.d(t,{CookieBanner:()=>p});var i=a(97247),r=a(52916),n=a(9361),s=a(2527),l=a(41464),o=a(18012),c=a(32008),d=a(69174),h=a(6143),u=a(37876);let m="CookieBanner",p=e=>{let{onComplete:t}=e;return(0,u.jsx)(r.m.div,{initial:{opacity:0,y:50},animate:{opacity:1,y:0},exit:{opacity:0,y:50},className:"fixed inset-x-0 bottom-0 z-50 bg-white p-6 ring-1 ring-gray-900/10 lg:px-8",children:(0,u.jsxs)("div",{className:"flex flex-col gap-y-4 md:max-w-[50%]",children:[(0,u.jsxs)("p",{className:"text-sm/6 text-gray-900",children:["Our website uses cookies necessary for the site to function, and give you the very best experience. To learn more about our cookies, how we use them and their benefits, read our"," ",(0,u.jsx)(d.qh,{href:"/privacy-policy",className:"font-semibold hover:text-y-carrot-orange-d",children:"privacy policy"}),"."]}),(0,u.jsxs)("div",{className:"flex items-center gap-x-5",children:[(0,u.jsx)("button",{type:"button",onClick:()=>{let e=()=>{h.Cj.setItem(h.UT.CookieBanner,"accept_all"),(0,o.$s)("cookie_banner","click","accept_all"),c.A.debug("Cookie consent set to: accept_all",{component:m})};t?t("accept_all",e):(e(),c.A.log("CookieBanner: onComplete handler not provided for acceptAll.",{component:m},c.$.WARNING))},className:"rounded-md bg-carrot-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-carrot-700 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-carrot-600",children:"Accept all"}),(0,u.jsx)("button",{type:"button",onClick:()=>{let e=()=>{(0,h.Vv)()&&sessionStorage.removeItem(i.Ki),(0,h.pK)()&&(localStorage.removeItem(h.UT.ClassroomToken),localStorage.removeItem(h.UT.ClassroomTokenStart)),l.A.remove(s.D),l.A.remove(n.SG),h.Cj.setItem(h.UT.CookieBanner,"essential_only"),(0,o.$s)("cookie_banner","click","essential_only"),c.A.debug("Cookie consent set to: essential_only, other cookies cleared.",{component:m})};t?t("essential_only",e):(e(),c.A.log("CookieBanner: onComplete handler not provided for essentialOnly.",{component:m},c.$.WARNING))},className:"text-sm font-semibold text-gray-900 hover:text-gray-700",children:"Essential only"})]})]})})}},65608:(e,t,a)=>{"use strict";a.d(t,{ny:()=>x.n,wF:()=>u,cH:()=>s,Az:()=>m,vc:()=>f});var i=a(14232),r=a(65083),n=a(37876);let s=e=>{let{children:t,items:a}=e,{0:s,1:l}=(0,i.useState)(0);return(0,n.jsx)(r.Hx,{index:s,onChangeIndex:e=>l(e),onNext:()=>{if(s<a-1)return l(s+1)},onPrev:()=>{if(0!==s)return l(s-1)},size:a,slideStyle:{display:"flex",paddingRight:"1rem"},children:t})};var l=a(18125),o=a(18012),c=a(28823),d=a(69174),h=a(4797);let u=e=>{let{isColor:t,url:a,title:i,logTitle:r}=e,s="text-white",u="text-white",m="text-white",p="text-white";t&&(s="text-fb",u="text-twitter",m="text-grey-900",p="text-whatsapp");let g=e=>{(0,o.$s)(r,"share",`Share via ${e}: ${a}`)};return(0,n.jsxs)("div",{className:`share-pillars flex items-center ${t?"":"justify-center"}`,children:[(0,n.jsx)(d.EY,{weight:"font-semibold",color:t?"text-grey-900":"text-white/75",children:"Share:"}),(0,n.jsxs)("div",{className:"flex items-center space-x-5 mx-5",children:[(0,n.jsx)(c.uI,{url:`${a}?utm_source=facebook&utm_medium=referral&utm_campaign=${r}`,title:i,onClick:()=>g("Facebook"),children:(0,n.jsx)(l.g,{icon:["fab","facebook-f"],className:s,fixedWidth:!0})}),(0,n.jsx)(c.r6,{url:`${a}?utm_source=twitter&utm_medium=referral&utm_campaign=${r}`,title:i,onClick:()=>g("Twitter"),children:(0,n.jsx)(l.g,{icon:["fab","x-twitter"],className:u,fixedWidth:!0})}),(0,n.jsx)(c.Kz,{url:`${a}?utm_source=whatsapp&utm_medium=referral&utm_campaign=${r}`,title:i,onClick:()=>g("WhatsApp"),children:(0,n.jsx)(l.g,{icon:["fab","whatsapp"],className:p,fixedWidth:!0})}),(0,n.jsx)(c.Ot,{url:`${a}?utm_source=email&utm_medium=referral&utm_campaign=${r}`,title:i,children:(0,n.jsx)(l.g,{icon:"envelope",className:m,fixedWidth:!0})}),(0,n.jsx)(d.$n,{onPress:()=>{(0,h.lW)(`${a}?utm_source=copiedlink&utm_medium=referral&utm_campaign=${r}`),g("Copy URL")},children:(0,n.jsx)(l.g,{icon:["far","link"],className:m,fixedWidth:!0})})]})]})},m=e=>{let{title:t,titleLink:a,type:i}=e;return(0,n.jsx)("div",{className:"caption mt-3 mb-6",children:(0,n.jsxs)(d.EY,{as:"figcaption",lineHeight:"leading-relaxed",weight:"font-bold",className:"text-center",fontSize:"text-sm",children:[(0,n.jsxs)("span",{className:"font-normal",children:["Infographic"===i?"See full infographic on":i,":"]})," ",(0,n.jsx)(d.qh,{href:a,className:"url",children:t})]})})};var p=a(67579),g=a(58216);let f=e=>{let{post:t}=e;return t?(0,n.jsxs)(n.Fragment,{children:[(0,g.s)(t),(0,n.jsx)(p.PillarsMediaCaption,{type:t.contentType.name,title:t.title,titleLink:t.slug})]}):null};a(16192);var x=a(12444)},66071:(e,t,a)=>{"use strict";a.d(t,{U:()=>r});var i=a(14232);let r=e=>{let{0:t,1:a}=(0,i.useState)(null);return(0,i.useEffect)(()=>
15{if("function"!=typeof window.matchMedia)return;let t=window.matchMedia(e),i=()=>a({query:e,matches:t.matches});return(i(),"function"==typeof t.addEventListener)?(t.addEventListener("change",i),()=>t.removeEventListener("change",i)):(t.addListener(i),()=>t.removeListener(i))},[e]),(null==t?void 0:t.query)===e&&t.matches}},66135:(e,t,a)=>{"use strict";a.d(t,{A:()=>n}),a(14232);var i=a(55850),r=a(37876);let n=e=>{let{as:t="ul",isCustomElement:a,children:n,start:s}=e,l=(0,i.Lo)(["ol"===t?"list-decimal":"list-disc",`${a?"":"font-source-serif-pro"} ${a?"text-grey-800":"text-grey-900"} text-base xl:text-lg ${"ol"===t?"leading-[2] marker:font-bold":"leading-relaxed"} tracking-normal font-normal break-words`,"md:ml-10 ml-8 my-5"]);return(0,r.jsx)(t,{start:"ol"===t?s:void 0,className:l,children:n})}},66918:(e,t,a)=>{"use strict";a.d(t,{P:()=>s,b:()=>l});var i=a(14232),r=a(92160),n=a(32008);let s=function(e){return e.LOADING="loading",e.LOADED="loaded",e.ERROR="error",e}({}),l=()=>{let{0:e,1:t}=(0,i.useState)(s.LOADING);return(0,i.useEffect)(()=>{let e=!1,a="AIzaSyANJsM_KhXHQCx6Tg5hufYhz5hR7KOTgKY";if(!a){n.A.error("Google Maps API key missing: NEXT_PUBLIC_GOOGLE_MAPS_API_KEY is not set"),t(s.ERROR);return}return new r.aH({apiKey:a,libraries:["places"]}).load().then(()=>{e||(n.A.debug("Google Maps API loaded"),t(s.LOADED))}).catch(a=>{e||(n.A.error("Error loading Google Maps API",a),t(s.ERROR))}),()=>{e=!0}},[]),[e]}},67117:(e,t,a)=>{"use strict";a.d(t,{Bq:()=>M,Cw:()=>O,DR:()=>A,Dz:()=>R,Gw:()=>_,O1:()=>j,P1:()=>q,T6:()=>H,Y0:()=>D,ag:()=>$,dg:()=>y,eA:()=>S,iZ:()=>I,nE:()=>E,td:()=>P,uN:()=>N});var i=a(66284),r=a(80352),n=a(26591),s=a.n(n),l=a(24519),o=a.n(l),c=a(79052),d=a.n(c),h=a(81475),u=a(45543),m=a(32008),p=a(99742);function g(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,i)}return a}function f(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?g(Object(a),!0).forEach(function(t){(0,i.A)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):g(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}let x={},y=["videos","papers","infographics","posts"],b=e=>d().join(p.cwd(),"public","_data",e),v=e=>[null!=e&&e.excludeContent?1:0,null!=e&&e.onlyArchive?1:0,null!=e&&e.onlyChangelog?1:0,null!=e&&e.limit?1:0,null!=e&&e.excludeSeries?1:0,null!=e&&e.keepSummary?1:0].join(""),w=(e,t)=>j(e,t,P),j=function(e){var t,a,i,r,n,s,l,c;let d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{excludeContent:!1,onlyArchive:!1,onlyChangelog:!1,excludeSeries:!1},u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:P,m=A("content_type").filter(t=>e.content_type.includes(t.id)),p=m.find(e=>0===e.parent);if(!p||(null!=d&&d.onlyArchive||null!=d&&d.onlyChangelog)&&"paper"!==p.slug||null!=d&&d.onlyArchive&&!e.archive||null!=d&&d.onlyChangelog&&!e.changelog)return null;let g=A("post_tag").filter(t=>e.tags.includes(t.id)),x=A("topic").filter(t=>e.topic.includes(t.id)),y=(0,h.CE)(e),b=(null==y||null==(t=y.sizes)||null==(t=t.medium)?void 0:t.source_url)||(null==y||null==(a=y.sizes)||null==(a=a.large)?void 0:a.source_url)||(null==y||null==(i=y.sizes)||null==(i=i.thumbnail)?void 0:i.source_url)||null,v=e.video_url??null;if(!v){let t=e.post_content.match(/(?:youtube\.com\/(?:[^\/]+\/.+\/|(?:v|e(?:mbed)?)\/|.*[?&]v=)|youtu\.be\/)([^"&?\/ ]{11})/i,"$1");t&&(v=`https://www.youtube.com/watch?v=${t[1]}`)}let w=null;null!=d&&d.excludeContent||(w=o().decode(e.post_content));let j=null;e.series&&!(null!=d&&d.excludeSeries)&&(j=u(e.series[0]));let N=Array.isArray(null==(r=e.seo)?void 0:r.desc)?e.seo.desc[0]??"":(null==(n=e.seo)?void 0:n.desc)??"",_=Array.isArray(null==(s=e.seo)?void 0:s.image)?e.seo.image[0]??"":(null==(l=e.seo)?void 0:l.image)??"";(null==e||null==(c=e.changelog)?void 0:c.length)===0&&(e.changelog=null);let S=f(f({id:e.ID,title:{rendered:o().decode(e.post_title)},slug:decodeURIComponent(e.post_name),featured:!1,featuredMedia:(null==y?void 0:y.source)??null,excerpt:{rendered:o().decode(e.post_excerpt||N)}},w&&{content:{rendered:w,raw:w}}),{},{authors:k(e.authors),thumbnail:b,type:e.post_type,tags:g,status:e.post_status,series:e.series,series_items:j,topic:x,content_type:m,date_gmt:e.post_date_gmt,images:e.images,media:y,related_items:(null==e?void 0:e.related_items)??null,video_url:"video"===p.slug?v:null,seo:{image:_,desc:N},listen:e.listen,modified:e.post_modified_gmt,modified_gmt:e.post_modified_gmt,acf:e.acf??null,archive:(null==e?void 0:e.archive)??null,changelog:(null==e?void 0:e.changelog)??null,better_featured_image:e.better_featured_image??null,read_time:e.read_time??null,transcript_summary:e.transcript_summary??null,quiz:e.quiz??null,chapters:e.chapters??null,key_points:e.key_points??null,summary_reviewed:e.summary_reviewed??null,quiz_reviewed:e.quiz_reviewed??null}),C=(0,h.ad)(S);return C&&null!=d&&d.excludeContent&&!(null!=d&&d.keepSummary)&&delete C.summary,C},k=e=>{var t;if(!e||0===e.length)return C([r.at]);let a=null==(t=C(e))?void 0:t.filter(Boolean);return a&&0!==a.length?a:C([r.at])},N=(e,t)=>{if(!e)return!1;let{archive:a,changelog:i}=e;return(null==t||!t.onlyArchive)&&!!a||(null==t||!t.onlyChangelog)&&!!i},_=e=>y.find(t=>s().existsSync(b(d().join(t,`${e}.json`))))??null,S=(e,t)=>{"getLocalPostById"in x||(x.getLocalPostById={});let a=`${e}-${v(t)}}`;if(x.getLocalPostById[a])return x.getLocalPostById[a];let i=_(e);if(!i)return null;let r=b(d().join(i,`${e}.json`));try{let e=s().readFileSync(r,"utf-8"),i=JSON.parse(e),n=w(i,t);return x.getLocalPostById[a]=n,n}catch(e){m.A.error(e)}return null},A=e=>
15{if("getLocalTerms"in x||(x.getLocalTerms={}),x.getLocalTerms[e])return x.getLocalTerms[e];let t=b(d().join(`${e}.json`));if(s().existsSync(t)){let a=JSON.parse(s().readFileSync(t,"utf-8")).map(t=>f({id:t.term_id,parent:t.parent,name:o().decode(t.name),slug:decodeURIComponent(t.slug),description:o().decode(t.description),count:t.count},"post_tag"==e&&{type:t.taxonomy}));return x.getLocalTerms[e]=a,a}return null},C=e=>("getLocalAuthorByIds"in x||(x.getLocalAuthorByIds={}),e.map(e=>{if(x.getLocalAuthorByIds[e])return x.getLocalAuthorByIds[e];let t=b(d().join("team",`${e}.json`));if(s().existsSync(t))try{let a=s().readFileSync(t,"utf-8"),i=JSON.parse(a).user,r={id:i.id,name:i.name,slug:i.slug,thumbnail:i.thumbnail,designation:i.designation,department:i.department,country:i.country};return x.getLocalAuthorByIds[e]=r,r}catch(e){m.A.error(e)}return null})),P=e=>{if("getLocalSeriesById"in x||(x.getLocalSeriesById={}),x.getLocalSeriesById[e])return x.getLocalSeriesById[e];let t=b(d().join("series",`${e}.json`));if(s().existsSync(t)){try{let a=s().readFileSync(t,"utf-8"),i=JSON.parse(a),r={excludeContent:!0,excludeSeries:!0},n=i.items.map(e=>e.id.toString()).map(e=>S(e,r)).filter(Boolean);return i.items=n,x.getLocalSeriesById[e]=i,i}catch(e){m.A.error(e)}return null}},T=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:y;"getLocalPosts"in x||(x.getLocalPosts={});let a=`${v(e)}-${t.join("-")}`;if(x.getLocalPosts[a])return x.getLocalPosts[a];let i=[];return t.forEach(t=>{let a=x.getLocalPosts[t]??s().readdirSync(b(t)).filter(e=>e.endsWith(".json")).map(e=>Number(e.replace(".json",""))).sort((e,t)=>t-e);x.getLocalPosts[t]||(x.getLocalPosts[t]=a),a.forEach(a=>{if(null!=e&&e.limit&&i.length>=e.limit)return;let r=w(JSON.parse(s().readFileSync(b(d().join(t,`${a}.json`)),"utf-8")),e);r&&(N(r,e)||i.push(r))})}),x.getLocalPosts[a]=i,i},O=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;"getLocalPostsByTopicSlug"in x||(x.getLocalPostsByTopicSlug={});let a=`${e}-${v(t)}`;if(a in x.getLocalPostsByTopicSlug)return x.getLocalPostsByTopicSlug[a];let i=T(t).filter(t=>!!t.topic.find(t=>t.slug===e));return x.getLocalPostsByTopicSlug[a]=i,i},E=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:y;"getLocalPostsByTagSlug"in x||(x.getLocalPostsByTagSlug={});let i=`${e}-${v(t)}-${a.join("-")}`;if(i in x.getLocalPostsByTagSlug)return x.getLocalPostsByTagSlug[i];let r=A("post_tag").find(t=>t.slug===e);if(!r)return x.getLocalPostsByTagSlug[i]=[],[];let n=e=>!!e.tags.find(e=>e.id===r.id),l=a;if("featured-read"===e?l=["papers"]:"featured-watch"===e?l=["videos"]:"featured-infographic"===e&&(l=["infographics"]),(i=`${e}-${v(t)}-${l.join("-")}`)in x.getLocalPostsByTagSlug)return x.getLocalPostsByTagSlug[i];let o=[...T(t,l).filter(n),...(()=>{if(x.getLocalAllSeries)return x.getLocalAllSeries;let e=s().readdirSync(b(d().join("series"))).map(e=>{let t=b(d().join("series",e));if(s().existsSync(t)){try{let e=s().readFileSync(t,"utf-8");return JSON.parse(e)}catch(e){m.A.error(e)}return null}}).filter(Boolean);return x.getLocalAllSeries=e,e})().filter(n).map(e=>{let t=e.items.slice(0,1).pop();return t.title=e.name,t.tags&&delete e.tags,f(f({},t),e)})].sort((e,t)=>new Date(t.date).getTime()-new Date(e.date).getTime());return x.getLocalPostsByTagSlug[i]=o,o},I=()=>{if(x.getLocalSections)return x.getLocalSections;let e=b("section.json");if(s().existsSync(e))try{let t=JSON.parse(s().readFileSync(e,"utf-8"));return x.getLocalSections=t,t}catch(e){m.A.error(e)}return null},D=["id","name","slug","description","order","units"],q=["id","name","slug","description","sections"],M=()=>{try{let e=b("curriculum_topics.json"),t=s().readFileSync(e,"utf-8"),a=JSON.parse(t);for(let e of a){let t=D.filter(t=>{let a=e[t];return"order"===t?null==a:!(t in e)||!a});if(t.length>0)return m.A.error(`Missing required fields [${t.join(", ")}] in local curriculum topics`,{component:"CurriculumAPI",topicId:e.id,missingFields:t}),null}return a}catch(e){return m.A.error("Failed to load local curriculum topics",{component:"CurriculumAPI",error:e.message}),null}},$=(e,t)=>{for(let a of e){let e=a.units.find(e=>e.slug===t);if(e)return e.id}return null},H=e=>(0,u.L)("curriculum_units",e,"CurriculumAPI",q),R=e=>{try{let t=M();if(!t)return null;let a=$(t,e);if(!a)return m.A.log("Unit not found in local topics data",{component:"CurriculumAPI",slug:e}),null;return H(a)}catch(t){return m.A.error("Failed to load local curriculum unit",{component:"CurriculumAPI",slug:e,error:t.message}),null}}},67153:(e,t,a)=>{"use strict";a.d(t,{Ex:()=>I,gu:()=>D,WS:()=>T,Yd:()=>q});var i=a(66284),r=a(14232),n=a(89099),s=a(97114),l=a(95311),o=a(14742),c=a(72117),d=a(52916),h=a(69158),u=a(71829),m=a(32984),p=a(18012),g=a(32008),f=a(38369),x=a(41205),y=a.n(x),b=a(65083),v=a(8218),w=a(69174),j=a(6143),k=a(55850),N=a(51348),_=a(28734),S=a(37876);function A(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,i)}return a}function C(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};
15t%2?A(Object(a),!0).forEach(function(t){(0,i.A)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):A(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}let P=e=>{let{state:t,hasBanner:a}=e,i=(0,_.ox)(),o=(0,n.useRouter)(),{pathname:h}=o,{appendURLParam:m}=(0,u.W)(),{firebaseAuth:x}=(0,b.m9)(),{handleLogout:y}=x;(0,r.useEffect)(()=>{g.A.addContext({is_mobile:i?"yes":"no"})},[i]);let v=(e,t)=>{if(h===e||h.startsWith("/dashboard/donations")&&"Donations"===t)return!0},A=(0,r.useRef)(),{overlayProps:P}=(0,l.e)({onClose:()=>t.close(),shouldCloseOnBlur:!0,isOpen:t.isOpen,isDismissable:!0},A),T=(0,k.Lo)(["absolute right-0 w-76 bg-white shadow-xl z-20",a?"xl:top-28 top-32":"xl:top-14 top-12"]);return(0,S.jsx)(s.n1,{restoreFocus:!0,children:(0,S.jsx)(d.m.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:10},className:T,onMouseOver:()=>t.open(),onMouseLeave:()=>t.close(),children:(0,S.jsxs)("div",C(C({id:"overlay",ref:A},P),{},{children:[(0,S.jsx)(l.Rz,{onDismiss:()=>t.close()}),(0,S.jsx)(S.Fragment,{children:(0,S.jsx)("div",{className:"absolute right-0 md:w-56 w-52 bg-white shadow-lg border rounded-md md:mr-4 mr-2",children:(0,S.jsxs)("div",{className:"py-3 divide-y divide-grey-100",children:[(0,S.jsx)("div",{className:"space-y-1 pb-2",children:c.Y.primary.map((e,t)=>(0,S.jsx)(w.$n,{type:"button",className:(0,N.x)(v(e.path,e.name)?"bg-carrot-50":"bg-white hover:bg-carrot-50",`nav-${e.id}`,"flex items-center px-4 text-left w-full py-2"),id:`nav-${e.id}`,onPress:()=>{(0,p.$s)(`nav_${e.id}`,"click"),f.A.push(e.path)},children:(0,S.jsx)(w.EY,{fontSize:"text-sm",weight:"font-semibold",color:"text-gray-700 hover:text-gray-900",lineHeight:"leading-5",children:e.name})},t))}),(0,S.jsx)("div",{children:c.Y.secondary.map((e,a)=>(0,S.jsx)(w.$n,{type:"button",id:`nav-${e.id}`,className:(0,N.x)(v(e.path,e.name)?"bg-carrot-50":"bg-white hover:bg-carrot-50","flex items-center px-4 text-left w-full py-2"),onPress:()=>{(0,p.$s)(`nav_${e.id}`,"click"),"logout"===e.id?(t.close(),(()=>{j.Cj.removeItem(j.UT.AuthPersonalizedPosts);let e=o.pathname.startsWith("/dashboard");e&&m("skipAuthPrompt","true"),y({onSuccess:()=>{e&&(window.location.href="/")}})})()):f.A.push(e.path)},children:(0,S.jsx)(w.EY,{fontSize:"text-sm",color:"text-gray-700 hover:text-gray-900",lineHeight:"leading-5",children:e.name})},a))})]})})}),(0,S.jsx)(l.Rz,{onDismiss:()=>t.close()})]}))})})},T=e=>{let{hasBanner:t}=e,a=(0,o.T)({}),[i]=(0,v.As)(m.jO.auth()),{firebaseAuth:r}=(0,b.m9)(),{initAuth:n}=r;return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsxs)("div",{className:"flex items-center h-full relative",onMouseOver:()=>{i?((0,p.$s)("user_avatar","hover"),a.open()):a.close()},onMouseLeave:()=>a.close(),children:[" ",(0,S.jsx)(w.$n,{"aria-label":i?"Profile menu":"Auth menu",onPress:()=>{(0,p.$s)("user_avatar","click"),i?a.isOpen?a.close():a.open():n()},className:"px-3 h-full relative",children:O(i)}),a.isOpen&&(0,S.jsx)("div",{id:"nav-active-line",className:"absolute h-1 bottom-0 inset-x-0 bg-carrot-500"})]}),(0,S.jsx)(h.N,{children:a.isOpen&&i&&(0,S.jsx)(P,{state:a,hasBanner:t})})]})},O=e=>e?null!=e&&e.photoURL?(0,S.jsx)("img",{height:36,width:36,src:null==e?void 0:e.photoURL,alt:`${null==e?void 0:e.displayName} profile`,className:"rounded-full object-cover"}):(0,S.jsx)("div",{className:"text-white",children:(0,S.jsx)(y(),{size:"36",name:e.displayName||"Yaqeen User"})}):(0,S.jsxs)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,S.jsx)("path",{d:"M16 0C7.16129 0 0 7.16129 0 16C0 24.8387 7.16129 32 16 32C24.8387 32 32 24.8387 32 16C32 7.16129 24.8387 0 16 0ZM16 6.19355C17.1229 6.19355 18.2206 6.52652 19.1542 7.15037C20.0879 7.77421 20.8155 8.6609 21.2453 9.69831C21.675 10.7357 21.7874 11.8773 21.5683 12.9786C21.3493 14.0799 20.8085 15.0915 20.0145 15.8855C19.2205 16.6795 18.2089 17.2202 17.1076 17.4393C16.0063 17.6584 14.8648 17.5459 13.8273 17.1162C12.7899 16.6865 11.9032 15.9588 11.2794 15.0252C10.6556 14.0915 10.3226 12.9939 10.3226 11.871C10.3226 10.3652 10.9207 8.92115 11.9855 7.85643C13.0502 6.7917 14.4943 6.19355 16 6.19355ZM16 28.3871C14.1992 28.3864 12.4202 27.9922 10.7877 27.2322C9.15507 26.4722 7.70824 25.3647 6.54839 23.9871C7.76129 21.7032 10.1355 20.129 12.9032 20.129C13.0586 20.1303 13.2129 20.1542 13.3613 20.2C15.0704 20.7935 16.9296 20.7935 18.6387 20.2C18.7871 20.1542 18.9414 20.1303 19.0968 20.129C21.8645 20.129 24.2387 21.7032 25.4516 23.9871C24.2918 25.3647 22.8449 26.4722 21.2123 27.2322C19.5798 27.9922 17.8008 28.3864 16 28.3871Z",fill:"#B0B3B8"}),(0,S.jsx)("path",{d:"M16.0001 17.5485C17.123 17.5485 18.2207 17.2156 19.1543 16.5917C20.088 15.9679 20.8157 15.0812 21.2454 14.0438C21.6751 13.0063 21.7875 11.8648 21.5685 10.7635C21.3494 9.66219 20.8087 8.65057 20.0147 7.85656C19.2207 7.06256 18.209 6.52184 17.1077 6.30278C16.0064 6.08371 14.8649 6.19615 13.8275 6.62586C12.7901 7.05557 11.9034 7.78325 11.2795 8.7169C10.6557 9.65055 10.3227 10.7482 10.3227 11.8711C10.3227 13.3769 10.9209 14.8209 11.9856 15.8857C13.0503 16.9504 14.4944 17.5485 16.0001 17.5485ZM19.0969 20.1292C18.9416 20.1304 18.7873 20.1543 18.6388 20.2001C16.9298 20.7937 15.0705 20.7937 13.3614 20.2001C13.213 20.1543 13.0587 20.1304 12.9033 20.1292C10.1356 20.1292 7.76141 21.7034 6.54851 23.9872C10.9401 29.2072 18.7317 29.8789 23.9517 25.4872C24.4937 25.031 24.9955 24.5292 25.4517 23.9872C24.2388 21.7034 21.8646 20.1292 19.0969 20.1292Z",fill:"white"})]});var E=a(18125);a(51097);let I=e=>{let{text:t}=e;return(0,S.jsx)("div",{className:"flex items-center rounded-full bg-supernova uppercase px-3 h-5",children:(0,S.jsx)(w.EY,{weight:"font-bold",fontSize:"text-xss",color:"text-grey-900/50",lineHeight:"leading-none",children:t})})},D=()=>(0,S.jsxs)("svg",{className:"xl:w-10 w-8 xl:h-10 h-8",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",children:[(0,S.jsx)("path",{d:"M28.321 10.89C26.057 4.085 18.706.404 11.901 2.668c-6.805 2.264-10.486 9.615-8.222 16.42 2.252 6.771 9.544 10.449 16.32 8.255l-2.06-1.832c-5.166.958-10.378-2.014-12.084-7.141-1.863-5.604 1.167-11.657 6.77-13.521 5.604-1.864 11.657 1.168 13.521 6.77a10.68 10.68 0 01-1.49 9.654l.817 2.6A12.98 12.98 0 0028.32 10.89z",fill:"#fff"}),(0,S.jsx)("path",{d:"M17.294 18.877a4.098 4.098 0 11-2.587-7.777 4.098 4.098 0 012.587 7.777zm7.016 6.093l-1.235-4.032a9.239 9.239 0 00-9.99-14.711 9.24 9.24 0 004.949 17.78l3.536 2.712L25.848 30l-1.538-5.03z",fill:"#F38E1C"})]});a(82410);let q=e=>{let{title:t,category:a,href:i,analytic:r}=e;return(0,S.jsxs)("div",{className:"mb-6",children:[(0,S.jsx)("div",{className:"flex items-center",children:(0,S.jsx)(w.qh,{href:i,onClick:()=>{(0,p.$s)(r,"click",`item_name: ${t}, type: Topic, section: Topics`)},prefetch:!1,children:(0,S.jsxs)(w.DZ,{weight:"font-bold",children:[(0,S.jsxs)("span",{className:"mr-3",children:[t," "]}),(0,S.jsx)(E.g,{icon:"chevron-right",size:"sm",className:"text-carrot-500"})]})})}),(0,S.jsx)("div",{className:"suggestion-topic",children:(0,S.jsx)("ul",{children:a.map((e,t)=>(0,S.jsx)("li",{children:(0,S.jsx)(w.qh,{href:e.href,onClick:()=>{(0,p.$s)(r,"click",`item_name: ${e.title}, type: Subtopic, section: Topics`)},prefetch:!1,children:(0,S.jsx)(w.EY,{fontSize:"text-sm",letterSpacing:"tracking-tight-1",lineHeight:"leading-tight",color:"text-grey-700",children:e.title})})},t))})})]})}},67579:(e,t,a)=>{"use strict";a.r(t),a.d(t,{Accordion:()=>tH.A,AccountFilter:()=>aA,AdditionalResources:()=>ic,Angels2Banner:()=>t5,AngelsSurvey:()=>ar,AudioProducedBy:()=>t1.ob,AuthorView:()=>tW,Blog:()=>iY,Card:()=>
15ai.Zp,CardAuthor:()=>ai.EJ,CardCarousel:()=>ax.TJ,CardCategory:()=>ai.fo,CardDescription:()=>ai.BT,CardFooter:()=>ai.wL,CardTitle:()=>ai.ZB,ChargeDetail:()=>aq,Commentary:()=>t1.kx,Content:()=>t1.Ay,ConvertImage:()=>t1.Zk,CookieBanner:()=>an.h2,CurriculumUnitContent:()=>a9,CurriculumUnitHeader:()=>is,CurriculumUnitIntro:()=>il,DashboardLayout:()=>an.NI,DisplayCard:()=>ai.jw,DisplayPostsWithPillars:()=>ai.Tr,DonateCTA:()=>t1.sp,DonationDetailsForm:()=>tb,DonationHistoryDesktop:()=>aM,DonationHistoryMobile:()=>a$,DonorPortalAnnualReceipts:()=>aO,DonorPortalFAQs:()=>aR,DownloadFormatButton:()=>t1.OV,DownloadPDFButton:()=>t1.Nu,Duration:()=>ai.dw,EBooks:()=>ih,EmailConfirmationForm:()=>t3,EmailOption:()=>t9,FeaturedPodcast:()=>as.X,FederatedOptionList:()=>ae,FollowButton:()=>aU.W,Footer:()=>t0,FootnotePopover:()=>t1.OB,FullNameForm:()=>at,FundraisingPhilosophy:()=>tO,GalleryReports:()=>ax.ec,GuidedDonate:()=>aB,Hero:()=>as.l,HighlightCard:()=>ai.xs,HighlightLeftSide:()=>ai.Fu,HomePageHeader:()=>ib,HomePageProvider:()=>iM,Infographics:()=>iv,KeyTakeaways:()=>t$,LiteYouTubeEmbed:()=>ac.ny,LoadingPodcastMain:()=>al,LoadingSearch:()=>ao,LoginModal:()=>aa.LoginModal,MainWebContentLayout:()=>an.pO,MainWebLayout:()=>an.ms,NoDonationsHeader:()=>az,NoDonationsHistory:()=>aF,OpenInAppButton:()=>t1.Xr,OtherUnits:()=>aG,PageHeader:()=>an.zY,Papers:()=>iw,PersonalizedCard:()=>iF,PersonalizedContentLoadingCard:()=>iH,PersonalizedHeader:()=>iL,PersonalizedLayout:()=>i$,PersonalizedMediumSelection:()=>i_,PersonalizedTopicsOptions:()=>iS,PillarShareButton:()=>ac.wF,PillarsCarousel:()=>ac.cH,PillarsMediaCaption:()=>ac.Az,Popup:()=>af,PostAudioPlayer:()=>t1.Ee,PostBreadcrumb:()=>t2.g,PostSharePlatform:()=>t1.z1,PostSharePlatformDropdown:()=>t1.iK,PostToC:()=>t1.tH,ProductBanner:()=>iA,ProfileForm:()=>a1,RefundModalContent:()=>aN,RelatedItems:()=>a5,RenderPillarPost:()=>ac.vc,ReportContent:()=>ax.yA,SectionTitle:()=>ay._x,ShareMoreOptions:()=>t1.fL,ShareThis:()=>iO,SiftUserBehaviourTracker:()=>tA,Spinner:()=>aY,SpotlightCompass:()=>iB.j,StopSubscriptionModal:()=>a_,StyledCurrency:()=>aD.B,SubscribeCTA:()=>t1.vq,SubscribeNewsletter:()=>t1.kj,TenReasonsToDonate:()=>tD,TitleBar:()=>ay.cq,TitleDescription:()=>ay.tg,TranscriptSection:()=>t1.SD,TranscriptSegment:()=>t1.Ku,Translation:()=>t1.wD,Videos:()=>iE,VolunteerCarousel:()=>av,YearEndHeroSection:()=>tl,useHomePageContext:()=>iN});var i=a(66284),r=a(85572),n=a(14232),s=a(89099),l=a(18125),o=a(22242),c=a(35149),d=a(18012),h=a(75625),u=a(69086),m=a(43445),p=a(48492),g=a(96370),f=a(69174),x=a(59427),y=a(61902),b=a(80331),v=a(59860),w=a(18334),j=a(54898),k=a(731),N=a(72585),_=a(41639);let S=()=>(0,n.useContext)(_.A);var A=a(55850),C=a(32008);let P=async e=>{let t=await e;if(t.error)throw t.error;return t},T=async(e,t,i)=>{if(!i.donation_session_id)try{let{getOrCreateSessionId:e}=a(72585),t=e();t&&(i.donation_session_id=t)}catch{}C.A.log(`calling ${t}`,i);try{return await P(x.GO(t,i))}catch(r){w.Cp(r,{tags:{"donate.step":`stripe-api:${t}`},contexts:{donation:{action:e,endpoint:t,account:i.account,testMode:i.testMode}}}),C.A.error(`Error ${e}`,{error:r});let a=Error((null==r?void 0:r.message)||("string"==typeof r?r:"Something went wrong"));throw a.code=null==r?void 0:r.code,a.decline_code=null==r?void 0:r.decline_code,a.type=null==r?void 0:r.type,a.payment_intent=null==r?void 0:r.payment_intent,a.subscription=null==r?void 0:r.subscription,a.subscription_schedule=null==r?void 0:r.subscription_schedule,a.stripe_request_log_url=null==r?void 0:r.stripe_request_log_url,a}},O=async e=>{let{productId:t,amount:a,currencyCode:i,account:r,testMode:n,interval:s}=e;return T("in creating price","/api/v1/donate/stripe/create-price",{productId:t,unitAmount:x.Ad(a),currency:i,account:r,testMode:n,interval:s})},E=async e=>{let{productId:t,amounts:a,account:i,testMode:r,interval:n,currency:s,metaData:l,captchaToken:o}=e;return T("in getting prices","/api/v1/donate/stripe/list-prices",{productId:t,unitAmounts:a.map(e=>x.Ad(e)),account:i,testMode:r,interval:n,currency:s,metaData:l,token:o})},I=async e=>{let{customerData:t,account:a,currency:i,donationType:r,testMode:n}=e;return T("while fetching/creating customer","/api/v1/donate/stripe/get-customer",{customerData:t,account:a,currency:i,donationType:r,testMode:n})},D=async e=>{let{customer:t,paymentMethodId:a,priceId:i,account:r,metaData:n,testMode:s,donation_session_id:l}=e;return T("while creating subscription","/api/v1/donate/stripe/create-subscription",{customer:t,paymentMethodId:a,priceId:i,account:r,metaData:n,testMode:s,donation_session_id:l})},q=async e=>{let{customer:t,paymentMethodId:a,startDate:i,account:r,phases:n,metaData:s,testMode:l,donation_session_id:o}=e;return T("while creating subscription schedule","/api/v1/donate/stripe/create-subscription-schedule",{customer:t,paymentMethodId:a,startDate:i,account:r,phases:n,metaData:s,testMode:l,donation_session_id:o})},M="Something went wrong. Please try again.",$=e=>{if(e instanceof Error)return e;if("string"==typeof e)return Error(e||M);let t=e??{},a=Error(t.message||M);return a.code=t.code,a.type=t.type,a.decline_code=t.decline_code,a.request_log_url=t.request_log_url,a};var H=a(57279);let R=e=>{switch(e){case g.ZU.OneTime:return"One Time";case g.ZU.Monthly:return"Monthly";case g.ZU.DhulHijjah:return"Dhul Hijjah";case g.ZU.LastTenNights:return"Last Ten Nights";case g.ZU.GreetRamadanWithSadaqah:return"Sadaqah";case g.ZU.Ramadan27:return"27th Night";default:return"Donation"}};var z=a(63426);let F=e=>{if(null==e||""===e)return;let t=(0,z.createHash)("sha256").update(String(e)).digest("hex").slice(0,12);return`hash-${t}`};function Y(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,i)}return a}function L(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};
15t%2?Y(Object(a),!0).forEach(function(t){(0,i.A)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Y(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}let B=async e=>{let{productId:t,amount:a,currency:i,interval:r,account:n,testMode:s,metaData:l,captchaToken:o}=e,c=await E({productId:t,amounts:[a],interval:r,currency:i.code,account:n,testMode:s,metaData:l,captchaToken:o});if(!c)return C.A.error("No prices found",{productId:t,amount:a,currency:i,interval:r,account:n,testMode:s}),null;let d=x.Ad(a),h=c.find(e=>e.unit_amount===d);if(h)return C.A.log("Found price",{price:h}),h.id;C.A.log("Creating new price",{productId:t,amount:a,currency:i,interval:r,account:n,testMode:s});let u=await O({productId:t,amount:a,currencyCode:i.code,account:n,testMode:s,interval:r});return C.A.log("Created price",{price:u}),(null==u?void 0:u.id)??null},U=async e=>{let{donationType:t,productId:a,amount:i,currency:r,account:n,testMode:s,metaData:l,paymentAmounts:o,paymentSchedule:c,splitAmount:d,captchaToken:h}=e,u=[g.ZU.Daily,g.ZU.Weekly,g.ZU.Monthly,g.ZU.GreetRamadanWithSadaqah],m={[g.ZU.Daily]:"day",[g.ZU.Weekly]:"week",[g.ZU.Monthly]:"month",[g.ZU.GreetRamadanWithSadaqah]:"day"};if(u.includes(t)){let e=await B({productId:a,amount:i,currency:r,interval:m[t],account:n,testMode:s,metaData:l,captchaToken:h});return e?[e]:null}return(0,x.a7)(t)?W({paymentAmounts:o,paymentSchedule:c,splitAmount:d,productId:a,currency:r,account:n,testMode:s,metaData:l,captchaToken:h}):null},W=async e=>{let t,a,{paymentAmounts:i,paymentSchedule:r,splitAmount:n,productId:s,currency:l,account:o,testMode:c,metaData:d,captchaToken:h}=e,u=r.find(e=>27===e.nightOfRamadan);n===g.vq.MoreOn27th&&u?(t=i.moreOn27th.amountNormal,a=i.moreOn27th.amount27th):n===g.vq.MoreOnOdd?(t=i.moreOnOdd.amountFirstDay,a=i.moreOnOdd.amountSecondDay):t=i.equally.amount;let m=n!==g.vq.Equally&&!(n===g.vq.MoreOn27th&&!u),p=m?[t,a]:[t],f=await E({productId:s,amounts:p,interval:"day",currency:l.code,account:o,testMode:c,metaData:d,captchaToken:h});if(!f)return null;let y=x.Ad(t),b=f.find(e=>e.unit_amount===y)||await O({productId:s,amount:t,currencyCode:l.code,interval:"day",account:o,testMode:c}),v=null==b?void 0:b.id,w=null;if(m){let e=x.Ad(a),t=f.find(t=>t.unit_amount===e)||await O({productId:s,amount:a,currencyCode:l.code,interval:"day",account:o,testMode:c});w=null==t?void 0:t.id}return[v,w].filter(e=>null!==e)},G=async e=>{let{stripe:t,data:a,elements:i,metaData:r}=e;C.A.log("Creating payment method",{data:a});let n={elements:i,params:L({billing_details:{name:a.name,phone:a.phone,email:a.email,address:a.address}},r&&{metadata:r})};try{let e=await t.createPaymentMethod(n);if(e.error)throw C.A.error("Error while creating payment method:",{error:e,emailHash:F(a.email)}),(0,N.trackDonationEvent)("payment_failed_client",{payment_method:(0,N.normalizePaymentMethod)(null==r?void 0:r.payment_method)||"card",error_code:e.error.code||e.error.type||"create_payment_method_error",decline_code:e.error.decline_code,error_message:e.error.message||"Failed to create payment method",stripe_request_log_url:e.error.request_log_url||void 0}),$(e.error);return C.A.log("Payment method created successfully",{result:e}),e.paymentMethod}catch(e){throw w.Cp(e,{tags:{"donate.step":"payment-utils:create-payment-method"},contexts:{donation:{paymentMethod:null==r?void 0:r.payment_method,emailHash:F(a.email)}}}),C.A.error("Error while creating payment method",{err:e,emailHash:F(a.email)}),$(e)}},Z=e=>{let{customer:t,paymentMethodId:a,startDate:i,phases:r,email:n=null,paymentMode:s,gpayEvent:l=null,amount:o,account:c,metaData:d,testMode:h,onSuccess:u,onError:m}=e,p=s===g.Iu.Gpay?x.a4(l.paymentMethod):"cc";return q({customer:t,paymentMethodId:a,startDate:i,account:c,phases:r,metaData:L(L({},d),{},{payment_method:p}),testMode:h,donation_session_id:(0,N.getOrCreateSessionId)()}).then(e=>u(s,e,l,n,o)).catch(e=>(w.Cp(e,{tags:{"donate.step":"payment-utils:create-subscription-schedule","donate.account":c,"donate.paymentMode":s},contexts:{donation:{account:c,amount:o,customerIdHash:F(t),paymentMethodIdHash:F(a),paymentMode:s,paymentMethod:p,emailHash:F(n),recurring:!0}}}),(0,N.trackDonationEvent)("payment_failed_client",{payment_method:(0,N.normalizePaymentMethod)(p)||"card",error_code:(null==e?void 0:e.code)||(null==e?void 0:e.type)||"subscription_schedule_failed",decline_code:null==e?void 0:e.decline_code,error_message:"string"==typeof e?e:(null==e?void 0:e.message)||"Subscription schedule failed",gateway_transaction_id:(null==e?void 0:e.subscription_schedule)||void 0,stripe_request_log_url:(null==e?void 0:e.stripe_request_log_url)||void 0}),m(s,l)))},Q=async e=>{var t;let{customer:a,paymentMethodId:i,priceId:r,email:n=null,paymentMode:s,gpayEvent:l=null,account:o,metaData:c,testMode:d,onSuccess:h,onError:u,totalAmount:m,stripe:p}=e,f=s===g.Iu.Gpay&&l?x.a4(l.paymentMethod):s===g.Iu.UsBankAccount?g.Iu.UsBankAccount:g.Iu.CC;try{let e=await D({customer:a,paymentMethodId:i,priceId:r,account:o,metaData:L(L({},c),{},{payment_method:f}),testMode:d,donation_session_id:(0,N.getOrCreateSessionId)()});if("incomplete"===e.status&&f===g.Iu.CC){let{error:t}=await p.handleNextAction({clientSecret:e.clientSecret});if(t){C.A.error("Error confirming subscription payment",{error:t}),u(s,l);return}}if(f===g.Iu.UsBankAccount&&e){let{paymentIntent:a,error:i}=await p.confirmUsBankAccountPayment(e.clientSecret);
15if(i){C.A.error("Error confirming bank account payment",{error:i}),u(s,l);return}switch(a.status){case"requires_payment_method":C.A.log("Bank account confirmation failed"),u(s,l);return;case"processing":C.A.log("Bank account payment is processing"),h(s,e,l,n,m);return;default:if((null==(t=a.next_action)?void 0:t.type)==="verify_with_microdeposits"){C.A.log("Bank account needs microdeposit verification"),h(s,e,l,n,m);return}}}h(s,e,l,n,m)}catch(e){return w.Cp(e,{tags:{"donate.step":"payment-utils:create-subscription","donate.account":o,"donate.paymentMode":s},contexts:{donation:{account:o,amount:m,customerIdHash:F(a),paymentMethodIdHash:F(i),priceIdHash:F(r),paymentMode:s,paymentMethod:f,emailHash:F(n),recurring:!0}}}),(0,N.trackDonationEvent)("payment_failed_client",{payment_method:(0,N.normalizePaymentMethod)(f)||"card",error_code:(null==e?void 0:e.code)||(null==e?void 0:e.type)||"subscription_failed",decline_code:null==e?void 0:e.decline_code,error_message:"string"==typeof e?e:(null==e?void 0:e.message)||"Subscription failed",gateway_transaction_id:(null==e?void 0:e.subscription)||void 0,stripe_request_log_url:(null==e?void 0:e.stripe_request_log_url)||void 0}),u(s,l)}},V=async e=>{var t;let{customerData:a,donationType:i,stripe:r,elements:n,metaData:s,productId:l,totalAmount:c,currency:d,account:h,testMode:u,paymentAmounts:m,paymentSchedule:p,splitAmount:f,timezone:y,ltnTime:b,GRWSTime:v,onSuccess:w,onError:j,captchaToken:k,setApiError:N}=e,_=await G({stripe:r,data:a,elements:n,metaData:L(L({},s),{},{payment_method:"cc"})});if((null==_||null==(t=_.card)?void 0:t.country)==="IN"){N(o.oE),C.A.log("Recurring donation attempted by Indian card",{payment_method:"cc",customerData:a,donationType:i,totalAmount:c,currency:d,card:_.card,metaData:s});return}let S=await U({donationType:i,productId:l,amount:c,currency:d,account:h,testMode:u,metaData:s,paymentAmounts:m,paymentSchedule:p,splitAmount:f,captchaToken:k});C.A.log("Price Id Array",{priceIdHashes:S.map(e=>F(e))});let A=await I({customerData:{name:a.name,email:a.email,phone:a.phone,address:a.address},currency:d,donationType:i,account:h,testMode:u,card:_.card});if(C.A.log("Customer",{customer:A}),[g.ZU.Daily,g.ZU.Weekly,g.ZU.Monthly].includes(i))await Q({customer:A,paymentMethodId:null==_?void 0:_.id,priceId:S[0],email:a.email,paymentMode:s.payment_method===g.Iu.UsBankAccount?g.Iu.UsBankAccount:g.Iu.CC,account:h,metaData:s,testMode:u,onSuccess:w,onError:j,totalAmount:c,stripe:r});else if((0,x.a7)(i)){let e=(0,H.cN)(i===g.ZU.GreetRamadanWithSadaqah?v:b,y.offsetHrs,y.offsetMinutes),t=i===g.ZU.GreetRamadanWithSadaqah?x.u0(S[0]):x.vx(f,S,p.length);await Z({customer:A,paymentMethodId:null==_?void 0:_.id,startDate:e,phases:t,email:a.email,paymentMode:g.Iu.CC,amount:c,account:h,metaData:s,testMode:u,onSuccess:w,onError:j})}},K=async e=>{let{amount:t,event:a,currency:i,donationType:r,account:n,testMode:s,metaData:l,stripe:o,onSuccess:c}=e,{paymentMethod:d}=a,{name:h,email:u,phone:m,address:p}=d.billing_details,f=x.Ot(u),y=await I({customerData:{name:h,email:f,phone:m,address:p},currency:i,donationType:r,account:n,testMode:s});C.A.log("Gpay/Apple Pay: Customer",{customer:y});let b=await fetch("/api/v1/donate/stripe/pay",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({payment_method_id:d.id,customer_id:y.id,amount:t,currency:i.co
15de,account:n,testMode:s,metaData:L(L({},l),{},{payment_method:x.a4(d)}),statementDescriptorSuffix:R(g.ZU.OneTime),donation_session_id:(0,N.getOrCreateSessionId)()})}).then(e=>e.json());C.A.log("Gpay/Apple Pay: /pay response",{paymentResponse:b});let v=await J(o,b,n,s,a);if(C.A.log("Gpay/Apple Pay: /pay response handled",{result:v}),v.success)c(b.payment_intent_id,f);else throw C.A.error("Gpay/Apple Pay: Error while charging card",{err:v.error,emailHash:F(u)}),"Payment failed. Please try again."},J=async(e,t,a,i,r)=>{try{if(C.A.log("handleOneTimeChargeServerResponse() input",{response:t}),t.error)return null==r||r.complete("fail"),{success:!1,error:t.error};if(t.success)return null==r||r.complete("success"),{success:!0};if(t.requires_action){null==r||r.complete("success");let{error:n,paymentIntent:s}=await e.handleNextAction({clientSecret:t.payment_intent_client_secret});if(n)return C.A.error("handleOneTimeChargeServerResponse() stripe handleCardAction error",{errorAction:n}),{success:!1,error:n};if("succeeded"===s.status)return{success:!0};let l=await fetch("/api/v1/donate/stripe/pay",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({payment_intent_id:s.id,account:a,testMode:i,donation_session_id:(0,N.getOrCreateSessionId)()})}).then(e=>e.json());return C.A.log("handleOneTimeChargeServerResponse() /pay result",{serverResponse:l}),J(e,l,a,i,r)}if("processing"===t.status)return null==r||r.complete("success"),{success:!0,status:"processing"};return null==r||r.complete("success"),{success:!0}}catch(e){return w.Cp(e,{tags:{"donate.step":"payment-utils:handle-one-time-charge-response","donate.account":a},contexts:{donation:{account:a,testMode:i,paymentIntentIdHash:F(null==t?void 0:t.payment_intent_id),responseStatus:null==t?void 0:t.status}}}),C.A.error("handleOneTimeChargeServerResponse() caught error",{err:e}),{success:!1,error:e}}},X=async e=>{var t;let{event:a,donationType:i,currency:r,account:n,testMode:s,productId:l,totalAmount:c,metaData:d,paymentAmounts:h,paymentSchedule:u,splitAmount:m,onSuccessSubscription:p,onErrorSubscription:f,grwsTime:y,ltnTime:b,timezone:v,setApiError:w,stripe:j}=e,{paymentMethod:k}=a;if((null==k||null==(t=k.card)?void 0:t.country)==="IN"){w(o.oE),C.A.log("Recurring donation attempted by Indian card",{payment_method:"gpay/apple-pay",donationType:i,totalAmount:c,currency:r,card:k.card,metaData:d,customerData:k.billing_details});return}let{name:N,email:_,phone:S,address:A}=k.billing_details,P=await I({customerData:{name:N,email:x.Ot(_),phone:S,address:A},currency:r,donationType:i,account:n,testMode:s});C.A.log("handleSubscriptionGpay() customer",{customer:P});let T=await U({donationType:i,productId:l,amount:c,currency:r,account:n,testMode:s,metaData:d,paymentAmounts:h,paymentSchedule:u,splitAmount:m});if(C.A.log("handleSubscriptionGpay() priceIdArray",{priceIdHashes:T.map(e=>F(e))}),i===g.ZU.Monthly)await Q({customer:P,paymentMethodId:k.id,priceId:T[0],paymentMode:g.Iu.Gpay,gpayEvent:a,account:n,metaData:d,testMode:s,onSuccess:p,onError:f,totalAmount:c,stripe:j});else if((0,x.a7)(i)){let e=(0,H.cN)(i===g.ZU.GreetRamadanWithSadaqah?y:b,v.offsetHrs,v.offsetMinutes),t=i===g.ZU.GreetRamadanWithSadaqah?x.u0(T[0]):x.vx(m,T,u.length);await Z({customer:P,paymentMethodId:k.id,startDate:e,phases:t,email:_,paymentMode:g.Iu.Gpay,gpayEvent:a,amount:c,account:n,metaData:d,testMode:s,onSuccess:p,onError:f})}},ee=async e=>{let{customerData:t,captchaToken:a,paymentMethod:i,donationType:r,stripe:n,elements:s,metaData:l,totalAmount:o,currency:c,account:d,testMode:h,onPaymentSuccess:u,onPaymentError:m}=e;if(!h&&t.email.endsWith("@example.com"))return void m("Payment failed.",i,t.email);let p=await G({stripe:n,data:{name:t.name,phone:t.phone,email:t.email,address:t.address},elements:s,metaData:L(L({},l),{},{payment_method:i})}),g=await I({customerData:t,currency:c,donationType:r,account:d,testMode:h,card:p.card});C.A.log("customer",g);try{let e={payment_method_id:p.id,customer_id:g.id,amount:o,currency:c.code,account:d,testMode:h,metaData:L(L({},l),{},{payment_method:i}),statementDescriptorSuffix:R(r),token:a,donation_session_id:(0,N.getOrCreateSessionId)()},s=await fetch("/api/v1/donate/stripe/pay",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}).then(e=>e.json());C.A.log("/pay response",s);let m=await J(n,s,d,h);if(m.success)await u(m,s,t.email);else{let e=m.error||{};throw(0,N.trackDonationEvent)("payment_failed_client",{payment_method:(0,N.normalizePaymentMethod)(i)||"card",error_code:e.code||e.type||"charge_failed",decline_code:e.decline_code,error_message:e.message||"Payment failed",gateway_transaction_id:e.payment_intent||void 0,stripe_request_log_url:e.stripe_request_log_url||void 0}),Error(e.message||"Payment failed. Please try again.")}}catch(e){console.error("Error while charging",e),m((null==e?void 0:e.message)||"Payment failed. Please try again.",i,t.email,e)}},et=async e=>{var t;let a=null==e||null==(t=e.split("@"))?void 0:t[1];if(!a)return!1;try{let e=await fetch(`/api/verify-domain?domain=${a}`);return(await e.json()).exists}catch(t){return console.error("Error occurred during email domain verification:",{email:e,error:t}),C.A.error("Error occurred during email domain verification",{email:e,error:t}),!1}};function ea(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,i)}return a}function ei(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};
15t%2?ea(Object(a),!0).forEach(function(t){(0,i.A)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):ea(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}var er=a(854),en=a(96335),es=a(69185),el=a(67808),eo=a(8465);function ec(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",{long_name:i,short_name:r}=(null==e?void 0:e.find(e=>e.types.includes(t)))||{long_name:a,short_name:a};return{longName:i,shortName:r}}a(24315),a(10389);var ed=a(51348),eh=a(36905),eu=a(37876);function em(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,i)}return a}let ep=e=>{let{onVerifyCaptcha:t,isSubmitting:a,action:i,children:r,onPressSubmit:s,btnClass:l}=e,{0:o,1:c}=(0,n.useState)(!1),{executeRecaptcha:d}=(0,eh._Y)(),h=async()=>{if(!d)return void console.error("executeRecaptcha is not defined");c(!0),t(await d(i)),c(!1)};return(0,eu.jsx)(f.$n,{className:l,isDisabled:a||o,type:"submit",onPress:()=>{s&&s(),h()},children:r})},eg=eh.G3,ef=e=>(0,eu.jsx)(eg,{reCaptchaKey:"6LfKtNsZAAAAAERxCkUPf9qOCO_-Wbal5-Y2lN-g",children:(0,eu.jsx)(ep,function(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?em(Object(a),!0).forEach(function(t){(0,i.A)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):em(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}({},e))}),ex=()=>(0,eu.jsxs)("div",{className:"mb-6 p-4 bg-blue-50 rounded-md",children:[(0,eu.jsx)(f.EY,{as:"p",color:"text-blue-700",fontSize:"text-xs",className:"mb-2",weight:"font-semibold",children:"Note: ACH payments typically take 4-5 business days to process."}),(0,eu.jsx)(f.EY,{as:"p",color:"text-grey-800",fontSize:"text-xs",children:"By submitting this form, you authorize Yaqeen to debit your bank account according to the selected donation schedule. This authorization will remain in effect until canceled. You can cancel anytime by contacting us. You have the right to receive a refund for any debit that is not authorized or is inconsistent with this authorization."})]}),ey=["ref"];function eb(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,i)}return a}function ev(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?eb(Object(a),!0).forEach(function(t){(0,i.A)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):eb(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}let ew=e=>{var t;let{register:a,setValue:i,updateCallback:r=()=>{},country:n,errors:s}=e,l=n?{componentRestrictions:{country:[n.toLowerCase()]}}:null,{suggestions:{status:o,data:c},setValue:d,clearSuggestions:h}=(0,el.Ay)({debounce:300,requestOptions:l}),u=(0,en.A)(()=>{h()});return(0,eu.jsxs)("div",{ref:u,children:[(0,eu.jsx)(f.A_,{ref:a({required:"Enter an address"}),onChange:e=>{d(e.target.value)},label:"Address Line 1",name:"address_line1",type:"text",autoComplete:"off",labelClassName:"block text-grey-800 text-sm font-bold mb-1 tracking-tight-1",inputClassName:"appearance-none block w-full focus:outline-none focus:bg-white",validationState:s.address_line1?"invalid":"valid",validationMsg:s.address_line1?null==(t=s.address_line1)?void 0:t.message:""}),"OK"===o&&(0,eu.jsx)("ul",{className:"shadow absolute bg-white z-10",children:c.map(e=>{let{description:t}=e;return(0,eu.jsx)(f.$n,{onPress:(e=>{let{description:t}=e;return()=>{i("address_line1",t,{shouldValidate:!0}),d(t,!1),h(),(0,el.fx)({address:t}).then(r).catch(e=>{w.Cp(e,{tags:{"donate.step":"billing-details:geocode-address"},contexts:{donation:{source:"google-places-geocode"}}}),C.A.error("Geocoding error",e)})}})(e),elementType:"li",className:"p-3 bg-white hover:bg-gray-200",children:t},e.description)})})]})},ej=e=>{var t,a,i,r,s,c,m,p;let{isDisabled:b=!1,shouldUseCaptcha:_=!1,btnText:P="Donate",isUsBankAccount:T=!1}=e,{onSubmitPayment:O}=((e,t)=>{let{account:a,amounts:i,currency:r,designation:n,donationType:s,goToThankYouPage:l,memoryOrHonor:o,paymentAmounts:c,paymentMode:h,paymentSchedule:u,recipientName:m,receiveMktEmails:p,stripeProductId:f,timezone:y,setApiError:b,setLoading:v,splitAmount:j,testMode:k,sadaqahChargeTimeRandomised:_,paymentTimeRandomised:A,setRecipientEmail:P,ramadanStartDate:T}=S(),{amount:O,coverTxFee:E,txFee:I}=i,{formattedAmount:D,formattedTxFee:q,totalAmount:M}=x.ej(O,I),$=x.fk({designation:n,donationType:s,amount:D,receiveMktEmails:p,memoryOrHonor:o,recipientName:m,timezone:y,coverTxFee:E,txFee:q,sadaqahChargeTime:_,ltnChargeTime:A,paymentSchedule:u,splitAmount:j,ramadanStartDate:T}),H=(e,t,a,i)=>{C.A.error("Payment failed",ei({msg:e,paymentMode:t},i&&{error:i})),b("Something went wrong. Please try again."),(0,d.$s)("donate","fail"),v(!1)},R=(e,t)=>{(0,x.Jz)({paymentMode:h,designation:n,donationType:s,currency:r.title,transactionId:e,revenue:M}),(0,N.trackDonationEvent)("payment_confirmed_client",{payment_method:(0,N.normalizePaymentMethod)(h),gateway_transaction_id:e,amount:M,currency:r.title}),b(""),l(t)},z=async(e,t,a)=>{if(h===g.Iu.UsBankAccount&&"processing"===e.status)return void R(t.payment_intent_id,a);if(!0===e.success)R(t.payment_intent_id,a);else throw C.A.error("Error while charging",{err:e.error,emailHash:F(a)}),Error("Payment failed. Please try again.")},Y=(e,t,a,i,o)=>{C.A.debug("Subscription success"),(0,x.Jz)({paymentMode:e,designation:n,donationType:s,currency:r.title,transactionId:t.subscriptionId,revenue:o}),(0,N.trackDonationEvent)("payment_confirmed_client",{payment_method:(0,N.normalizePaymentMethod)(e),gateway_transaction_id:t.subscriptionId,amount:o,currency:r.title}),l(i)},L=(e,t)=>{e===g.Iu.Gpay&&t.complete("fail"),b("Something went wrong. Please try again."),(0,d.$s)("donate","fail"),v(!1)};return{onSubmitPayment:async i=>{try{if(v(!0),!e||!t)throw Error("Stripe not initialized");if(!i.email)throw Error("Email is required");
15if(!await et(i.email))throw Error("Email is invalid. Please try again with a valid email.");P(i.email),(0,N.trackDonationEvent)("email_entered",{email:i.email}),C.A.addContext({"donate.emailHash":F(i.email)}),C.A.debug("CheckoutForm data",i);let n=x.OE(i,t.getElement("payment")),{error:l}=await t.submit();if(l){let e=Error(l.message);throw e.code=l.code,e.type=l.type,e.decline_code=l.decline_code,e}s===g.ZU.OneTime?await ee({customerData:n,captchaToken:i.captchaToken,paymentMethod:h,donationType:s,stripe:e,elements:t,metaData:$,totalAmount:M,currency:r,account:a,testMode:k,onPaymentSuccess:z,onPaymentError:H}):await V({customerData:n,donationType:s,stripe:e,elements:t,metaData:ei(ei({},$),{},{payment_method:h}),productId:f,totalAmount:M,currency:r,account:a,testMode:k,paymentAmounts:c,paymentSchedule:u,splitAmount:j,timezone:y,ltnTime:A,GRWSTime:_,captchaToken:i.captchaToken,setApiError:b,onSuccess:Y,onError:L})}catch(t){w.Cp(t,{tags:{"donate.step":"useStripePayment:submit","donate.account":a,"donate.type":s,"donate.paymentMode":h},contexts:{donation:{account:a,donationType:s,paymentMode:h,amount:M,currency:null==r?void 0:r.title,recurring:s!==g.ZU.OneTime}}});let e=h===g.Iu.UsBankAccount;console.error("[DonationAnalytics] Payment error details:",{message:null==t?void 0:t.message,code:null==t?void 0:t.code,decline_code:null==t?void 0:t.decline_code,type:null==t?void 0:t.type,keys:t?Object.keys(t):[]}),H(null==t?void 0:t.message,e?g.Iu.UsBankAccount:g.Iu.CC,i.email,t)}finally{v(!1)}}}})((0,y.useStripe)(),(0,y.useElements)()),{handleFormSubmit:E}=(()=>{let{amounts:e,designation:t,receiveMktEmails:a,memoryOrHonor:i,recipientName:r,timezone:n,donationType:s,setApiError:l}=S(),{formattedTxFee:o,totalAmount:c,coverTxFee:d}=e,h=x.if({designation:t,receiveMktEmails:a,memoryOrHonor:i,recipientName:r,amount:c,txFee:o,timezone:n,donationType:s,coverTxFee:d});return{handleFormSubmit:async e=>{try{let t=x.yN(),a=300-`&pr=${t}`.length-1,i=window.location.href.slice(0,a),r=new URL(i);r.pathname="/donate",r.searchParams.set("pr",t),e.first_name=(0,A.ZH)(e.first_name),e.last_name=(0,A.ZH)(e.last_name);let{payment_url:n,partner_txn_id:s}=await (0,j.E)(e,c,t,r.toString());h.profile=e,h.partner_txn_id=s,await (0,k.tT)(h,t),n?((0,N.trackDonationEvent)("payment_gateway_redirected",{payment_method:"interac",gateway_transaction_id:s}),window.location.href=n):console.error("Payment URL is not available.")}catch(e){throw console.error("Error calling API:",e.message),(0,N.trackDonationEvent)("payment_failed_client",{payment_method:"interac",error_message:(null==e?void 0:e.message)||"Interac payment request failed"}),l("Something went wrong. Please try again."),e}}}})(),{paymentMode:I,loadedMetadata:D,currency:q,account:M}=S(),{register:$,handleSubmit:H,errors:R,watch:z,control:Y,formState:L,setValue:B,reset:U}=(0,h.mN)(),{isSubmitting:W}=L,{0:G,1:Z}=(0,n.useState)(!1),Q=(null==M?void 0:M.toUpperCase())==="MY",K=z("country"),J=["US","CA"].includes(K),X=(0,o.Z)(K),ea="billingAddress",en=[{name:"Select a country",code:"",dial_code:""}].concat(o.Ns);return(0,n.useEffect)(()=>{if(q){let e=(e=>{var t;let a={USD:"US",AUD:"AU",CHF:"CH",DKK:"DK",INR:"IN",MAD:"MA",NOK:"NO",NZD:"NZ",ZAR:"ZA"};return a[e]?a[e]:(null==(t=eo.m7.find(t=>t.currencyCode===e))?void 0:t.countryCode)||""})(q.title)||"";if(e){B("country",e,{shouldValidate:!0});let t=o.Ns.find(t=>t.code===e);t&&B("phone_code",t.dial_code)}}},[q,B]),(0,n.useEffect)(()=>{D&&U(D.profile)},[D]),(0,n.useEffect)(()=>{J||B("state","")},[K,B,J]),(0,n.useEffect)(()=>{_&&$({name:"captchaToken"},{required:!0})}),(0,n.useEffect)(()=>{var e;if(null==(e=window)||null==(e=e.google)||null==(e=e.maps)||!e.places){if(document.getElementById(ea))return void Z(!0);if(!Q){C.A.debug("Loading Google Places script");let e=document.createElement("script");return e.src=es.r,e.id=ea,e.async=!0,e.onload=()=>{Z(!0),C.A.debug("Google Places loaded")},document.body.appendChild(e),()=>null==e?void 0:e.remove()}}},[Q]),(0,eu.jsxs)("div",{children:[(0,eu.jsx)(f.DZ,{fontSize:"text-2xl",weight:"font-semibold",lineHeight:"leading-3-s",children:"Your details"}),(0,eu.jsx)("div",{className:"border-b border-grey-100 mt-3 mb-6"}),(0,eu.jsx)("form",{method:"post",onSubmit:H(e=>{if(e.email&&(0,N.trackDonationEvent)("email_entered",{email:e.email}),!_){if(I===g.Iu.InteracETransfer)return void E(e);if([g.Iu.CC,g.Iu.UsBankAccount].includes(I))return void O(e);C.A.error("Invalid payment mode for form submission",{paymentMode:I})}}),children:(0,eu.jsxs)("div",{className:"billing-details flex flex-col gap-4",children:[(0,eu.jsxs)("div",{className:Q?"":"grid grid-cols-2 gap-x-4",children:[(0,eu.jsx)("div",{children:(0,eu.jsx)(f.A_,{ref:$({required:Q?"Enter your name":"Enter your first name"}),label:Q?"Name":"First Name",name:"first_name",type:"text",labelClassName:"block text-grey-800 text-sm font-bold mb-1 tracking-tight-1",inputClassName:"appearance-none block w-full focus:outline-none focus:bg-white",validationState:R.first_name?"invalid":"valid",validationMsg:R.first_name?null==(t=R.first_name)?void 0:t.message:""})}),!Q&&(0,eu.jsx)("div",{children:(0,eu.jsx)(f.A_,{ref:$({required:"Enter your last name"}),label:"Last Name",name:"last_name",type:"text",labelClassName:"block text-grey-800 text-sm font-bold mb-1 tracking-tight-1",inputClassName:"appearance-none block w-full focus:outline-none focus:bg-white",validationState:R.last_name?"invalid":"valid",validationMsg:R.last_name?null==(a=R.last_name)?void 0:a.message:""})})]}),(0,eu.jsx)("div",{children:(0,eu.jsx)(f.A_,{ref:$({required:"Enter your email",pattern:{value:/^[A-Z0-9._%+-]+@(?!.*\.\.)[^.@-][A-Z0-9.-]+\.[A-Z]{2,4}$/i,message:"Invalid email address"},validate:x.DT}
15),label:"Email",name:"email",type:"email",labelClassName:"block text-grey-800 text-sm font-bold mb-1 tracking-tight-1",inputClassName:"appearance-none block w-full focus:outline-none focus:bg-white",validationState:R.email?"invalid":"valid",validationMsg:R.email?null==(i=R.email)?void 0:i.message:""})}),!Q&&(0,eu.jsxs)(eu.Fragment,{children:[(0,eu.jsxs)("div",{children:[(0,eu.jsx)("div",{className:"block text-grey-800 text-sm font-bold mb-1 tracking-tight-1",children:"Country"}),(0,eu.jsx)("div",{children:(0,eu.jsx)("select",{ref:$({required:"Choose your country"}),defaultValue:"",name:"country",onChange:e=>{var t;B("phone_code",(null==(t=en.find(t=>t.code===e.target.value))?void 0:t.dial_code)||o.Ns[0].dial_code)},className:(0,ed.x)("form-select block w-full border box-border h-[42px] py-[9px] px-4 rounded",R.country?"border-alert-dark":"border-grey-200"),children:en.map(e=>(0,eu.jsx)("option",{value:e.code,children:e.name},e.code))})}),R.country&&(0,eu.jsxs)("div",{className:"inline-block mt-1",children:[(0,eu.jsx)(l.g,{icon:"exclamation-triangle",className:"mr-2 text-xs text-alert-dark",fixedWidth:!0}),(0,eu.jsx)(f.EY,{color:R.country?"text-alert-dark":"text-success-dark",fontSize:"text-xs",children:R.country.message})]})]}),(0,eu.jsx)("div",{children:G?(0,eu.jsx)(ew,{register:$,setValue:B,country:K,updateCallback:e=>{let{addressLine1:t,city:a,state:i,country:r,postalCode:n}=(e=>{var t;if(!e||!e.length)return{};let a=null==e||null==(t=e[0])?void 0:t.address_components,i=ec(a,"route").longName,r=ec(a,"street_number").longName,n=`${r} ${i}`.trim(),s=ec(a,"locality",null).longName||ec(a,"sublocality").longName,l=ec(a,"administrative_area_level_1"),o=ec(a,"country"),c=ec(a,"postal_code").longName,d=ec(a,"postal_code_suffix").longName,h=d?`${c}-${d}`:c;return{addressLine1:n,city:s,state:{longName:l.longName,shortName:l.shortName},country:{longName:o.longName,shortName:o.shortName},postalCode:h}})(e);null!=r&&r.shortName&&!K&&B("country",r.shortName,{shouldValidate:!0}),t&&B("address_line1",t,{shouldValidate:!0}),i&&(i.shortName||i.longName)&&B("state",["US","CA"].includes((null==r?void 0:r.shortName)||"")?i.shortName:i.longName,{shouldValidate:!0}),n&&B("zip",n,{shouldValidate:!0}),a&&B("city",a,{shouldValidate:!0})},errors:R}):(0,eu.jsx)(f.A_,{label:"Address Line 1",ref:$({required:"Enter your address"}),name:"address_line1",type:"text",labelClassName:"block text-grey-800 text-sm font-bold mb-1 tracking-tight-1",inputClassName:"appearance-none block w-full focus:outline-none focus:bg-white",validationState:R.address_line1?"invalid":"valid",validationMsg:R.address_line1?null==(r=R.address_line1)?void 0:r.message:""})}),(0,eu.jsx)("div",{children:(0,eu.jsx)(f.A_,{ref:$,label:"Address Line 2",name:"address_line2",type:"text",labelClassName:"block text-grey-800 text-sm font-bold mb-1 tracking-tight-1",inputClassName:"appearance-none block w-full focus:outline-none focus:bg-white"})}),(0,eu.jsx)("div",{children:(0,eu.jsx)(f.A_,{ref:$({required:"Enter your city"}),label:"City",name:"city",type:"text",labelClassName:"block text-grey-800 text-sm font-bold mb-1 tracking-tight-1",inputClassName:"appearance-none block w-full focus:outline-none focus:bg-white",validationState:R.city?"invalid":"valid",validationMsg:R.city?null==(s=R.city)?void 0:s.message:""})}),(0,eu.jsxs)("div",{className:"xl:grid xl:grid-cols-2 xl:gap-x-4",children:[(0,eu.jsx)("div",{children:(0,eu.jsx)(f.A_,{ref:$({required:!X&&"Enter your zip/postal code",maxLength:{value:12,message:"Your zip/postal code cannot exceed 12 characters"}}),label:X?"Zip / Postal Code (optional)":"Zip / Postal Code",name:"zip",validationState:R.zip?"invalid":"valid",validationMsg:R.zip?null==(c=R.zip)?void 0:c.message:"",type:"text",labelClassName:"block text-grey-800 text-sm font-bold mb-1 tracking-tight-1",inputClassName:"appearance-none block w-full focus:outline-none focus:bg-white"})}),(0,eu.jsx)("div",{children:(0,eu.jsx)("div",{className:"mt-4 xl:mt-0",children:J?(0,eu.jsxs)(eu.Fragment,{children:[(0,eu.jsx)("div",{className:"block text-grey-800 text-sm font-bold mb-1 tracking-tight-1",children:"State / Province"}),(0,eu.jsx)("div",{children:(0,eu.jsx)("select",{ref:$({required:"Choose your state/province"}),defaultValue:"",name:"state",className:(0,ed.x)("form-select block bg-white w-full h-[42px] py-[9px] px-4 roun
15ded",R.state?"border-alert-dark":"border-grey-200"),children:[{name:`Select a ${"CA"===K?"Province":"State"}`,abbreviation:""}].concat(null==(m=o.Tk.find(e=>e.abbreviation===K))?void 0:m.states).map(e=>(0,eu.jsx)("option",{value:e.abbreviation,children:e.name},e.abbreviation))})}),R.state&&(0,eu.jsxs)("div",{className:"inline-block mt-1",children:[(0,eu.jsx)(l.g,{icon:"exclamation-triangle",className:"mr-2 text-xs text-alert-dark",fixedWidth:!0}),(0,eu.jsx)(f.EY,{color:R.state?"text-alert-dark":"text-success-dark",fontSize:"text-xs",children:R.state.message})]})]}):(0,eu.jsx)(f.A_,{ref:$({required:"Enter your state/province"}),label:"State / Province",name:"state",validationState:R.state?"invalid":"valid",validationMsg:R.state?null==(p=R.state)?void 0:p.message:"",type:"text",labelClassName:"block text-grey-800 text-sm font-bold mb-1 tracking-tight-1",inputClassName:"appearance-none block w-full focus:outline-none focus:bg-white"})})})]})]}),Q&&(0,eu.jsxs)(eu.Fragment,{children:[(0,eu.jsx)("input",{type:"hidden",name:"last_name",ref:$(),value:""}),(0,eu.jsx)("input",{type:"hidden",name:"country",ref:$(),value:"MY"}),(0,eu.jsx)("input",{type:"hidden",name:"address_line1",ref:$(),value:"-"}),(0,eu.jsx)("input",{type:"hidden",name:"address_line2",ref:$(),value:"-"}),(0,eu.jsx)("input",{type:"hidden",name:"city",ref:$(),value:"-"}),(0,eu.jsx)("input",{type:"hidden",name:"state",ref:$(),value:"-"}),(0,eu.jsx)("input",{type:"hidden",name:"zip",ref:$(),value:"-"})]}),(0,eu.jsxs)("div",{children:[(0,eu.jsx)("div",{className:"block text-grey-800 text-sm font-bold mb-1 tracking-tight-1",children:"Phone number"}),(0,eu.jsxs)("div",{children:[(0,eu.jsxs)("div",{className:"flex items-center rounded ",children:[(0,eu.jsx)("div",{className:"border-r border-grey-200 w-28",children:(0,eu.jsx)("select",{ref:$,name:"phone_code",defaultValue:o.Ns[0].dial_code,className:"form-select block bg-white w-full h-[42px] box-border border-r-0 border-grey-200 py-[9px] px-3 rounded-l-[4px]",children:o.Ns.map(e=>(0,eu.jsx)("option",{value:e.dial_code,children:e.dial_code},e.name))})}),(0,eu.jsx)("div",{className:"w-full",children:(0,eu.jsx)(h.xI,{name:"phone",control:Y,rules:{min:{value:0,message:"Invalid phone number"},maxLength:{value:15,message:"Your phone number cannot exceed 15 digits"},minLength:{value:4,message:"Your phone number must be at least 4 digits"}},defaultValue:"",render:e=>{let{ref:t}=e,a=(0,v.A)(e,ey);return(0,eu.jsx)(u.A,ev(ev({},a),{},{getInputRef:t,customInput:f.A_,"aria-label":"Phone",type:"tel",decimalScale:2,onValueChange:e=>{B("phone",e.value,{shouldValidate:!0})},isNumericString:!0,allowNegative:!1,error:!!R.phone,className:"py-[9px] px-4 appearance-none h-[42px] border box-border border-l-0 border-grey-200 rounded-r-[4px] text-grey-900 placeholder-grey-800 leading-6 focus:outline-none focus:bg-white w-full"}))}})})]}),R.phone&&(0,eu.jsxs)("div",{className:"inline-block mt-1",children:[(0,eu.jsx)(l.g,{icon:"exclamation-triangle",className:"mr-2 text-xs text-alert-dark",fixedWidth:!0}),(0,eu.jsx)(f.EY,{color:"text-alert-dark",fontSize:"text-xs",children:R.phone.message})]})]})]}),(0,eu.jsxs)("div",{className:"btn-submit",children:[T&&(0,eu.jsx)(ex,{}),_?(0,eu.jsxs)(eu.Fragment,{children:[(0,eu.jsx)(ef,{btnClass:"w-full h-[42px] px-4 py-[9px] bg-carrot-600 rounded mt-6 mb-3",onVerifyCaptcha:e=>{B("captchaToken",e),[g.Iu.CC,g.Iu.UsBankAccount].includes(I)&&H(O)(),C.A.error("Invalid payment mode for form submission",{paymentMode:I})},isSubmitting:b,action:"donate",onPressSubmit:()=>{C.A.log("Donate button clicked",{payment:{method:I}}),(0,d.$s)("Donation","create","payment_method: "+I)},children:(0,eu.jsx)(f.EY,{color:"text-white",weight:"font-bold",children:P})}),R.captchaToken&&(0,eu.jsx)("p",{className:"xl:block hidden text-grey-700",children:"Verifying..."})]}):(0,eu.jsxs)(f.$n,{type:"submit",isDisabled:W,className:"w-full h-[42px] px-4 py-[9px] bg-carrot-600 rounded mt-6 mb-3",onPress:()=>{C.A.log("Donate button clicked",{payment:{method:I}}),(0,d.$s)("Donation","create","payment_method: "+I)},children:[!W&&(0,eu.jsx)(f.EY,{color:"text-white",weight:"font-bold",children:P}),W&&(0,eu.jsx)(l.g,{icon:er.jy,spinPulse:!0,size:"lg"})]})]})]})})]})},ek=e=>{let{msg:t,email:a,donorEmail:i}=e,r=(0,N.getSessionReference)(),{0:s,1:l}
15=(0,n.useState)(!1),o=window.location.href,c=new Date().toLocaleString(),d=r?`Donation Issue [${r}]`:"Donation Issue",h=[r?`Reference: ${r}`:null,i?`Donor Email: ${i}`:null,`Time: ${c}`,`Page: ${o}`,"---","Please describe your issue:",""].filter(Boolean).join("\n"),u=`mailto:${a}?subject=${encodeURIComponent(d)}&body=${encodeURIComponent(h)}`;return(0,eu.jsxs)("div",{className:"bg-red-50 border border-red-200 rounded-lg p-5 mb-6",role:"alert",children:[(0,eu.jsx)(f.EY,{color:"text-red-700",fontSize:"text-sm",lineHeight:"leading-5",children:t}),(0,eu.jsxs)("div",{className:"mt-3 pt-3 border-t border-red-100",children:[(0,eu.jsxs)(f.EY,{color:"text-red-700",fontSize:"text-xs",lineHeight:"leading-4",children:["For further assistance, reach us at"," ",(0,eu.jsx)("a",{href:u,className:"font-semibold underline",children:a})]}),r&&(0,eu.jsxs)("div",{className:"mt-2 flex items-center gap-2",children:[(0,eu.jsx)(f.EY,{color:"text-red-700",fontSize:"text-xs",children:"Your reference:"}),(0,eu.jsxs)("button",{onClick:()=>{var e;r&&(null==(e=navigator.clipboard)||e.writeText(r).then(()=>{l(!0),setTimeout(()=>l(!1),2e3)}))},className:"inline-flex items-center gap-1.5 px-2.5 py-1 bg-red-100 hover:bg-red-200 rounded text-xs font-mono font-semibold text-red-800 transition-colors",title:"Click to copy reference",children:[r,(0,eu.jsx)("svg",{className:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,eu.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"})})]}),s&&(0,eu.jsx)("span",{className:"text-xs text-green-700 font-medium",children:"Copied!"})]})]})]})};var eN=a(54587),e_=a.n(eN),eS=a(86400);let eA=()=>{let{paymentMode:e,setPaymentMode:t}=S();return(0,eu.jsxs)(f.$n,{onPress:()=>{C.A.log("Interac payment button clicked"),e===g.Iu.InteracETransfer?t(null):(t(g.Iu.InteracETransfer),(0,N.trackDonationEvent)("payment_method_selected",{payment_method:"interac"}))},className:(0,ed.x)("inline-flex h-[42px] py-[9px] px-4 justify-start items-center rounded shadow-sm w-full gap-3",e===g.Iu.InteracETransfer?"bg-jordy-50":"bg-white border box-border border-grey-200"),children:[(0,eu.jsx)("div",{className:"h-6",children:(0,eu.jsx)(e_(),{className:"rounded-md",loader:eS.R2,width:24,height:24,src:"/static/images/icons/interac-logo.svg",alt:"Interac e-Transfer with DirectPay"})}),(0,eu.jsxs)(f.EY,{weight:"font-semibold",fontSize:"xl:text-base text-lg",color:e===g.Iu.InteracETransfer?"text-endeavour-500":"text-grey-800",lineHeight:"leading-6",children:[(0,eu.jsx)("i",{children:"Interac"})," e-Transfer\xae"]})]})},eC=()=>(0,eu.jsx)("p",{className:"text-grey-700 text-xss",children:"Interac e-Transfer is a registered trade-mark and the Interac logo is a trade-mark of Interac Corp. Used under licence."});var eP=a(52495),eT=a.n(eP),eO=a(65072);let eE=()=>{let{account:e,amounts:t,currency:a,donationType:i,giveInMemoryHonor:r,memoryOrHonor:n,recipientName:s,paymentSchedule:c,splitAmount:h,timezone:u,parentCallback:m,setReadyToCheckout:p,setApiError:y,ramadanStartDate:b}=S(),{amount:v,coverTxFee:w,totalAmount:j,txFee:k}=t,N=x.yf(i,b),_=(e,t)=>{let a=(0,x.Qn)(e),i="";switch(t){case g.ZU.Monthly:i="/mo";break;case g.ZU.Weekly:i="/wk";break;case g.ZU.Daily:i="/day";break;default:i=""}return`${a}${i}`};return(0,eu.jsxs)("div",{className:"payment-details mb-6 border-grey-200 border xl:rounded bg-grey-40 p-6 xl:mx-0 iphonese:-mx-4",children:[p&&(0,eu.jsx)("div",{className:"edit-payment mb-3",children:(0,eu.jsx)(f.$n,{onPress:()=>{var e;C.A.debug("Edit btn clicked"),(0,d.$s)("donate_edit","click"),p(!1),y(null),m&&m(!1),null==(e=document.querySelector("form"))||e.scrollIntoView(!0)},children:(0,eu.jsxs)(f.EY,{fontSize:"text-sm",color:"text-carrot-500",weight:"font-semibold",children:[(0,eu.jsx)(l.g,{icon:"edit"})," Edit"]})})}),(0,eu.jsxs)("div",{className:"price-breakdown",children:[(0,eu.jsxs)("div",{className:"one-time flex justify-between mb-4 space-x-3",children:[(0,eu.jsx)(f.EY,{weight:"font-semibold",children:i}),(0,eu.jsxs)("div",{children:[(0,eu.jsx)(f.EY,{fontSize:"text-xs",weight:"font-bold",color:"text-endeavour-500",children:(0,eu.jsx)("span",{dangerouslySetInnerHTML:{__html:a.symbol}})}),(0,eu.jsx)(f.EY,{weight:"font-bold",color:"text-endeavour-500",className:"pr-1",children:`${eT()(v,{symbol:""}).format()}`}),(0,eu.jsx)(f.EY,{fontSize:"text-xs",weight:"font-bold",color:"text-endeavour-500",children:(0,eu.jsx)("span",{dangerouslySetInnerHTML:{__html:_(a,i)}})})]})]}),w&&k&&(0,eu.jsxs)("div",{className:"tx-fee flex justify-between mb-4 space-x-3",children:[(0,eu.jsxs)("div",{className:"flex flex-col",children:[(0,eu.jsxs)(f.EY,{weight:"font-semibold",children:["Transaction ",(0,x.a7)(i)?"Fees":"Fee"]}),(0,eu.jsxs)(f.EY,{className:"pt-1",color:"text-grey-800",fontSize:"text-xs",children:[(0,eu.jsxs)("span",{className:"font-semibold",children:["You chose to cover the transaction"," ",(0,x.a7)(i)?"fees":"fee","."]})," ","Thank you!"]})]}),(0,eu.jsxs)("div",{children:[(0,eu.jsx)(f.EY,{fontSize:"text-xs",weight:"font-bold",color:"text-endeavour-500",children:(0,eu.jsx)("span",{dangerouslySetInnerHTML:{__html:a.symbol}})}),(0,eu.jsx)(f.EY,{weight:"font-bold",color:"text-endeavour-500",className:"pr-1",children:`${eT()(k,{symbol:""}).format()}`}),(0,eu.jsx)(f.EY,{fontSize:"text-xs",weight:"font-bold",color:"text-endeavour-500",children:(0,eu.jsx)("span",{dangerouslySetInnerHTML:{__html:_(a,i)}})})]})]}),(0,x.a7)(i)&&(0,eu.jsxs)("ul",{children:[N&&(0,eu.jsx)("li",{children:(0,eu.jsxs)(f.EY,{color:"text-grey-700",fontSize:"text-sm",children:["⢠",i===g.ZU.GreetRamadanWithSadaqah?`Your donation will be processed on ${(0,eO.format)(N,"MMMM D, YYYY")}`:i===g.ZU.Ramadan27?`Your donation will be processed on ${(0,eO.format)(N,"MMMM D, YYYY")} (27th night of Ramadan)`:[g.ZU.LastTenNights,g.ZU.RamadanDaily].includes(i)?`Donation will be processed nightly from ${(0,eO.format)(c[0].date,"MMMM D")} to ${(0,eO.format)(c.slice(-1).pop().date,"MMMM D, YYYY")}`:i===g.ZU.DhulHijjah?`Donation will be processed daily from ${(0,eO.format)(c[0].date,"MMMM D")} to ${(0,eO.format)(c.slice(-1).pop().date,"MMMM D, YYYY")}`:(0,eO.format)(N,"MMMM D, YYYY")]})}),i===g.ZU.LastTenNights&&h&&(0,eu.jsx)("li",{children:(0,eu.jsxs)(f.EY,{color:"text-grey-700",fontSize:"text-sm",children:["⢠",o.r6[h]]})}),(0,eu.jsx)("li",{children:(0,eu.jsxs)(f.EY,{color:"text-grey-700",fontSize:"text-sm",children:["⢠",u.title]})})]}),(0,eu.jsx)("div",{className:"mb-4",children:(0,eu.jsx)("ul",{children:(0,eu.jsx)("li",{children:(0,eu.jsxs)(f.EY,{as:"p",color:"text-grey-700",fontSize:"text-sm",children:[e!==g.jt.ed&&`⢠Count as: `,(0,eu.jsx)("span",{dangerouslySetInnerHTML:{__html:o.Oc[e]}})]})})})}),r&&(0,eu.jsx)("div",{className:"mb-4",children:(0,eu.jsx)(f.EY,{as:"p",color:"text-grey-700",fontSize:"text-sm",children:`⢠In ${n} of ${s}`})}),(0,eu.jsx)("div",{className:"divider border-t border-grey-200 mb-3"}),(0,eu.jsxs)("div",{className:"total-amount flex justify-between mb-3",children:[(0,eu.jsx)(f.EY,{fontSize:"text-2xl",weight:"font-semibold",color:"text-grey-700",children:"Total"}),(0,eu.jsxs)("div",{children:[(0,eu.jsx)(f.EY,{weight:"font-bold",color:"text-endeavour-500",children:(0,eu.jsx)("span",{dangerouslySetInnerHTML:{__html:a.symbol}})}),(0,eu.jsx)(f.EY,{fontSize:"text-2xl",weight:"font-bold",color:"text-endeavour-500",className:"pr-1",children:`${eT()(j,{symbol:""}).format()}`}),(0,eu.jsx)(f.EY,{weight:"font-bold",color:"text-endeavour-500",children:(0,eu.jsx)("span",{dangerouslySetInnerHTML:{__html:_(a,i)}})})]})]})]})]})};var eI=a(41941);let eD=async(e,t,a)=>{let[i,r]=(0,x.Fg)(a);return await (0,k.tT)(a,i),e.order.create({purchase_units:[{description:"One time transaction",amount:{value:t.toString()},custom_id:r}]})},eq=()=>{let{account:e,amounts:t,currency:a,designation:i,donationType:r,memoryOrHonor:n,paymentAmounts:s,paymentTimeRandomised:l,receiveMktEmails:c,recipientName:h,sadaqahChargeTimeRandomised:u,showPaypalbtn:m,timezone:f,goToThankYouPage:y,setApiError:b,setRecipientEmail:v,ramadanStartDate:w}=S(),{formattedTxFee:j,totalAmount:_,coverTxFee:A}=t,{actualAccount:P}=(0,p.hG)(e),T=o.dS[P],O=x.Ve(_,a.title),E=x.Ve(j,a.title),I=x.c7(a.title),D=async(e,t)=>t.subscription.get().then(t=>{C.A.log("Paypal success"),x.Jz({paymentMode:g.Iu.Paypal,designation:i,donationType:r,currency:I,transactionId:e.subscriptionID,revenue:O});let a=t.subscriber.email_address;v(a),(0,N.trackDonationEvent)("email_entered",{email:a}),(0,N.trackDonationEvent)("payment_confirmed_client",{payment_method:"paypal",gateway_transaction_id:e.subscriptionID,amount:O,currency:I}),y(a)}),q=e=>{C.A.error("Paypal error",e.message),(0,d.$s)("donate","fail"),(0,N.trackDonationEvent)("payment_failed_client",{payment_method:"paypal",error_message:(null==e?void 0:e.message)||"PayPal payment failed"}),b("Paypal payment failed. Please try another payment method.")},M=x.if({designation:i,receiveMktEmails:c,memoryOrHonor:n,recipientName:h,amount:O,txFee:E,timezone:f,donationType:r,coverTxFee:A}),$=s&&("equally"in s||"moreOn27th"in s);return(0,eu.jsx)(eI.ag,{options:{"client-id":T.clientId,currency:I,"disable-funding":"paylater",vault:r!==g.ZU.OneTime,intent:r===g.ZU.OneTime?"capture":"subscription"},children:m&&(0,eu.jsxs)("div",{className:"-mb-[6px] w-full","data-testid":"paypal-payment",children:[r===g.ZU.OneTime&&(0,eu.jsx)(eI.JV,{style:{layout:"horizontal",tagline:!1,height:42},createOrder:(e,t)=>eD(t,O,M),onApprove:(e,t)=>
15t.order.capture().then(e=>{v(e.payer.email_address),(0,N.trackDonationEvent)("email_entered",{email:e.payer.email_address}),C.A.log("Paypal success"),x.Jz({paymentMode:g.Iu.Paypal,designation:i,donationType:r,currency:I,transactionId:e.id,revenue:O}),(0,N.trackDonationEvent)("payment_confirmed_client",{payment_method:"paypal",gateway_transaction_id:e.id,amount:O,currency:I}),y(e.payer.email_address)}),onError:q,onClick:()=>{b(null),(0,d.$s)("donate_step_2","click","method: paypal"),(0,N.trackDonationEvent)("payment_method_selected",{payment_method:"paypal"}),(0,N.trackDonationEvent)("payment_gateway_redirected",{payment_method:"paypal"}),C.A.log("Paypal button clicked")}}),[g.ZU.Monthly,g.ZU.Daily,g.ZU.Weekly].includes(r)&&(0,eu.jsx)(eI.JV,{fundingSource:"paypal",createSubscription:async()=>await (0,k.oV)(r,O,I,e,M,w),onApprove:D,onClick:()=>{b(null),(0,d.$s)("donate_step_2","click","method: paypal"),(0,N.trackDonationEvent)("payment_method_selected",{payment_method:"paypal"}),(0,N.trackDonationEvent)("payment_gateway_redirected",{payment_method:"paypal"}),C.A.log("Paypal button clicked")},onError:q}),(0,x.a7)(r)&&$&&(0,eu.jsx)(eI.JV,{fundingSource:"paypal",createSubscription:async()=>await (0,k.$d)(O,s,I,a.title,e,r,l,u,f,M,w),onApprove:D,onClick:()=>{b(null),(0,d.$s)("donate_step_2","click","method: paypal"),(0,N.trackDonationEvent)("payment_method_selected",{payment_method:"paypal"}),(0,N.trackDonationEvent)("payment_gateway_redirected",{payment_method:"paypal"}),C.A.log("Paypal button clicked")},onError:q})]})})},eM=()=>{let e=(0,y.useElements)(),{paymentMode:t,paymentElementOptions:a,setPaymentMode:i}=S();return(0,n.useEffect)(()=>{if(![g.Iu.CC,g.Iu.UsBankAccount,g.Iu.Gpay].includes(t)){let t=null==e?void 0:e.getElement("payment");t&&t.collapse()}},[t]),(0,eu.jsx)(y.PaymentElement,{id:"payment-element",options:a,onChange:e=>{if(C.A.log("Payment method changed",e),e.collapsed)return;let t=e.value.type;"us_bank_account"===t?(i(g.Iu.UsBankAccount),(0,d.$s)("donate_step_2","click","method: us_bank_account"),(0,N.trackDonationEvent)("payment_method_selected",{payment_method:"us_bank_account"})):"card"===t&&(i(g.Iu.CC),(0,d.$s)("donate_step_2","click","method: card"),(0,N.trackDonationEvent)("payment_method_selected",{payment_method:"card"}))}})};function e$(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,i)}return a}function eH(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?e$(Object(a),!0).forEach(function(t){(0,i.A)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):e$(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}let eR=()=>{let{account:e,amounts:t,currency:a,designation:i,donationType:r,paymentAmounts:s,paymentSchedule:l,memoryOrHonor:o,paymentIntentId:c,paymentRequest:h,paymentTimeRandomised:u,receiveMktEmails:m,recipientName:p,sadaqahChargeTimeRandomised:f,splitAmount:b,stripeProductId:v,timezone:j,testMode:k,goToThankYouPage:N,setApiError:_,setLoading:A,setPaymentRequest:P,setRecipientEmail:T,ramadanStartDate:O}=S(),E=(0,y.useStripe)(),{amount:I,txFee:D}=t,{totalAmount:q}=x.ej(I,D),M=x.fk({designation:i,donationType:r,amount:x.ej(I,D).formattedAmount,receiveMktEmails:m,memoryOrHonor:o,recipientName:p,timezone:j,coverTxFee:t.coverTxFee,txFee:x.ej(I,D).formattedTxFee,sadaqahChargeTime:f,ltnChargeTime:u,paymentSchedule:l,splitAmount:b,ramadanStartDate:O});(0,n.useEffect)(()=>{E&&(e=>{let{stripe:t,account:a,currency:i,amount:r,setPaymentRequest:n}=e;try{let e=t.paymentRequest({country:"endowment"===a?"US":a.toUpperCase(),currency:i.co
15de,total:{label:"Yaqeen Donation",amount:x.Ad(r)},requestPayerName:!0,requestPayerEmail:!0});e.canMakePayment().then(t=>{t&&n(e)}).catch(e=>{throw e})}catch(e){w.Cp(e,{tags:{"donate.step":"payment-utils:stripe-payment-request","donate.account":a},contexts:{donation:{account:a,amount:r,currency:null==i?void 0:i.code}}}),C.A.error("Error in creating Stripe Payment Request",{err:e})}})({stripe:E,account:e,currency:a,amount:q,setPaymentRequest:P})},[E]),(0,n.useEffect)(()=>{h&&L()&&h.on("paymentmethod",async t=>{var i;C.A.addContext({"donate.emailHash":F(null==(i=t.paymentMethod)||null==(i=i.billing_details)?void 0:i.email)||""}),$(t);let n=t.paymentMethod;n&&await X({event:t,donationType:r,currency:a,account:e,testMode:k,productId:v,totalAmount:q,metaData:eH(eH({},M),{},{payment_method:x.a4(n)}),paymentAmounts:s,paymentSchedule:l,splitAmount:b,onSuccessSubscription:z,onErrorSubscription:Y,setApiError:_,grwsTime:f,ltnTime:u,timezone:j,stripe:E}).catch(i=>{var n,s;return w.Cp(i,{tags:{"donate.step":"wallet-subscription","donate.account":e,"donate.type":r},contexts:{donation:{account:e,donationType:r,amount:q,currency:null==a?void 0:a.title,paymentMode:g.Iu.Gpay,paymentMethod:x.a4(t.paymentMethod),emailHash:F(null==(n=t.paymentMethod)||null==(n=n.billing_details)?void 0:n.email),recurring:!0}}}),H(i,g.Iu.Gpay,null==(s=t.paymentMethod)||null==(s=s.billing_details)?void 0:s.email)}).finally(()=>A(!1))})},[h]),(0,n.useEffect)(()=>{h&&r===g.ZU.OneTime&&h.on("paymentmethod",async t=>{var i;C.A.addContext({"donate.emailHash":F(null==(i=t.paymentMethod)||null==(i=i.billing_details)?void 0:i.email)||""}),$(t),t.paymentMethod&&await K({amount:q,event:t,currency:a,donationType:r,account:e,testMode:k,metaData:M,stripe:E,onSuccess:R}).catch(i=>{var n,s;return w.Cp(i,{tags:{"donate.step":"wallet-one-time","donate.account":e,"donate.type":r},contexts:{donation:{account:e,donationType:r,amount:q,currency:null==a?void 0:a.title,paymentMode:g.Iu.Gpay,paymentMethod:x.a4(t.paymentMethod),emailHash:F(null==(n=t.paymentMethod)||null==(n=n.billing_details)?void 0:n.email),recurring:!1}}}),H(i,g.Iu.Gpay,null==(s=t.paymentMethod)||null==(s=s.billing_details)?void 0:s.email)})})},[h]);let $=e=>{C.A.debug("Gpay/apple-pay data",{event:e,paymentRequest:h,donationType:r})},H=(e,t,a)=>{C.A.error("Payment failed",eH({msg:e,paymentMode:t},a&&{emailHash:F(a)})),_("Something went wrong. Please try again."),(0,d.$s)("donate","fail"),A(!1)},R=(e,t)=>{(0,x.Jz)({paymentMode:g.Iu.Gpay,designation:i,donationType:r,currency:a.title,transactionId:e,revenue:q}),T(t),N(t)},z=(e,t,n,s,l)=>{if((0,x.Jz)({paymentMode:e,designation:i,donationType:r,currency:a.title,transactionId:t.subscriptionId,revenue:l}),e===g.Iu.Gpay){var o;n.complete("success"),T(null==(o=n.paymentMethod.billing_details)?void 0:o.email)}N(s)},Y=(e,t)=>{throw e===g.Iu.Gpay&&t.complete("fail"),"Something went wrong. Please try again."},L=()=>[g.ZU.GreetRamadanWithSadaqah,g.ZU.LastTenNights,g.ZU.Ramadan27,g.ZU.Monthly,g.ZU.DhulHijjah,g.ZU.RamadanDaily].includes(r);return h?(0,eu.jsx)(y.PaymentRequestButtonElement,{options:{paymentRequest:h,style:{paymentRequestButton:{height:"42px"}}},onClick:()=>{(0,d.$s)("donate_step_2","click",`method: ${g.Iu.Gpay}`),C.A.debug("Gpay/Apple-pay btn clicked",{paymentIntentId:c})}}):null},ez=()=>{let{client:e,apiError:t,account:a,donationType:i,error:r,elementsOptions:s,paymentMode:l,loading:o,recipientEmail:c,testMode:d}=S(),h=l&&[g.Iu.CC,g.Iu.UsBankAccount,g.Iu.InteracETransfer].includes(l),u=!d&&[g.Iu.CC,g.Iu.UsBankAccount].includes(l);return(0,n.useEffect)(()=>{window.scrollTo(0,0)},[]),(0,eu.jsx)("div",{className:"bg-white",children:(0,eu.jsxs)(an.pO,{maxWidth:"max-w-4-5xl",className:"bg-white xl:pb-32 pb-10",children:[(0,eu.jsx)("div",{className:"xl:pt-12 pt-8 mb-3",children:(0,eu.jsx)("h1",{className:"text-endeavour-500 text-4xl font-extrabold leading-none",children:"Payment details"})}),(0,eu.jsx)("div",{className:"xl:block hidden border-t border-grey-200 mt-3 mb-6"}),(0,eu.jsxs)("div",{className:"grid xl:grid-cols-2 gap-x-12 items-start",children:[(0,eu.jsx)("div",{className:"xl:sticky",style:{to
15p:"2rem"},children:(0,eu.jsx)(eE,{})}),(0,eu.jsx)(y.Elements,{options:s,stripe:e.current||null,children:(0,eu.jsxs)("div",{className:"payment-method",children:[(t||r)&&(0,eu.jsx)(ek,{msg:t||r,email:p.rx[a],donorEmail:c||void 0}),(0,eu.jsx)("div",{className:"flex flex-col gap-10",children:!r&&(0,eu.jsxs)(eu.Fragment,{children:[(0,eu.jsxs)("div",{children:[(0,eu.jsx)(f.DZ,{fontSize:"text-2xl",weight:"font-semibold",lineHeight:"leading-3-s",children:"Payment Method"}),(0,eu.jsx)("div",{className:"border-b border-grey-100 mt-3"}),(0,eu.jsxs)("div",{className:"pt-6 flex flex-col gap-4",children:[(0,eu.jsx)(eq,{}),(0,eu.jsx)(eR,{}),(0,eu.jsx)(eM,{}),a===g.ce.CA.toLowerCase()&&i===g.ZU.OneTime&&(0,eu.jsx)(eA,{})]})]}),(0,eu.jsxs)("div",{children:[h&&(0,eu.jsx)(ej,{isDisabled:o,shouldUseCaptcha:u,isUsBankAccount:l===g.Iu.UsBankAccount,btnText:[g.ZU.OneTime,g.ZU.Daily,g.ZU.Weekly,g.ZU.Monthly].includes(i)?"Donate":"Schedule Donation"}),(0,eu.jsxs)("div",{className:"agreements text-center flex flex-col gap-3",children:[(0,eu.jsxs)(f.EY,{as:"p",color:"text-grey-700",fontSize:"text-xss",lineHeight:"leading-tight",children:["By donating, you agree to our"," ",(0,eu.jsx)(f.qh,{href:"/terms-of-donation",children:(0,eu.jsx)("span",{className:"font-bold underline",children:"Terms of Donation"})})," ","and"," ",(0,eu.jsx)(f.qh,{href:"/donor-privacy-policy",children:(0,eu.jsx)("span",{className:"font-bold underline",children:"Donor Privacy Policy"})})]}),u&&(0,eu.jsx)(b.A,{}),l===g.Iu.InteracETransfer&&(0,eu.jsx)(eC,{})]})]})]})})]})})]})]})})};var eF=a(74382),eY=a.n(eF);a(80738),a(72117),a(33228),a(26036),a(51412),a(45135),a(53959),a(81984),a(87071),a(82247);let eL=function(e){return e.faqTax="faq_tax",e.faqZakat="faq_zakat",e.faqETransfer="faq_etransfer",e.faqUsage="faq_usage",e.faqManageDonation="faq_manage_donation",e.faqErrorDonation="faq_error_donation",e}({}),eB={id:eL.faqZakat,title:"Is my donation zakat-eligible?",content:`The issue of the Zakat eligibility of organizations that have a Dawah mandate is one that scholars differ over. Our Shaykh Dr. Hatem al-Haj has written at length about it in <a class="focus:border-jordy-400 focus:outline-none border-transparent url" href="https://muslimmatters.org/2021/07/20/zakat-eligibility-of-islamic-organizations/" target="_blank">this article</a>. He has also written that âSince the purpose of Yaqeen Institute is âestablishing conviction in the hearts and minds of Muslimsâ, it is a legitimate recipient of Zakat.â This position is adopted by a number of contemporary scholars, including the Islamic Fiqh Council. They consider dawah to be included in the category of âfi sabeel-illahâ mentioned in the verse of Surat at-Tawbah detailing the deserving recipients of Zakat.â With that being said, Yaqeen is not soliciting Zakat at this time, and asking donors to give their Zakat to humanitarian aid while continuing to make use of their Sadaqa to sponsor the work of Yaqeen and other worthy non-profit organizations.`},eU=[{country:"US",faqs:[{id:eL.faqTax,title:"Is my donation tax deductible?",content:"Yes. Yaqeen Research Institute (DBA Yaqeen Institute for Islamic Research) is a registered, 501(c)(3) nonprofit organization with EIN 81-2822877. Yaqeen Endowment is a separate, registered, 501(c)(3) nonprofit organization with EIN 83-4372176. Its public charity (PC) status is 509(A)(3) Type I, meaning it is a supporting organization. It was founded to benefit and support the purposes of Yaqeen Research Institute. Your donation to both entities is tax-deductible. To claim a donation as a deduction on your U.S. taxes, please keep your email donation receipt from Yaqeen as your official record."},eB,{id:eL.faqUsage,title:"How does Yaqeen use my donation?",content:"Yaqeen is an Islamic research institution committed to dismantling doubts and nurturing conviction through research and educational resources. Your donation directly supports the creation of research-backed content that supports this mission. For full transparency, you can view our latest annual report for a detailed breakdown of how your contributions are utilized on <a class='url' href='https://yaqeeninstitute.org/annual-reports' target='_blank'><strong>this page</strong></a>."},{id:eL.faqManageDonation,title:"How can I manage my recurring donation or request a receipt?",content:"You can cancel a recurring donation, request a refund, update your payment method, or adjust your donation amount through your <a class='url' href='https://yaqeeninstitute.org/dashboard/donations' target='_blank'><strong>donation profile</strong></a>."},{id:eL.faqErrorDonation,title:"Why is my donation not going through?",content:`If youâre experiencing errors while donating, try clearing your browser history, cookies, and cache.`}]},{country:"CA",faqs:[{id:eL.faqTax,title:"Is my donation tax deductible?",content:"Yaqeen Institute for Islam
15ic Research Canada is a registered charity in Canada and your donation is tax-deductible within the guidelines of Canadian law. Our Charity number is 710253113RR0001. To claim a donation as a deduction on your taxes, please keep your email donation receipt as your official record. We'll send it to you upon successful completion of your donation."},eB,{id:eL.faqUsage,title:"How does Yaqeen use my donation?",content:"Yaqeen is an Islamic research institution committed to dismantling doubts and nurturing conviction through research and educational resources. Your donation directly supports the creation of research-backed content that supports this mission. For full transparency, you can view our latest annual report for a detailed breakdown of how your contributions are utilized on <a class='url' href='https://yaqeeninstitute.ca/annual-reports' target='_blank'><strong>this page</strong></a>."},{id:eL.faqManageDonation,title:"How can I manage my recurring donation or request a receipt?",content:"You can cancel a recurring donation, request a refund, update your payment method, or adjust your donation amount through your <a class='url' href='https://yaqeeninstitute.ca/dashboard/donations' target='_blank'><strong>donation profile</strong></a>."},{id:eL.faqErrorDonation,title:"Why is my donation not going through?",content:`If youâre experiencing errors while donating, try clearing your browser history, cookies, and cache.`}]},{country:"MY",faqs:[{id:eL.faqTax,title:"Is my donation tax exempt?",content:"Yayasan Yaqeen Malaysia is an incorporated charity under the Prime Minister's Department of Malaysia. We are in the process of obtaining tax exemption status from LHDNM."},eB,{id:eL.faqUsage,title:"How does Yaqeen use my donation?",content:"Yaqeen is an Islamic research institution committed to dismantling doubts and nurturing conviction through research and educational resources. Your donation directly supports the creation of research-backed content that supports this mission. For full transparency, you can view our latest annual report for a detailed breakdown of how your contributions are utilized on <a href='https://yaqeeninstitute.org.my/annual-reports' class='url' target='_blank'><strong>this page</strong></a>."},{id:eL.faqManageDonation,title:"How can I manage my recurring donation or request a receipt?",content:"You can cancel a recurring donation, request a refund, update your payment method, or adjust your donation amount through your <a href='https://yaqeeninstitute.org.my/dashboard/donations' target='_blank' class='url'><strong>donation profile</strong></a>."},{id:eL.faqErrorDonation,title:"Why is my donation not going through?",content:`If youâre experiencing errors while donating, try clearing your browser history, cookies, and cache.`}]},{country:"UK",faqs:[eB,{id:eL.faqUsage,title:"How does Yaqeen use my donation?",content:"Yaqeen is an Islamic research institution committed to dismantling doubts and nurturing conviction through research and educational resources. Your donation directly supports the creation of research-backed content that supports this mission. For full transparency, you can view our latest annual report for a detailed breakdown of how your contributions are utilized on <a class='url' href='https://yaqeeninstitute.org/annual-reports' target='_blank'><strong>this page</strong></a>."},{id:eL.faqManageDonation,title:"How can I manage my recurring donation or request a receipt?",content:"You can cancel a recurring donation, request a refund, update your payment method, or adjust your donation amount through your <a href='https://yaqeeninstitute.org.my/dashboard/donations' target='_blank' class='url'><strong>donation profile</strong></a>."},{id:eL.faqErrorDonation,title:"Why is my donation not going through?",content:"If you're experiencing errors while donating, try clearing your browser history, cookies, and cache."}]}],eW=(0,n.memo)(function(e){var t;let{currency:a}=e,i=[g.Sj.USD,g.Sj.CAD,g.Sj.MYR],r=o.xZ[a]||"US",n=null==(t=eU.find(e=>e.country===r))||null==(t=t.faqs)?void 0:t.filter(e=>i.includes(a)||e.id!==eL.faqTax);return(0,eu.jsxs)("div",{className:"mb-10 xl:mb-20",children:[(0,eu.jsx)(f.EY,{as:"p",color:"text-endeavour-500",weight:"font-bold xl:text-extrabold",fontSize:"text-2xl xl:text-3xl",letterSpacing:"xl:tracking-tight tracking-tight-1",children:"FAQ"}),(0,eu.jsx)("div",{className:"border-b-2 border-carrot-500 w-10 mt-4"}),(0,eu.jsx)("div",{className:"content divider-line",children:null==n?void 0:n.map(e=>{var t;return(0,eu.jsxs)(f.nD,{className:"py-6",children:[(0,eu.jsx)(f.Xo,{"aria-controls":`panel-faq-${e.id}`,id:`faq-${e.id}`,onExpand:()=>(0,d.$s)("donate_faq","expand",`faq: ${e.id}`),children:(0,eu.jsx)("div",{className:"mb-2",children:(0,eu.jsx)(f.DZ,{level:3,fontSize:"xl:text-xl text-lg",weight:"font-semibold",children:e.title})})}),(0,eu.jsx)(f.vr,{children:(0,eu.jsx)("div",{className:"content pt-5",children:(0,eu.jsx)(f.EY,{as:"p",color:"text-grey-800",fontFamily:"font-source-serif-pro",lineHeight:"leading-relaxed",children:(0,eu.jsx)("span",{dangerouslySetInnerHTML:{__html:(t=e.content,eY().load(t).html())}})})})})]},e.title)})})]})});var eG=a(24519),eZ=a.n(eG);let eQ=()=>{var e;let{donationType:t,paymentSchedule:a,amounts:i}=S();if(t!==g.ZU.RamadanDaily||!a||!Array.isArray(a)||!(0,x.Dt)(a))return null;let r=a[0].totalAmount,n=i.totalAmount,s=a[0].currencySymbol;return(0,eu.jsx)("div",{className:"py-3 mt-4 px-2 bg-jordy-50 rounded",children:(null==a?void 0:a.length)>0&&(0,x.Dt)(a)&&(0,eu.jsxs)(f.EY,{as:"p",fontSize:"text-sm",color:"text-grey-900",lineHeight:"leading-5",children:[eZ().decode(s),r," (",(0,eu.jsxs)("strong",{children:[eZ().decode(s),n," in total"]}),") will be processed nightly over ",a.length," days from"," ",(0,eO.format)(null==a?void 0:a[0].date,"MMMM D")," to"," ",(0,eO.format)(null==a||null==(e=a.slice(-1))||null==(e=e.pop())?void 0:e.date,"MMMM D, YYYY")]})})},eV=()=>{let{donationType:e,form:t,splitAmount:a,setSplitAmount:i}=S(),{register:r,control:s,setValue:l}=t,c=(0,h.FH)({control:s,name:"split_amount",defaultValue:a});return((0,n.useEffect)(()=>
15{l("split_amount",c,{shouldValidate:!0}),i(c)},[c]),e!==g.ZU.LastTenNights)?null:(0,eu.jsx)("div",{className:"pt-6",children:(0,eu.jsx)(h.xI,{as:(0,eu.jsx)(f.z6,{name:"split_amount",label:"How would you like to split your donation?",labelClassName:"block text-grey-800 text-sm font-bold mb-3 leading-tight",children:(0,eu.jsxs)("div",{className:"space-y-3",children:[(0,eu.jsx)(f.sx,{value:"equally",children:o.r6.equally}),(0,eu.jsx)(f.sx,{value:"more_on_odd",children:o.r6.more_on_odd}),(0,eu.jsx)(f.sx,{value:"more_on_27th",children:o.r6.more_on_27th})]})}),name:"split_amount",control:s,ref:r,rules:{required:!0},defaultValue:a})})};var eK=a(28734);let eJ=e=>{let{title:t,subtitle:a,donationType:i,pageSlug:r,isBorder:n=!0}=e,s=(0,eK.ox)();return(0,eu.jsxs)("div",{className:"h-full flex flex-col",children:[t?"string"==typeof t?(0,eu.jsx)(ay.cq,{align:"xl:text-left text-center",children:t}):(0,eu.jsx)("div",{className:"flex-1",children:t}):(0,eu.jsx)(ay.cq,{align:"xl:text-left text-center",children:(0,x.n$)(i,r)}),n&&(0,eu.jsx)("div",{className:"border-b-4 border-carrot-500 container w-20 mt-6 mx-auto xl:mx-0"}),(0,eu.jsx)("div",{className:"description mt-6 xl:mb-20 mb-10 xl:text-left text-center",children:(0,eu.jsx)(f.EY,{as:"p",fontFamily:"font-source-serif-pro",color:"text-grey-900/75",children:a||(0,x.ZB)(i,s,r)})})]})},eX=(0,n.memo)(function(){let{paymentSchedule:e,shouldShowPaymentSchedule:t}=S();return t()?(0,eu.jsxs)(eu.Fragment,{children:[(0,eu.jsx)("div",{className:"pt-6",children:(0,eu.jsx)("div",{className:"text-grey-900 font-semibold leading-5-s-2 text-base",children:"Schedule"})}),(0,eu.jsx)("div",{className:"pt-4 grid grid-cols-3 md:grid-cols-5 xl:grid-cols-4 gap-y-2 gap-x-1 pb-6 border-b border-grey-100",children:e.map((e,t)=>(0,eu.jsxs)("div",{className:"box bg-jordy-50 py-2 pl-2 border border-jordy-200 rounded",children:[(0,eu.jsx)("div",{className:"text-jordy-900 font-semibold text-base leading-5-s-2",children:e.nightOfRamadan}),(0,eu.jsx)("div",{className:"text-xss font-normal leading-tight text-jordy-700",children:x.Y5(e.date)}),(0,eu.jsxs)("div",{className:"pt-4 text-base font-bold leading-tight text-yaqeen-primary-500",children:[(0,eu.jsx)("span",{className:"text-xs",children:eZ().decode(e.currencySymbol)}),`${eT()(e.totalAmount)}`]})]},t))})]}):(0,eu.jsx)(eu.Fragment,{})}),e0=(0,n.memo)(function(){let{currency:e,donationType:t,form:a,amounts:{amount:i}}=S(),{setValue:r}=a,n=(0,x.vi)(e,t),s="text-opacity-50 group-hover:text-white group-hover:text-opacity-100 group-focus:text-white group-focus:text-opacity-100";return(0,eu.jsx)(eu.Fragment,{children:n.map(a=>{let[n,l]=a,o=Number(i)===n;return(0,eu.jsx)(f.$n,{className:`group h-[42px] px-3 py-[9px] border box-border rounded-[4px] hover:bg-carrot-500 hover:border-transparent focus:bg-carrot-500 focus:border-transparent active:bg-carrot-500 active:border-transparent ${o?"bg-carrot-500 border-transparent":"border-grey-200"}`,onPress:()=>{(0,d.$s)("donate_amounts","click",`amount: ${n}, currency: ${e.title}`),(0,N.trackDonationEvent)("amount_selected",{amount:Number(n),currency:e.title}),r("amount",n,{shouldValidate:!0})},children:(0,eu.jsxs)(f.EY,{as:"p",fontSize:"text-sm",weight:"font-semibold",letterSpacing:"tracking-tight-1",lineHeight:"leading-6",color:o?"text-white":"text-black",className:o?"":s,children:[l,t===g.ZU.Monthly&&(0,eu.jsx)(f.EY,{fontSize:"text-xss",weight:"font-bold",color:o?"text-white":"text-black",className:o?"":s,children:"/mo"})]})},n)})})}),e1=function(e){return e.crypto="crypto",e.stocks="stocks",e.wire="wire",e.ach="ach",e.zelle="zelle",e.check="check",e.paypal="paypal",e.facebook="facebook",e.instagram="instagram",e.matchedGifts="matched_gifts",e.etransfer="etransfer",e.online_transfer="online_transfer",e}({});function e2(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,i)}return a}function e4(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};
15t%2?e2(Object(a),!0).forEach(function(t){(0,i.A)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):e2(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}let e5="url text-grey-900",e3={as:"p",fontSize:"text-sm",color:"text-grey-800",fontFamily:"font-source-serif-pro",lineHeight:"leading-5"},e6="ways-to-give",e9=(e,t)=>(0,d.$s)(e6,"click",`way: ${e}, country: ${t}, email: true`),e8=(e,t)=>(0,d.$s)(e6,"click",`way: ${e}, country: ${t}, link: true`),e7=e=>{let{heading:t,children:a}=e;return(0,eu.jsxs)("div",{className:"mt-6",children:[(0,eu.jsx)(f.EY,{as:"p",color:"text-jordy-900",fontSize:"text-xss",weight:"font-bold",lineHeight:"leading-3",letterSpacing:"tracking-wider",className:"uppercase",children:t}),(0,eu.jsx)("div",{className:"mt-1 bg-jordy-50 border-jordy-200 border-1 px-2 py-3 rounded select-all",children:(0,eu.jsx)(f.EY,{as:"p",weight:"font-semibold",fontSize:"text-sm",lineHeight:"leading-5",children:a})})]})},te=[{country:"US",ways:[{type:e1.crypto,title:"Cryptocurrency",icon:"/static/images/icons/cryptocurrency.svg",hideFromSustainPage:!0,element:(0,eu.jsxs)(f.EY,e4(e4({},e3),{},{children:["Email"," ",(0,eu.jsx)(f.qh,{href:`mailto:${p.rx.us}?subject=(US) Cryptocurrency donation&body=Tell me more about how to donate with Cryptocurrency!`,className:e5,onClick:()=>e9(e1.crypto,"US"),children:p.rx.us})," ","for instructions."]}))},{type:e1.stocks,title:"Stocks",icon:"/static/images/icons/stocks.svg",hideFromSustainPage:!0,element:(0,eu.jsxs)(f.EY,e4(e4({},e3),{},{children:["Email"," ",(0,eu.jsx)(f.qh,{href:`mailto:${p.rx.us}?subject=(US) Stocks donation&body=Tell me more about how to donate with Stocks!`,className:e5,onClick:()=>e9(e1.stocks,"US"),children:p.rx.us})," ","for instructions."]}))},{type:e1.wire,title:"Wire",icon:"/static/images/icons/wire.svg",hideFromSustainPage:!0,element:(0,eu.jsxs)(f.EY,e4(e4({},e3),{},{children:["Email"," ",(0,eu.jsx)(f.qh,{href:`mailto:${p.rx.us}?subject=(US) Wire donation&body=Tell me more about how to make Wire donations!`,className:e5,onClick:()=>e9(e1.wire,"US"),children:p.rx.us})," ","for instructions."]}))},{type:e1.ach,title:"ACH",icon:"/static/images/icons/ach.svg",element:(0,eu.jsxs)(f.EY,e4(e4({},e3),{},{children:["Email"," ",(0,eu.jsx)(f.qh,{href:`mailto:${p.rx.us}?subject=(US) ACH donation&body=Tell me more about how to make ACH donations!`,className:e5,onClick:()=>e9(e1.ach,"US"),children:p.rx.us})," ","for instructions."]}))},{type:e1.zelle,title:"Zelle",icon:"/static/images/icons/zelle.svg",hideFromSustainPage:!1,element:(0,eu.jsxs)(f.EY,e4(e4({},e3),{},{children:["Email"," ",(0,eu.jsx)(f.qh,{href:`mailto:${p.rx.us}?subject=(US) ACH Zelle donation&body=Tell me more about how to donate with Zelle!`,className:e5,onClick:()=>e9(e1.zelle,"US"),children:p.rx.us})," ","for instructions."]}))},{type:e1.check,title:"Check",icon:"/static/images/icons/check.svg",hideFromSustainPage:!0,element:(0,eu.jsxs)("div",{children:[(0,eu.jsx)(f.EY,e4(e4({},e3),{},{children:"Make checks payable to âYaqeen Research Instituteâ if general or âYaqeen Endowmentâ if supporting the waqf and mail to:"})),(0,eu.jsx)(e7,{heading:"(General donation) Payable to",children:"Yaqeen Research Institute"}),(0,eu.jsx)(e7,{heading:"(Endowment) Payable to",children:" Yaqeen Endowment"}),(0,eu.jsxs)(e7,{heading:"Mail to",children:[" ","Yaqeen Institute for Islamic Research",(0,eu.jsx)("br",{})," 7750 N. MacArthur Blvd",(0,eu.jsx)("br",{}),"Suite 120237, Irving, TX 75063"]})]})},{type:e1.paypal,title:"Paypal",icon:"/static/images/icons/paypal.svg",hideFromSustainPage:!1,element:(0,eu.jsxs)(f.EY,e4(e4({},e3),{},{children:["The"," ",(0,eu.jsx)(f.qh,{href:"https://www.paypal.com/us/fundraiser/charity/2521795",className:e5,target:"_blank",onClick:()=>e8(e1.paypal,"US"),children:"PayPal Giving Fund"})," ","will cover 100% of the processing fees for your donation to Yaqeen."]}))},{type:e1.facebook,title:"Facebook",icon:"/static/images/icons/fb.svg",hideFromSustainPage:!0,element:(0,eu.jsxs)(f.EY,e4(e4({},e3),{},{children:["Create a Yaqeen"," ",(0,eu.jsx)(f.qh,{href:"http://fb.com/YaqeenInstitute",className:e5,target:"_blank",onClick:()=>e8(e1.facebook,"US"),children:"Fundraiser on Facebook"})," ","for your birthday!"]}))},{type:e1.instagram,title:"Instagram",icon:"/static/images/icons/instagram.svg",hideFromSustainPage:!0,element:(0,eu.jsxs)(f.EY,e4(e4({},e3),{},{children:["Share a"," ",(0,eu.jsx)(f.qh,{href:"https://www.instagram.com/yaqeeninstitute/",className:e5,target:"_blank",onClick:()=>
15e8(e1.instagram,"US"),children:"âDonateâ sticker on your Instagram story"})," ","or create a Yaqeen Fundraiser!"]}))},{type:e1.matchedGifts,title:"Matched Gifts",icon:"/static/images/icons/matched-gifts.svg",element:(0,eu.jsxs)(f.EY,e4(e4({},e3),{},{children:["See if your employer will"," ",(0,eu.jsx)(f.qh,{href:"http://yaqeeninstitute.org/match-gift",className:e5,target:"_blank",onClick:()=>e8(e1.matchedGifts,"US"),children:"match your donation"}),"!"]}))}]},{country:"CA",ways:[{type:e1.stocks,title:"Stocks",icon:"/static/images/icons/stocks.svg",element:(0,eu.jsxs)(f.EY,e4(e4({},e3),{},{children:["Email"," ",(0,eu.jsx)(f.qh,{href:`mailto:${p.rx.ca}?subject=(CA) Stocks donation&body=Tell me more about how to donate with Stocks!`,className:e5,onClick:()=>e9(e1.stocks,"CA"),children:p.rx.ca})," ","for instructions."]}))},{type:e1.wire,title:"Wire",icon:"/static/images/icons/wire.svg",element:(0,eu.jsxs)(f.EY,e4(e4({},e3),{},{children:["Email"," ",(0,eu.jsx)(f.qh,{href:`mailto:${p.rx.ca}?subject=(CA) Wire donation&body=Tell me more about how to make Wire donations!`,className:e5,onClick:()=>e9(e1.wire,"CA"),children:p.rx.ca})," ","for instructions."]}))},{type:e1.etransfer,title:"eTransfer",icon:"/static/images/icons/wire.svg",element:(0,eu.jsxs)("div",{children:[(0,eu.jsx)(f.EY,e4(e4({},e3),{},{children:"Please note that you can now use e-transfer directly on our website, exclusively for one-time donations. Here's how:"})),(0,eu.jsx)("br",{}),(0,eu.jsx)(f.EY,e4(e4({},e3),{},{children:(0,eu.jsxs)("ul",{className:"list-disc list-outside pl-5",children:[(0,eu.jsxs)("li",{children:["Select ",(0,eu.jsx)("strong",{children:"One-time"})," donation."]}),(0,eu.jsx)("li",{children:"Choose the amount you'd like to donate."}),(0,eu.jsxs)("li",{children:["Click ",(0,eu.jsx)("strong",{children:"Next: Payment details"}),"."]}),(0,eu.jsxs)("li",{children:["Select ",(0,eu.jsx)("i",{children:"Interac"})," e-Transfer\xae as your payment option."]}),(0,eu.jsx)("li",{children:"Enter your name and address."}),(0,eu.jsx)("li",{children:"Follow the instructions to complete the e-transfer."})]})})),(0,eu.jsx)(f.EY,{as:"p",color:"text-grey-700",fontSize:"text-xs",lineHeight:"leading-5-s",className:"mt-6 italic",fontFamily:"font-source-serif-pro",children:"Note: E-transfers can only be sent and received by Canadian bank accounts in Canadian dollars only."})]})},{type:e1.check,title:"Check",icon:"/static/images/icons/check.svg",element:(0,eu.jsxs)("div",{children:[(0,eu.jsx)(f.EY,e4(e4({},e3),{},{children:"Make checks payable to âYaqeen Instituteâ and mail to:"})),(0,eu.jsx)(e7,{heading:"Payable to",children:"Yaqeen Institute"}),(0,eu.jsxs)(e7,{heading:"Mail to",children:["Yaqeen Institute Canada",(0,eu.jsx)("br",{}),"6045 Creditview Rd, Suite #204",(0,eu.jsx)("br",{}),"Mississauga, ON L5V 0B1"]})]})},{type:e1.paypal,title:"Paypal",icon:"/static/images/icons/paypal.svg",element:(0,eu.jsxs)(f.EY,e4(e4({},e3),{},{children:["The"," ",(0,eu.jsx)(f.qh,{href:"https://www.paypal.com/donate/?hosted_button_id=UKS3DYVXQCPAC",className:e5,target:"_blank",onClick:()=>e8(e1.paypal,"CA"),children:"PayPal Giving Fund"})," ","will cover 100% of the processing fees for your donation to Yaqeen."]}))},{type:e1.matchedGifts,title:"Matched Gifts",icon:"/static/images/icons/matched-gifts.svg",element:(0,eu.jsxs)(f.EY,e4(e4({},e3),{},{children:["See if your employer will"," ",(0,eu.jsx)(f.qh,{href:"http://yaqeeninstitute.ca/match-gift",className:e5,target:"_blank",onClick:()=>e8(e1.matchedGifts,"CA"),children:"match your donation"}),"!"]}))}]},{country:"MY",ways:[{type:e1.check,title:"Cheque",icon:"/static/images/icons/check.svg",element:(0,eu.jsxs)("div",{children:[(0,eu.jsx)(f.EY,e4(e4({},e3),{},{children:"Make cheques payable to âYayasan Yaqeen Malaysiaâ and either"})),(0,eu.jsx)(e7,{heading:"Payable to",children:"Yayasan Yaqeen Malaysia"}),(0,eu.jsxs)(e7,{heading:"Mail to",children:["Yayasan Yaqeen Malaysia ",(0,eu.jsx)("br",{}),"Level 15, Dpulze,",(0,eu.jsx)("br",{}),"Lingkaran Cyber Point Timur, ",(0,eu.jsx)("br",{}),"Cyber 12, 63000, ",(0,eu.jsx)("br",{}),"Cyberjaya, Malaysia ",(0,eu.jsx)("br",{}),"03-83208192"]}),(0,eu.jsxs)(f.EY,e4(e4({},e3),{},{className:"mt-6",children:["or direct cheque deposit and email deposit slip to"," ",(0,eu.jsx)(f.qh,{href:`mailto:${p.rx.my}`,className:e5,onClick:()=>e9(e1.check,"MY"),children:p.rx.my})," "]})),(0,eu.jsx)(e7,{heading:"Beneficiary Bank",children:"Bank Islam Malaysia Berhad"}),(0,eu.jsx)(e7,{heading:"Beneficiary Account Name",children:"Yayasan Yaqeen Malaysia"}),(0,eu.jsx)(e7,{heading:"Beneficiary Account Number",children:"1401-40101-57411"})]})},{type:e1.online_transfer,title:"Online transfer",icon:"/static/images/icons/wire.svg",element:(0,eu.jsxs)("div",{children:[(0,eu.jsxs)(f.EY,e4(e4({},e3),{},{children:["Email"," ",(0,eu.jsx)(f.qh,{href:`mailto:${p.rx.my}`,className:e5,onClick:()=>e9(e1.online_transfer,"MY"),children:p.rx.my})," ","for instructions."]})),(0,eu.jsx)(e7,{heading:"Beneficiary Account Name",children:"Yayasan Yaqeen Malaysia"}),(0,eu.jsx)(e7,{heading:"Beneficiary Bank",children:"Bank Islam Malaysia Berhad"}),(0,eu.jsx)(e7,{heading:"Beneficiary Account Number",children:"1401-40101-57411"})]})},{type:e1.matchedGifts,title:"Matched Gifts",icon:"/static/images/icons/matched-gifts.svg",element:(0,eu.jsxs)(f.EY,e4(e4({},e3),{},{children:["See if your employer will"," ",(0,eu.jsx)(f.qh,{href:"http://yaqeeninstitute.org.my/match-gift",className:e5,target:"_blank",onClick:()=>e8(e1.matchedGifts,"MY"),children:"match your donation"}),"!"]}))}]}],tt=e=>{let{pathname:t}=(0,s.useRouter)(),a=t&&t.includes("sustain");return e.toUpperCase()===g.ce.UK?{waysToGive:[]}:{waysToGive:(te.find(t=>t.country.toLowerCase()===e.toLowerCase())||te.find(e=>e.country===g.ce.US)).ways.filter(e=>!a||!e.hideFromSustainPage)}},ta=e=>{let{country:t}=e,{waysToGive:a}=tt(t);return a.length>0&&(0,eu.jsxs)("div",{className:"ways-to-give",children:[(0,eu.jsx)(f.EY,{weight:"font-bold",fontSize:"text-3xl",color:"text-endeavour-500",lineHeight:"leading-8",letterSpacing:"tracking-tight-1",children:"Other ways to donate"}),(0,eu.jsx)("div",{className:"border-b-2 border-carrot-500 container w-10 mt-4"}),(0,eu.jsx)("div",{className:"mt-5",children:(0,eu.jsx)("div",{className:"grid grid-cols-4 gap-x-4 gap-y-6 ",children:a.map((e,t)=>(0,eu.jsxs)("div",{className:"bg-white px-4 py-6 rounded-lg ",children:[(0,eu.jsxs)("div",{className:"flex flex-row space-x-3 mb-6",children:[(0,eu.jsx)(e_(),{loader:eS.R2,src:e.icon,alt:e.title,height:32,width:32}),(0,eu.jsx)(f.EY,{as:"p",fontSize:"text-lg",weight:"font-semibold",color:"text-black",className:"opacity-75",children:e.title})]}),e.element]},t))})})]})};var ti=a(95044),tr=a(91104),tn=a(18059);
15function ts(e){let{country:t}=e,{waysToGive:a}=tt(t);return a.length>0&&(0,eu.jsxs)(eu.Fragment,{children:[(0,eu.jsx)(f.EY,{weight:"font-bold",fontSize:"text-2xl",color:"text-endeavour-500",lineHeight:"leading-8",letterSpacing:"tracking-tight-1",children:"Other ways to donate"}),(0,eu.jsx)("div",{className:"border-b-2 border-carrot-500 container w-10 mt-4"}),(0,eu.jsx)("div",{className:"mt-4",children:(0,eu.jsx)("div",{className:"space-y-2",children:a.map(e=>(0,eu.jsx)(ti.EN,{as:"div",children:t=>{let{open:a}=t;return(0,eu.jsxs)("div",{className:"rounded-lg bg-white p-4",children:[(0,eu.jsx)("dt",{children:(0,eu.jsxs)(ti.EN.Button,{className:"flex w-full items-start justify-between text-left text-gray-900",children:[(0,eu.jsxs)("div",{className:"flex items-center",children:[(0,eu.jsx)(e_(),{loader:eS.R2,src:e.icon,alt:e.title,height:32,width:32}),(0,eu.jsx)(f.EY,{as:"span",fontSize:"text-lg",weight:"font-semibold",color:"text-black",className:"opacity-75 pl-3",children:e.title})]}),(0,eu.jsx)("span",{className:"ml-4 flex h-7 items-center",children:a?(0,eu.jsx)(tr.A,{className:"h-8 w-8 text-carrot-600 font-extrabold text-2xl","aria-hidden":"true"}):(0,eu.jsx)(tn.A,{className:"h-8 w-8 text-carrot-600 font-extrabold text-2xl","aria-hidden":"true"})})]})}),(0,eu.jsx)(ti.EN.Panel,{as:"dd",className:"mt-4",children:e.element})]})}},e.type))})})]})}let tl=e=>{let{className:t=""}=e;return(0,eu.jsxs)("div",{className:`flex flex-col items-center xl:items-start ${t}`,children:[(0,eu.jsxs)(f.DZ,{level:1,fontSize:"xl:text-7xl text-4xl",weight:"font-extrabold",letterSpacing:"tracking-tighter",lineHeight:"xl:leading-none leading-tight",className:"text-center xl:text-left",children:[(0,eu.jsx)("span",{className:"text-white block",children:"Keep funding faith."}),(0,eu.jsxs)("span",{className:"text-carrot-500",children:["Donate before the","\xa0","year","\xa0","ends."]})]}),(0,eu.jsx)("div",{className:"border-b-4 border-carrot-500 w-20 mt-4 mx-auto xl:mx-0 xl:mt-6","aria-hidden":"true"})]})};function to(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,i)}return a}function tc(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?to(Object(a),!0).forEach(function(t){(0,i.A)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):to(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}let td=(0,n.memo)(function(e){let{isSustainerPage:t,title:a,subTitle:i,hideBorder:r=!1}=e,{donationType:n,donationUrl:s}=S();return(0,eu.jsxs)("div",{className:`${t?"xl:col-span-5":"xl:col-span-6 xl:pr-20"} flex flex-col`,children:[(0,eu.jsx)("div",{className:"flex-1 flex flex-col",children:(0,eu.jsx)(eJ,{title:a,subtitle:i,donationType:n,pageSlug:s,isBorder:!t&&!r})}),t?(0,eu.jsx)("div",{className:"flex flex-col mt-auto",children:(0,eu.jsxs)("div",{className:"xl:mb-0 mb-10",children:[(0,eu.jsx)("div",{className:"border-b-4 border-carrot-500 w-20 mb-6"}),(0,eu.jsxs)(f.EY,{as:"p",fontSize:"xl:text-xl text-base",letterSpacing:"tracking-tight-1",color:"text-grey-800",weight:"font-semibold",lineHeight:"leading-tight",children:["As a ",(0,eu.jsx)("span",{className:"text-carrot-500",children:"Sustainer"}),", you're part of the Yaqeen team. Your continuous support enables us to continue dismantling doubts and nurturing conviction on a global scale."]})]})}):null]})}),th=(0,n.memo)(function(){let{donationUrl:e,donationType:t,setDonationType:a,ramadanStartDate:i,dhulHijjahStartDate:r}=S(),s=(0,n.useMemo)(()=>(0,p.hx)(e,i,r),[e,i,r]),o=(0,n.useMemo)(()=>{let e=s.findIndex(e=>e.type===t);return -1===e?0:e},[s,t]),{0:h,1:u}=(0,n.useState)(o);(0,n.useEffect)(()=>{o!==h&&u(o)},[o]);let m=[g.ci.Donate,g.ci.YearEndDonate,g.ci.LastTenNights,g.ci.DhulHijjah].includes(e),x=[g.ci.DonateDaily,g.ci.DonateWeekly].includes(e)?(0,eu.jsx)("div",{className:"mb-6",children:(0,eu.jsx)("div",{className:"text-teal-900 px-4 py-3 shadow-md",role:"alert",children:(0,eu.jsxs)("div",{className:"flex",children:[(0,eu.jsx)("div",{className:"py-1",children:(0,eu.jsx)(l.g,{icon:c.iW,className:"xl:w-5 w-3 xl:h-6 h-5 text-blue-500 mr-2"})}),(0,eu.jsxs)("div",{children:[(0,eu.jsxs)("p",{className:"font-bold",children:[t," Donations"]}),(0,eu.jsxs)("p",{className:"text-sm",children:["Your donations will be processed on a ",t.toLowerCase()," basis until you cancel your subscription."]})]})]})})}):null;return x||(m?(0,eu.jsx)("div",{className:"mb-6",children:(0,eu.jsx)(f.tU,{ariaLabel:"donation type",onChange:e=>{var t;let i=null==(t=s[e])?void 0:t.type;i&&(u(e),a(i),(0,d.$s)("donate_type","click",`type: ${i}`))},value:h,type:"donate",children:s.map((e,t)=>(0,eu.jsx)(f.Xb,{label:e.title,labelSize:"xl:text-lg",type:"donate",value:t,className:"w-1/2",icon:e.type===g.ZU.Monthly?"heart":null},e.type))})}):null)}),tu=(0,n.memo)(function(){var e,t;let{amounts:{amount:a},currency:i,donationType:s,form:{control:l,register:c,formState:m,setValue:p,trigger:y},paymentSchedule:b,setAmount:v,setCurrency:w}=S(),j=(0,h.FH)({control:l,name:"amount",defaultValue:a}),k=(0,h.FH)({control:l,name:"currency",defaultValue:i.title});(0,n.useEffect)(()=>{v(j)},[j,v]);let N=(0,n.useCallback)(()=>(0,x.a7)(s)&&b?(0,x.jY)(b,i):i.minAmount,[i,s,b])();(0,n.useEffect)(()=>{a&&y("amount")},[N,a,y]);let _=e=>{(0,x.a7)(s)&&(0,d.$s)("donate_amounts","change",`type: ${s}, amount: ${e.floatValue}, currency: ${i.title}, timestamp: ${Date.now()}`),p("amount",e.floatValue,{shouldValidate:!0})};return(0,eu.jsxs)(eu.Fragment,{children:[(0,eu.jsx)("div",{className:"text-grey-800 font-bold text-sm pb-1.5",children:{[g.ZU.DhulHijjah]:"Total donation amount",[g.ZU.RamadanDaily]:"Total donation amount",[g.ZU.LastTenNights]:"Total donation amount",[g.ZU.Ramadan27]:"Donation amount",[g.ZU.Daily]:"Daily amount",[g.ZU.Weekly]:"Weekly amount"}[s]??"Amount"}),(0,eu.jsxs)("div",{className:"grid grid-cols-3 gap-2 items-start",children:[(0,eu.jsx)(e0,{}),(0,eu.jsxs)("div",{className:"col-span-2",children:[(0,eu.jsx)("div",{id:"input-currency",className:"border h-[42px] box-border border-grey-200 rounded-[4px] overflow-hidden",children:(0,eu.jsxs)("div",{className:"flex items-center",children:[(0,eu.jsx)("select",{value:k,onChange:e=>{w(o.$i.find(t=>t.title===e.target.value)||o.$i[0])},ref:c,name:"currency",className:"form-select py-[9px] pr-7 block bg-white border-t-0 border-b-0 border-l-0 border-r-1 border-grey-200",children:o.$i.map(e=>(0,eu.jsx)("option",{value:e.title,children:e.title},e.title))}),(0,eu.jsx)("div",{className:"w-full",children:(0,eu.jsx)(h.xI,{name:"amount",control:l,rules:{required:"Amount is required",validate:e=>{let t=e.replace?e.replace(/,/g,""):e;return t<N?`Amount must be at least ${N}`:!(t>i.maxAmount)||`Amount must be less than ${i.maxAmount}`}},defaultValue:a,render:e=>{let t=Object.assign({},((0,r.A)(e),e));return(0,eu.jsxs)("div",{className:"relative",children:[(0,eu.jsx)(u.A,tc(tc({},t),{},{customInput:f.A_,placeholder:"0.00","aria-label":"Amount",value:j,type:"tel",thousandSeparator:!0,decimalScale:2,onValueChange:_,isAllowed:e
15=>{let{formattedValue:t,floatValue:r}=e;return void 0===r||"0"===t||a<10||r/10<=i.maxAmount},isNumericString:!0,allowNegative:!1,className:"py-[9px] px-3 leading-6 appearance-none block w-full text-grey-900 placeholder-black/25 border-0 leading-tight focus:outline-none focus:bg-white"})),s===g.ZU.Monthly&&(0,eu.jsx)("div",{className:"absolute inset-y-0 right-0 flex items-center px-2 text-grey-700",children:"/mo"})]})}})})]})}),(null==(e=m.errors.amount)?void 0:e.message)&&(0,eu.jsx)(f.EY,{color:"text-alert-dark",fontSize:"text-xs",children:null==(t=m.errors.amount)?void 0:t.message})]})]})]})}),tm=(0,n.memo)(function(){let{amounts:{amount:e,coverTxFee:t},currency:a,donationType:i,form:{control:r,register:s},estimatedTxFee:l,setCoverTxFee:o}=S(),c=(0,x.ej)(e,l).formattedTxFee,d=(0,h.FH)({control:r,name:"cover_fee",defaultValue:t});(0,n.useEffect)(()=>{d!==t&&o(d)},[d,t,o]);let u={[g.ZU.Daily]:"daily transaction fee",[g.ZU.RamadanDaily]:"daily transaction fee",[g.ZU.LastTenNights]:"daily transaction fee",[g.ZU.DhulHijjah]:"daily transaction fee",[g.ZU.Ramadan27]:"transaction fee",[g.ZU.Weekly]:"weekly transaction fee"}[i]??"transaction fee",m=c?`(${a.symbol}${c}${i===g.ZU.Monthly?"/mo":""})`:"";return(0,eu.jsx)("div",{className:"py-6 border-b border-grey-100",children:(0,eu.jsx)(f.$Q,{labelClassName:"","aria-label":"cover transaction fee",children:(0,eu.jsx)(f.Sc,{ref:s,name:"cover_fee",defaultSelected:d,children:(0,eu.jsxs)(f.EY,{color:"text-grey-900",children:[(0,eu.jsxs)("span",{className:"font-semibold",children:["I'd like to cover the ",u]}),"\xa0",(0,eu.jsx)("span",{dangerouslySetInnerHTML:{__html:`so more of my donation goes to Yaqeen. ${m}`}})]})})})})}),tp=(0,n.memo)(function(){let{currency:e,designation:t,form:{control:a},setDesignation:i}=S(),r=(0,h.FH)({control:a,name:"designation",defaultValue:t});(0,n.useEffect)(()=>{i(r)},[r,i]);let s=o.cS.includes(e.title);return(0,eu.jsx)("div",{className:`pt-6 ${s?"hidden":""}`,children:(0,eu.jsx)(h.xI,{name:"designation",control:a,rules:{required:!0},defaultValue:t,render:e=>{let{onChange:t,value:a,name:i}=e;return(0,eu.jsx)(f.z6,{name:i,value:a,onChange:t,label:"Count as:",labelClassName:"block text-grey-800 text-sm font-bold mb-3 leading-tight",children:(0,eu.jsxs)("div",{className:"space-y-3",children:[(0,eu.jsx)(f.sx,{value:g.u0.General,children:o.MS.general}),(0,eu.jsx)(f.sx,{value:g.u0.Endowment,children:(0,eu.jsx)("span",{dangerouslySetInnerHTML:{__html:o.MS.endowment}})})]})})}})})}),tg=(0,n.memo)(function(){let{donationType:e,timezone:t,onTZChange:a}=S();return(0,x.a7)(e)?(0,eu.jsxs)("div",{className:"pt-6",children:[(0,eu.jsx)("label",{className:"text-grey-800 font-bold leading-4-s-2 pb-1 text-sm",htmlFor:"timezone-select",children:"Timezone"}),(0,eu.jsx)("select",{id:"timezone-select",value:t.title,onChange:a,className:"form-select block w-full border-grey-200",children:o.H8.map(e=>{let{title:t}=e;return(0,eu.jsx)("option",{value:t,children:t},t)})}),(0,eu.jsx)("p",{className:"pt-1 text-xs text-grey-800 leading-normal",children:"You will be charged in this timezone."})]}):null}),tf=(0,n.memo)(function(){var e;let{form:{control:t,register:a,errors:i},giveInMemoryHonor:r,memoryOrHonor:s,recipientName:l,setRecipientName:o,setGiveInMemoryHonor:c,setMemoryOrHonor:d}=S(),u=(0,h.FH)({control:t,name:"give_in_memory_honor",defaultValue:r}),m=(0,h.FH)({control:t,name:"memory_or_honor",defaultValue:s});return(0,n.useEffect)(()=>{c(u)},[u,c]),(0,n.useEffect)(()=>{d(m)},[m,d]),(0,eu.jsxs)("div",{children:[(0,eu.jsx)("div",{className:"py-6",children:(0,eu.jsx)(f.$Q,{label:"",labelClassName:"","aria-label":"give in honor of",children:(0,eu.jsx)(f.Sc,{name:"give_in_memory_honor",ref:a,defaultSelected:r,children:"Dedicate my donation in memory/honor of someone."})})}),r&&(0,eu.jsxs)("div",{children:[(0,eu.jsx)(h.xI,{as:(0,eu.jsx)(f.z6,{name:"memory_or_honor",label:"",labelClassName:"",children:(0,eu.jsxs)("div",{className:"xl:flex xl:space-x-10 space-y-3 space-x-0 xl:space-y-0",children:[(0,eu.jsx)(f.sx,{value:g.jp.Memory,children:"In memory of"}),(0,eu.jsx)(f.sx,{value:g.jp.Honor,children:"In honor of"})]})}),name:"memory_or_honor",control:t,rules:{required:!0},defaultValue:s||g.jp.Memory}),(0,eu.jsx)("div",{className:"my-6",children:(0,eu.jsx)(f.A_,{ref:a({required:"Please enter a name",maxLength:{value:100,message:"Maximum allowed length is 100 characters"},pattern:{value:/^[\x00-\x7F]+$/,message:"It can only contain English letters"}}),onChange:e=>o(e.target.value),placeholder:"Recipient name",value:l,name:"recipient_name",type:"text",labelClassName:"block text-grey-800 text-sm font-bold mb-1 tracking-tight-1",inputClassName:"form-input appearance-none block w-full text-grey-900 placeholder-grey-600 border border-grey-300 py-3 px-4 leading-tight focus:outline-none focus:bg-white",validationState:i.recipient_name?"invalid":"valid",validationMsg:i.recipient_name?null==(e=i.recipient_name)?void 0:e.message:""})})]})]})}),tx=(0,n.memo)(function(){let e=(e=>{switch(e.donationType){case g.ZU.RamadanDaily:case g.ZU.LastTenNights:case g.ZU.Ramadan27:return{label:"The first night of Ramadan was",options:m.v.options,selectedLabel:e.ramadanStartDate,onSelectByIndex:t=>e.setRamadanStartDate(m.v.options[t].label)};case g.ZU.DhulHijjah:return{label:"The first day of Dhul Hijjah is",options:m.NG.options,selectedLabel:e.dhulHijjahStartDate,onSelectByIndex:t=>e.setDhulHijjahStartDate(m.NG.options[t].label)};default:return null}})(S());return e?(0,eu.jsxs)("div",{className:"mt-3 mb-2",children:[(0,eu.jsx)("div",{className:"text-grey-800 font-bold text-sm mb-1.5",children:e.label}),(0,eu.jsx)("div",{className:"grid grid-cols-2 gap-2",children:e.options.map((t,a)=>(0,eu.jsx)(f.$n,{type:"button",className:`w-full py-2.5 rounded ${e.selectedLabel===t.label?"bg-carrot-500":"border border-grey-200"}`,onPress:()=>e.onSelectByIndex(a),children:(0,eu.jsx)(f.EY,{color:e.selectedLabel===t.label?"text-white":"text-black/50",weight:"font-bold",children:t.label})},t.label))})]}):null}),ty=(0,n.memo)(function(){let{donationType:e,paymentSchedule:t}=S();if(e!==g.ZU.Ramadan27||!t||0===t.length)return null;let a=t[0].date;return(0,eu.jsxs)("div",{className:"mt-3 p-3 bg-amber-50 border border-amber-200 rounded-md text-sm text-gray-700",children:["Your donation will be charged on"," ",(0,eu.jsx)("strong",{children:a.toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"})})," ","(27th night of Ramadan)"]})}),tb=e=>{let{title:t,subTitle:a,parentCallback:i,hideDesignation:r=!1,hideBorder:l=!1,variant:c="default"}=e,{currency:d,form:{register:h,handleSubmit:u},readyToCheckout:m,receiveMktEmails:p,onSubmit:g,setParentCallback:x,setReceiveMktEmails:y,paymentVerificationInProgress:b}=S(),{pathname:v}=(0,s.useRouter)(),w=v.includes("sustain"),j=o.xZ[d.title]||"US";if((0,n.useEffect)(()=>{x(i)},[i,x]),b)return(0,eu.jsx)("div",{className:"bg-gray-50 py-20 text-center",children:(0,eu.jsxs)(an.pO,{className:"flex-1",maxWidth:"xl:container sm:max-w-lg",padding:"px-4 xl:px-20",children:[(0,eu.jsx)("h1",{className:"text-endeavour-500 text-3xl font-extrabold",children:"Verifying your payment..."}),(0,eu.jsx)(f.EY,{as:"p",className:"mt-4 text-grey-700",children:"Please wait while we confirm your payment."})]})});if(m)return(0,eu.jsx)(ez,{});let k=()=>(0,eu.jsxs)("form",{method:"post",className:"w-full divide-y divide-grey-200",onSubmit:u(g),children:[(0,eu.jsxs)("div",{className:"donation-detail
15s",children:[(0,eu.jsx)(th,{}),(0,eu.jsx)(tu,{}),(0,eu.jsx)(tx,{}),(0,eu.jsx)(eQ,{}),(0,eu.jsx)(eV,{}),(0,eu.jsx)(tm,{}),(0,eu.jsx)(eX,{}),(0,eu.jsx)(ty,{}),!r&&(0,eu.jsx)(tp,{}),(0,eu.jsx)(tg,{}),(0,eu.jsx)("div",{className:"pt-8",children:(0,eu.jsx)(f.$Q,{label:"",labelClassName:"","aria-label":"receive marketing emails",children:(0,eu.jsx)(f.Sc,{name:"marketing_emails",ref:h,defaultSelected:p,onChange:y,children:"Email me regular updates of the latest Yaqeen content."})})}),(0,eu.jsx)(tf,{})]}),(0,eu.jsx)("div",{className:"form-action pt-6",children:(0,eu.jsx)(f.$n,{type:"submit",className:"bg-carrot-600 h-[42px] px-4 py-[9px] w-full rounded-[4px]",children:(0,eu.jsx)(f.EY,{color:"text-white",weight:"font-bold",letterSpacing:"tracking-tight-1",lineHeight:"leading-6",fontSize:"text-lg",children:w?"Donate monthly":"Next: Payment details"})})})]});return"year-end"===c?(0,eu.jsxs)("div",{className:"bg-gray-50",children:[(0,eu.jsx)("div",{className:"xl:hidden bg-endeavour-500 px-4 pt-14 pb-8",children:(0,eu.jsx)(tl,{className:"items-center"})}),(0,eu.jsxs)(an.pO,{className:"flex-1",maxWidth:"xl:container sm:max-w-lg",padding:"xl:px-20 px-0",children:[(0,eu.jsxs)("div",{className:"grid xl:grid-cols-10 gap-x-10 xl:mt-20 mb-10 xl:mb-15",children:[(0,eu.jsx)("div",{className:"hidden xl:block xl:col-span-6",children:(0,eu.jsx)("div",{className:"bg-endeavour-500 rounded-lg px-10 py-12 h-full flex flex-col justify-center",children:(0,eu.jsx)(tl,{className:"items-start"})})}),(0,eu.jsx)("div",{className:"xl:col-span-4 col-span-full",children:(0,eu.jsx)("div",{className:"bg-white xl:shadow-lg xl:rounded-lg xl:py-10 xl:px-6 py-6 px-4",children:k()})})]}),(0,eu.jsx)("div",{className:"xl:hidden px-4",children:(0,eu.jsx)(ts,{country:j})}),(0,eu.jsx)("div",{className:"hidden xl:block",children:(0,eu.jsx)(ta,{country:j})}),(0,eu.jsx)("div",{className:"mt-10 xl:mt-20 px-4 xl:px-0 pb-10",children:(0,eu.jsx)(eW,{currency:d.title})})]})]}):(0,eu.jsx)("div",{className:"bg-gray-50",children:(0,eu.jsxs)(an.pO,{className:"flex-1",maxWidth:"xl:container sm:max-w-lg",padding:"px-4 xl:px-20",children:[(0,eu.jsxs)("div",{className:"grid xl:grid-cols-10 gap-x-20 xl:mt-20 mt-10 mb-10 xl:mb-15",children:[(0,eu.jsx)(td,{isSustainerPage:w,title:t,subTitle:a,hideBorder:l}),(0,eu.jsx)("div",{className:w?"xl:col-span-5":"xl:col-span-4",children:(0,eu.jsx)("div",{className:"bg-white shadow-lg rounded-lg xl:py-10 xl:px-6 xl:mx-0 -mx-4 py-6 px-4",children:k()})})]}),(0,eu.jsx)("div",{className:"xl:hidden",children:(0,eu.jsx)(ts,{country:j})}),(0,eu.jsx)("div",{className:"xl:block hidden",children:(0,eu.jsx)(ta,{country:j})}),(0,eu.jsx)("div",{className:"mt-10 xl:mt-20",children:(0,eu.jsx)(eW,{currency:d.title})})]})})};var tv=a(45105),tw=a.n(tv),tj=a(97247);a(16365);var tk=a(4797),tN=a(6143),t_=a(61300),tS=a(46520);let tA=()=>(0,eu.jsx)(eu.Fragment,{children:(0,eu.jsx)(tw(),{id:"sift-tracker",dangerouslySetInnerHTML:{__html:` 16 17 var _session_id = '${(()=>{if(!(0,tN.Vv)())return null;let e=sessionStorage.getItem(tj.Ki);if(e)return e;let t=(0,tS.b)();return sessionStorage.setItem(tj.Ki,t),t})()}'; 18 19 var _sift = window._sift = window._sift || []; 20 _sift.push(['_setAccount', '8aee4cdcd5']); 21 _sift.push(['_setSessionId', _session_id]); 22 _sift.push(['_trackPageview']); 23 24 (function() { 25 function ls() { 26 var e = document.createElement('script'); 27 e.src = 'https://cdn.sift.com/s.js'; 28 document.body.appendChild(e); 29 } 30 if (window.attachEvent) { 31 window.attachEvent('onload', ls); 32 } else { 33 window.addEventListener('load', ls, false); 34 } 35 })(); 36 `}})});var tC=a(23749);let tP=[{title:"Policy",description:"Dehumanizing Muslims and demonizing Islam is the root cause of bad policy, such as anti-sharia legislation and the war on terror, which includes the surveillance of Muslim communities."},{title:"Media",description:"Non-Muslim allies or those interested in learning about Islam have a difficult time finding accurate information about our faith."},{title:"Identity",description:(0,eu.jsxs)(eu.Fragment,{children:["Identity: Many Muslims having paralyzing doubt, with some consequently distancing themselves from the community and still others even"," ",(0,eu.jsx)(f.qh,{href:"/read/paper/modern-pathways-to-doubt-in-islam",className:"url",children:"leaving Islam"}),"."]})}],tT=[{title:"Sustainable",description:"Provide an annual, predictable source of revenue to supp
36ort operations."},{title:"Conservative",description:"Preserve the purchasing power of the original gifts."},{title:"Self-Sufficient",description:"Increase independence from funding trends outside of our control."}],tO=()=>{let{country:e,t}=(0,tC.A)();return(0,eu.jsxs)(eu.Fragment,{children:[(0,eu.jsx)(an.zY,{pageTitle:"Fundraising Philosophy"}),(0,eu.jsxs)("div",{className:"divide-y divide-grey-200",children:[(0,eu.jsxs)("div",{className:"py-10",children:[(0,eu.jsx)("div",{className:"xl:mb-10 mb-6",children:(0,eu.jsx)(f.DZ,{level:4,color:"text-endeavour-500",fontSize:"text-xl xl:text-3xl",weight:"font-extrabold",lineHeight:"leading-3-s",letterSpacing:"tracking-tight-2",className:"text-yaqeen-primary-500",children:"Introduction"})}),(0,eu.jsx)("div",{className:"mb-10",children:(0,eu.jsxs)(f.EY,{as:"p",fontSize:"text-lg",fontFamily:"font-source-serif-pro",lineHeight:"leading-relaxed",children:["Islamophobia is a multi-million dollar industry, with funds moving from influential foundations to a combination of institutions, scholars, activists, and journalists. There is thorough research on its"," ",(0,eu.jsx)(f.qh,{href:"/read/paper/exploring-the-faith-and-identity-crisis-of-american-muslim-youth",className:"url",children:"negative impact on the Muslim community"}),", both domestically and internationally."]})}),(0,eu.jsx)("div",{className:"mb-10",children:(0,eu.jsx)(f.EY,{as:"p",fontSize:"text-lg",fontFamily:"font-source-serif-pro",lineHeight:"leading-relaxed",children:"This has resulted in a three-fold effect:"})}),(0,eu.jsx)("div",{className:"grid xl:grid-cols-3 gap-2 my-10",children:tP.map((e,t)=>(0,eu.jsx)("div",{className:"flex px-2 mb-4",children:(0,eu.jsxs)("div",{className:"flex-1 border-2 border-grey-200 p-3",children:[(0,eu.jsx)("div",{className:"xl:mb-10 mb-6",children:(0,eu.jsx)(f.DZ,{level:4,color:"text-endeavour-500",fontSize:"text-xl xl:text-2xl",weight:"font-extrabold",lineHeight:"leading-3-s",letterSpacing:"tracking-tight-2",className:"text-yaqeen-primary-500",children:e.title})}),(0,eu.jsx)("div",{className:"mb-4",children:(0,eu.jsx)(f.EY,{as:"p",fontSize:"text-lg",fontFamily:"font-source-serif-pro",lineHeight:"leading-relaxed",children:e.description})})]})},t))}),(0,eu.jsx)("div",{className:"mb-10",children:(0,eu.jsx)(f.EY,{as:"p",fontSize:"text-lg",fontFamily:"font-source-serif-pro",lineHeight:"leading-relaxed",children:"Yaqeen was born out of a recognition that Islamophobes have spent a disproportionate amount of time and money in the think tank world and media, leaving the Muslim community in the United States and abroad constantly held hostage by false narratives about our religion and way of life. The narratives created about Islam and the Muslim world have directly led to the enactment of discriminatory policies towards Muslims, leaving us in a perpetual state of disaster response. These narratives have directly impacted the identity and beliefs of young Muslims, themselves exhausted by false portrayals of Islam and the pressures of being Muslim."})})]}),(0,eu.jsxs)("div",{className:"py-10",children:[(0,eu.jsx)("div",{className:"xl:mb-10 mb-6",children:(0,eu.jsx)(f.DZ,{level:4,color:"text-endeavour-500",fontSize:"text-xl xl:text-3xl",weight:"font-extrabold",lineHeight:"leading-3-s",letterSpacing:"tracking-tight-2",className:"text-yaqeen-primary-500",children:"Why We Chose to be a Charity"})}),(0,eu.jsx)("div",{className:"mb-10",children:(0,eu.jsxs)(f.EY,{as:"p",fontSize:"text-lg",fontFamily:"font-source-serif-pro",lineHeight:"leading-relaxed",children:[t("why_donate.chose_to_be_charity"),", we are subject to additional regulation and oversight that mandates better governance, transparency, and accountability metrics in our operations and finances. This assures our donors and partners of our commitment to adhering to applicable laws and international best practices in raising and spending our funds."]})}),(0,eu.jsx)("div",{className:"mb-10",children:(0,eu.jsx)(f.EY,{as:"p",fontSize:"text-lg",fontFamily:"font-source-serif-pro",lineHeight:"leading-relaxed",children:"Yaqeen chose not to become a for-profit institute with a subscription fee because we recognize that the Islamophobia industry is well-funded and offers its content for free, a major reason for its far reach and large impact. We believe that we have the same potential to reach just as many peopleâif not moreâas they have with an accurate and genuine narrative about Islam, and we are committed to keeping all of our content 100% free and accessible."})})]}),(0,eu.jsxs)("div",{className:"py-10",children:[(0,eu.jsx)("div",{className:"xl:mb-10 mb-6",children:(0,eu.jsx)(f.DZ,{level:4,color:"text-endeavour-500",fontSize:"text-xl xl:text-3xl",weight:"font-extrabold",lineHeight:"leading-3-s",letterSpacing:"tracking-tight-2",className:"text-yaqeen-primary-500",children:"Our C
36ommitment to Integrity"})}),(0,eu.jsx)("div",{className:"mb-10",children:(0,eu.jsxs)(f.EY,{as:"p",fontSize:"text-lg",fontFamily:"font-source-serif-pro",lineHeight:"leading-relaxed",children:["For the sake of maintaining independence and integrity, we have never accepted any type of funding, including CVE grants, from any governmental entity. We also refuse funding from any foundation that espouses ideas that would delegitimize our organization. We are committed to maintaining our independence from any group or type of funding that could potentially compromise"," ",(0,eu.jsx)(f.qh,{href:"/about-us/our-mission",className:"url",children:"Yaqeenâs mission"}),"."]})})]}),(0,eu.jsxs)("div",{className:"py-10",children:[(0,eu.jsx)("div",{className:"xl:mb-10 mb-6",children:(0,eu.jsx)(f.DZ,{level:4,color:"text-endeavour-500",fontSize:"text-xl xl:text-3xl",weight:"font-extrabold",lineHeight:"leading-3-s",letterSpacing:"tracking-tight-2",className:"text-yaqeen-primary-500",children:"Our Commitment to Other Institutions in the Community"})}),(0,eu.jsx)("div",{className:"mb-10",children:(0,eu.jsx)(f.EY,{as:"p",fontSize:"text-lg",fontFamily:"font-source-serif-pro",lineHeight:"leading-relaxed",children:"We partner with Muslim organizations nationally and globally to provide free, accessible content. Our goal is to equip mosques, Islamic schools, and youth groups with the resources they need to foster a strong Muslim identity. Media and policy organizations can also use Yaqeenâs research articles as a source for the information they need about Islam while having full confidence in our rigor and presentation. Yaqeen is committed to helping all other institutions in the Muslim community become more effective."})})]}),(0,eu.jsxs)("div",{className:"py-10",children:[(0,eu.jsx)("div",{className:"xl:mb-10 mb-6",children:(0,eu.jsx)(f.DZ,{level:4,color:"text-endeavour-500",fontSize:"text-xl xl:text-3xl",weight:"font-extrabold",lineHeight:"leading-3-s",letterSpacing:"tracking-tight-2",className:"text-yaqeen-primary-500",children:"Looking Ahead"})}),(0,eu.jsx)("div",{className:"mb-10",children:(0,eu.jsxs)(f.EY,{as:"p",fontSize:"text-lg",fontFamily:"font-source-serif-pro",lineHeight:"leading-relaxed",children:["We seek to be forward-thinking and relieve the Muslim community in the US and Muslims around the world from much of the pain, doubt, and discrimination they face by correcting the narrative on Islam. In just a few years, Yaqeen has made a"," ",(0,eu.jsx)(f.qh,{href:"/annual-reports",className:"url",children:"significant impact"})," ","not just by pushing back on suggestions that Islam and the Muslim world should constantly be treated with suspicion but by also pushing forward the idea that commitment to Islam in its most orthodox sense directly translates to a commitment to humanity in the most beautiful ways, ushering in a more harmonious global society."]})}),(0,eu.jsx)("div",{className:"mb-10",children:(0,eu.jsx)(f.EY,{as:"p",fontSize:"text-lg",fontFamily:"font-source-serif-pro",lineHeight:"leading-relaxed",children:"Our mission is not just to defend Islam but to also highlight the beauty that Islam has given to the world before and what it can do for us today as individuals and societies when understood and practiced properly. We believe we can generate the most relevant research on Islam as well as build a media presence that allows us to reach people through search engine optimization, a robust social media presence, and a healthy working relationship with other institutions."})}),(0,eu.jsx)("div",{className:"mb-10",children:(0,eu.jsx)(f.EY,{as:"p",fontSize:"text-lg",fontFamily:"font-source-serif-pro",lineHeight:"leading-relaxed",children:"In order to continue our work in the most efficient way, we need to be as well-funded as the think tanks that do us so much harm. Our media capacity needs to be elevated both in terms of production quality and presence."})})]}),(0,eu.jsxs)("div",{className:"py-10",children:[(0,eu.jsx)("div",{className:"xl:mb-10 mb-6",children:(0,eu.jsx)(f.DZ,{level:4,color:"text-endeavour-500",fontSize:"text-xl xl:text-3xl",weight:"font-extrabold",lineHeight:"leading-3-s",letterSpacing:"tracking-tight-2",className:"text-yaqeen-primary-500",children:"Our Endowment (Waqf) Strategy"})}),(0,eu.jsx)("div",{className:"mb-10",children:(0,eu.jsx)(f.EY,{as:"p",fontSize:"text-lg",fontFamily:"font-source-serif-pro",lineHeight:"leading-relaxed",children:"At the heart of our funding philosophy is the development of a fully-sustained endowment that guarantees our operationsâ financial needs are always met. This will give us the ability to continue recruiting the best talent while gaining access to spaces that influence how the story of Islam and the Muslim world is told. The COVID-19 pandemic, which left individuals and institutions vulnerable, has demonstrated why it is so crucial for a non-profit like Yaqeen to have secured funding that can sustain it through times of uncertainty."})}),(0,eu.jsx)("div",{className:"mb-10",children:(0,eu.jsxs)(f.EY,{as:"p",fontSize:"text-lg",fontFamily:"font-source-serif-pro",lineHeight:"leading-relaxed",children:["Given the importance of our mission and the demonstrated success of our efforts and programs, long-term sustainability is a necessity. Yaqeen has a documented strategy in place that designates large donations to the"," ",(0,eu.jsx)(f.qh,{href:"/read/paper/financing-kindness-as-a-society-the-rise-fall-of-islamic-philanthropic-institutions-waqfs",className:"url",children:"waqf/endowment"})," ","account directly."]})}),(0,eu.jsx)("div",{className:"mb-10",children:(0,eu.jsx)(f.EY,{as:"p",fontSize:"text-lg",fontFamily:"font-source-serif-pro",lineHeight:"leading-relaxed",children:"Yaqeenâs endowment strategy rests on three pillars:"})}
36),(0,eu.jsx)("div",{className:"grid xl:grid-cols-3 gap-2 my-10",children:tT.map((e,t)=>(0,eu.jsx)("div",{className:"flex px-2 mb-4",children:(0,eu.jsxs)("div",{className:"flex-1 border-2 border-grey-200 p-3",children:[(0,eu.jsx)("div",{className:"xl:mb-10 mb-6",children:(0,eu.jsx)(f.DZ,{level:4,color:"text-endeavour-500",fontSize:"text-xl xl:text-2xl",weight:"font-extrabold",lineHeight:"leading-3-s",letterSpacing:"tracking-tight-2",className:"text-yaqeen-primary-500",children:e.title})}),(0,eu.jsx)("div",{className:"mb-4",children:(0,eu.jsx)(f.EY,{as:"p",fontSize:"text-lg",fontFamily:"font-source-serif-pro",lineHeight:"leading-relaxed",children:e.description})})]})},t))}),(0,eu.jsx)("div",{className:"mb-10",children:(0,eu.jsx)(f.EY,{as:"p",fontSize:"text-lg",fontFamily:"font-source-serif-pro",lineHeight:"leading-relaxed",children:"Our goal is to secure an endowment that covers 70 percent of our operations."})})]}),(0,eu.jsxs)("div",{className:"py-10",children:[(0,eu.jsx)("div",{className:"xl:mb-10 mb-6",children:(0,eu.jsx)(f.DZ,{level:4,color:"text-endeavour-500",fontSize:"text-xl xl:text-3xl",weight:"font-extrabold",lineHeight:"leading-3-s",letterSpacing:"tracking-tight-2",className:"text-yaqeen-primary-500",children:"Sustainers"})}),(0,eu.jsx)(f.$U,{elementType:"iframe",title:"Sustainer promotional video",height:"300",width:"560",src:"https://www.youtube.com/embed/eKjbn9Hrws4",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,className:"mx-auto mb-6 w-full max-w-xl"}),(0,eu.jsx)("div",{className:"mb-10",children:(0,eu.jsxs)(f.EY,{as:"p",fontSize:"text-lg",fontFamily:"font-source-serif-pro",lineHeight:"leading-relaxed",children:["Another important way we build a predictable revenue stream to support our operations is through monthly recurring donations. We depend on donors who are consistent in their contributions. As the Prophet Muhammad ï·º said, âThe best good deeds are the ones that are consistent, even if they are very small.â These donors sustain our operations and join our mission by using the value of a monthly subscription fee or more to change someoneâs life with Yaqeenâs free content.",(0,eu.jsx)("br",{}),(0,eu.jsx)("br",{}),"To help us continue this work and become a Yaqeen Sustainer,"," ",(0,eu.jsx)(f.qh,{href:`${(0,t_.$_)()}/sustain?int_source=${new URL((0,t_.$_)()).hostname}&int_campaign=sustainers&int_content=fundraising_philosophy_page`,className:"url",onClick:()=>(0,d.$s)("fundraising_philosophy","click","item_name: sustainer link, action: click"),children:"click here"}),"."]})})]}),(0,eu.jsxs)("div",{className:"py-10",children:[(0,eu.jsx)("div",{className:"xl:mb-10 mb-6",children:(0,eu.jsx)(f.DZ,{level:4,color:"text-endeavour-500",fontSize:"text-xl xl:text-3xl",weight:"font-extrabold",lineHeight:"leading-3-s",letterSpacing:"tracking-tight-2",className:"text-yaqeen-primary-500",children:"Ramadan and Other Seasonal Fundraising"})}),(0,eu.jsx)("div",{className:"mb-10",children:(0,eu.jsx)(f.EY,{as:"p",fontSize:"text-lg",fontFamily:"font-source-serif-pro",lineHeight:"leading-relaxed",children:"Ramadan, and the last ten nights in particular, is the most important time for us to raise funds that help us get through the rest of the year. Other important fundraising periods include the blessed first ten days of Dhul Hijjah and an end-of-the-year push in December. Even with the waqf and the support from our Sustainers, we will continue fundraising during these seasons to fill in funding gaps and to harness the excitement and support that is generated in each one of these seasons."})})]}),"ca"!==e&&(0,eu.jsxs)("div",{className:"py-10",children:[(0,eu.jsx)("div",{className:"xl:mb-10 mb-6",children:(0,eu.jsx)(f.DZ,{level:4,color:"text-endeavour-500",fontSize:"text-xl xl:text-3xl",weight:"font-extrabold",lineHeight:"leading-3-s",letterSpacing:"tracking-tight-2",className:"text-yaqeen-primary-500",children:"COVID-19"})}),(0,eu.jsx)("div",{className:"mb-10",children:(0,eu.jsxs)(f.EY,{as:"p",fontSize:"text-lg",fontFamily:"font-source-serif-pro",lineHeight:"leading-relaxed",children:["In the immediate aftermath of the COVID-19 outbreak, we were uncertain as to how our fundraising efforts would be impacted. We took a number of preventative actions to shield our staff from potential salary reductions, furloughs, or layoffs. We promptly applied for the SBA Paycheck Protection Program and were granted approval. With the help of Allah, Most High, the continued generosity of our supporters, and other organizational cost savings measures, we were able to maintain all staff and operations. Therefore,"," ",(0,eu.jsx)("span",{className:"font-semibold",children:"we chose to decline the S
36BA funding"})," in hopes that other non-profits could receive the support instead."]})})]})]})]})};var tE=a(51097);let tI=[{title:"Yaqeen is a resource for your community",description:"Yaqeen puts up-to-date content into the hands of masajid, Imams, youth directors, organizations, and more to equip them with what it takes to dismantle doubts and nurture conviction in their communities."},{title:"Yaqeen puts high quality content in your pocket",description:"Our mobile app allows users to have access to all of our content with just a tap. You can listen to lectures during your commute, read a publication during some down time, or quickly pull up an infographic to convey a concept to a friend or family member."},{title:"Yaqeen changes lives",description:"âWhen I feel disconnected, I always turn to Yaqeen. It came through when I was holding on to religion with a loose grip. Thank you so much for this. It has helped me immensely.â We receive messages like this frequently, thanking Yaqeen for clarifying doubts."},{title:"Yaqeen addresses relevant topics for Muslims today",description:"Muslims are confronting complex topics such as abortion, womenâs rights, jihad, shariah, secularism, Islamophobia, and more. Yaqeen addresses these topics head-on to empower our communities."},{title:"Yaqeen gives a platform to qualified, diverse voices",description:"We pride ourselves on building a team that is diverse on all fronts, allowing for constant, enriching dialogue that helps us produce high-quality research."},{title:"Yaqeen is and will always be 100% free",description:"We pledge to make every last piece of content we ever create free for everyone."},{title:"Yaqeen believes in making high quality content accessible to everyone",description:"We raise the discourse of the Muslim community by making academic grade research material accessible to everyone. This means packaging our research into animated videos, lectures, audiobooks, infographics, curriculum, and more."},{title:"Yaqeen is going global",description:"By the grace of God, we have opened a Yaqeen office in Canada and are in the process of opening one in Malaysia. With your support, we can continue to dismantle doubts and nurture conviction internationally."},{title:"Yaqeen helps make the world a better place",description:"Islam has a centuries long tradition of inspiring contribution through conviction. Previous Muslims were on the forefront of medicine, philosophy, architecture, art, governance, and more. By dismantling doubts and nurturing conviction, we allow Muslims today to be inspired by their faith and contribute positively to humanity."},{title:"Yaqeen reclaims the narrative about Islam and Muslims",description:"We believe that telling our own story is the only way to counter the narrative that has been forced upon our community."}],tD=()=>{let{parseHref:e}=(0,tE.s)();return(0,eu.jsxs)(eu.Fragment,{children:[(0,eu.jsx)(an.zY,{pageTitle:"10 reasons to donate"}),(0,eu.jsx)("div",{className:"grid xl:grid-cols-3 gap-2 my-10",children:tI.map((e,t)=>(0,eu.jsx)("div",{className:"flex mb-4",children:(0,eu.jsxs)("div",{className:"flex-1 border-2 border-grey-200 p-3",children:[(0,eu.jsx)("div",{className:"xl:mb-10 mb-6",children:(0,eu.jsx)(f.DZ,{level:4,color:"text-endeavour-500",fontSize:"text-xl xl:text-2xl",weight:"font-extrabold",lineHeight:"leading-3-s",letterSpacing:"tracking-tight-2",className:"text-yaqeen-primary-500",children:e.title})}),(0,eu.jsx)("div",{className:"mb-4",children:(0,eu.jsx)(f.EY,{as:"p",fontSize:"text-lg",fontFamily:"font-source-serif-pro",lineHeight:"leading-relaxed",children:e.description})})]})},t))}),(0,eu.jsxs)("div",{className:"flex sm:flex-row flex-col space-y-8 sm:space-y-0 items-center justify-center mx-auto py-10",children:[(0,eu.jsx)("a",{target:"_blank",rel:"noreferrer",href:e("/donate?int_source=yaqeeninstitute.org&int_campaign=general&int_content=why_donate"),className:"sm:mr-8 focus:border-jordy-400 focus:outline-none border-transparent uppercase bg-carrot-500 hover:bg-carrot-700 rounded-sm text-white font-bold px-12 py-4",children:"Donate now"}),(0,eu.jsx)("a",{target:"_blank",rel:"noreferrer",href:e("/sustain?int_source=yaqeeninstitute.org&int_campaign=sustainers&int_content=why_donate_sustain_btn"),className:"focus:border-jordy-400 focus:outline-none border-transparent uppercase bg-carrot-500 hover:bg-carrot-700 rounded-sm text-white font-bold px-12 py-4",children:"Become a Sustainer"})]})]})};var tq=a(78814),tM=a(51131);let t$=e=>{let{keyTakeaways:t}=e,{0:a,1:i}
36=(0,n.useState)(null);return t?(0,eu.jsx)("div",{className:`w-full mb-10 ${tM.kK}`,children:(0,eu.jsxs)("div",{className:"bg-jordy-50 xl:rounded-lg xl:px-5 xl:pt-4 px-4 pt-5 pb-5 -mx-4 xl:mx-0",children:[(0,eu.jsx)(f.EY,{as:"p",fontSize:"xl:text-2xl text-xl",weight:"font-semibold",className:"mb-3 border-b border-gray-200 pb-2",lineHeight:"leading-[1.25]",children:"Key takeaways"}),(0,eu.jsx)("ol",{className:"space-y-3 mb-5 list-decimal list-outside marker:text-gray-600 ml-3",children:t.map((e,t)=>(0,eu.jsx)("li",{id:`takeaway-${t+1}`,className:"text-gray-900 xl:text-base text-sm xl:leading-[24px] leading-[20px] pl-1",children:(0,eu.jsx)("span",{dangerouslySetInnerHTML:{__html:e}})},t))}),(0,eu.jsxs)("div",{className:"flex flex-row md:grid md:grid-cols-2 md:gap-4 space-y-0 justify-between items-center",children:[(0,eu.jsx)("div",{className:"flex items-center gap-2 md:justify-start"}),(0,eu.jsxs)("div",{className:"flex items-center gap-2 md:justify-end",children:[(0,eu.jsx)("span",{className:"text-gray-500 text-xss",children:"Rate this summary:"}),(0,eu.jsxs)("div",{className:"flex items-center gap-2 iphonese:gap-1",children:[(0,eu.jsx)("button",{className:"md:p-1 p-0.5 hover:bg-gray-100 rounded-md",onClick:()=>{i("up"===a?null:"up"),(0,d.$s)("key_takeaways","up"===a?"thumbs_up_undo":"thumbs_up")},children:(0,eu.jsx)(l.g,{icon:"up"===a?c.Wc:tq.Wc,className:`md:text-lg text-base ${"up"===a?"text-gray-950":"text-gray-500"}`})}),(0,eu.jsx)("button",{className:"md:p-1 p-0.5 hover:bg-gray-100 rounded-md",onClick:()=>{i("down"===a?null:"down"),(0,d.$s)("key_takeaways","down"===a?"thumbs_down_undo":"thumbs_down")},children:(0,eu.jsx)(l.g,{icon:"down"===a?c.lS:tq.lS,className:`md:text-lg text-base ${"down"===a?"text-gray-950":"text-gray-500"}`})})]})]})]})]})}):null};var tH=a(8453),tR=a(52916),tz=a(65083),tF=a(32738),tY=a(77572);let tL=e=>{let{type:t}=e;return(0,eu.jsxs)("div",{className:"w-6 h-6 xl:w-4 xl:h-4 fill-current text-grey-900",children:["email"===t&&(0,eu.jsx)("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,eu.jsx)("path",{d:"M15.999 12.3273V4.4C15.999 4.4 8.71902 9.48 8.01102 9.7436C7.31502 9.492 -0.000976562 4.4 -0.000976562 4.4V12.3273C-0.000976562 13.3273 0.211024 13.5273 1.19902 13.5273H14.799C15.8106 13.5273 15.999 13.3517 15.999 12.3273ZM15.9874 2.9884C15.9874 2.26 15.775 2 14.799 2H1.19902C0.195023 2 -0.000976562 2.312 -0.000976562 3.04L0.0110234 3.152C0.0110234 3.152 7.23862 8.128 8.01102 8.4C8.82702 8.084 15.999 3.04 15.999 3.04L15.9874 2.9884Z",fill:"#394048"})}),"facebook"===t&&(0,eu.jsx)("svg",{fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,eu.jsx)("path",{d:"M16.345 13.25l.518-3.62h-3.242V7.282c0-.99.453-1.956 1.905-1.956H17V2.245S15.662 2 14.383 2c-2.67 0-4.415 1.734-4.415 4.872V9.63H7v3.62h2.968V22h3.653v-8.75h2.724z",fill:"#3B5998"})}),"linkedin"===t&&(0,eu.jsxs)("svg",{fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",children:[(0,eu.jsx)("path",{d:"M13.63 13.636h-2.367V9.921c0-.886-.018-2.024-1.237-2.024-1.234 0-1.422.961-1.422 1.959v3.778h-2.37V6h2.277V7.04h.03c.318-.602 1.091-1.234 2.245-1.234 2.401 0 2.847 1.58 2.847 3.636v4.192h-.003zM3.557 4.956a1.375 1.375 0 01-.524-2.649 1.376 1.376 0 11.525 2.649zm1.188 8.68H2.37V6h2.375v7.636zM14.818 0H1.18C.529 0 0 .515 0 1.153v13.694C0 15.485.528 16 1.18 16h13.636c.65 0 1.184-.515 1.184-1.153V1.153C16 .515 15.466 0 14.816 0h.002z",fill:"#0077B5"}),(0,eu.jsx)("defs",{children:(0,eu.jsx)("path",{fill:"#fff",d:"M0 0h16v16H0z"})})]}),"twitter"===t&&(0,eu.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1200",height:"1227",fill:"none",viewBox:"0 0 1200 1227",children:(0,eu.jsx)("path",{fill:"#fff",d:"M714.163 519.284 1160.89 0h-105.86L667.137 450.887 357.328 0H0l468.492 681.821L0 1226.37h105.866l409.625-476.152 327.181 476.152H1200L714.137 519.284h.026ZM569.165 687.828l-47.468-67.894-377.686-540.24h162.604l304.797 435.991 47.468 67.894 396.2 566.721H892.476L569.165 687.854v-.026Z"})}),"youtube"===t&&(0,eu.jsx)("svg",{fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",children:(0,eu.jsx)("path",{d:"M15.6661 3.75179C15.575 3.41257 15.3964 3.10322 15.1482 2.85471C14.9 2.60619 14.5909 2.42722 14.2518 2.33571C13.0036 2 8 2 8 2C8 2 2.99643 2 1.74821 2.33393C1.40897 2.42514 1.09969 2.60401 0.851439 2.85257C0.603191 3.10113 0.424713 3.41064 0.333929 3.75C-6.81196e-08 5 0 7.60714 0 7.60714C0 7.60714 -6.81196e-08 10.2143 0.333929 11.4625C0.517857 12.1518 1.06071 12.6946 1.74821 12.8786C2.99643 13.2143 8 13.2143 8 13.2143C8 13.2143 13.0036 13.2143 14.2518 12.8786C14.9411 12.6946 15.4821 12.1518 15.6661 11.4625C16 10.2143 16 7.60714 16 7.60714C16 7.60714 16 5 15.6661 3.75179ZM6.41071 10V5.21429L10.5536 7.58929L6.41071 10Z",fill:"#FF0000"})}),"instagram"===t&&(0,eu.jsx)("svg",{fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,eu.jsx)("path",{d:"M11.997 8.665A3.342 3.342 0 008.663 12a3.342 3.342 0 003.334 3.335A3.342 3.342 0 0015.332 12a3.342 3.342 0 00-3.335-3.335zM22 12c0-1.381.012-2.75-.065-4.128-.078-1.601-.443-3.022-1.614-4.193-1.173-1.173-2.591-1.536-4.192-1.613C14.747 1.988 13.378 2 12 2c-1.381 0-2.75-.013-4.128.065-1.601.077-3.022.443-4.193 1.613-1.173 1.174-1.536 2.592-1.613 4.193C1.988 9.253 2 10.622 2 12c0 1.378-.013 2.75.065 4.128.077 1.6.443 3.021 1.613 4.192 1.174 1.174 2.592 1.536 4.193 1.614 1.381.077 2.75.065 4.128.065 1.38 0 2.75.012 4.128-.065 1.6-.078 3.021-.443 4.192-1.614 1.174-1.173 1.536-2.591 1.614-4.192.08-1.379.065-2.747.065-4.128zm-10.002 5.13A5.124 5.124 0 016.867 12c0-2.84 2.29-5.131 5.13-5.131s5.131 2.291 5.131 5.13c0 2.84-2.291 5.132-5.13 5.132zm5.341-9.273A1.197 1.197 0 0116.14 6.66c0-.663.535-1.198 1.198-1.198a1.197 1.197 0 01.848 2.046 1.197 1.197 0 01-.848.35z",fill:"#000"})}),"apple"===t&&(0,eu.jsx)("svg",{fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,eu.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.597 2.013c.037.484.136 1.79-1.073 3.224-.875 1.023-1.937 1.621-3.103 1.532-.098-1.233.362-2.327 1.143-3.21.71-.827 1.956-1.496 3.032-1.559l.001.013zm3.687 6.77c-1.5.91-2.241 2.147-2.232 3.786v.012c-.007.217-.077 2.758 2.755 4.091-.545 1.643-2.412 5.296-4.582 5.327-.607 0-1.094-.188-1.595-.381-.534-.206-1.084-.418-1.816-.418-.792 0-1.388.226-1.947.438-.474.18-.92.349-1.437.361-2.153.067-4.215-3.951-4.787-5.59C3.214 15.162 3 13.953 3 12.783c0-3.96 2.648-5.907 5.14-5.947.69 0 1.49.288 2.172.535.509.184.953.344 1.239.344.23 0 .608-.14 1.071-.31.807-.299 1.873-.693 2.88-.614 1.675.13 2.943.79 3.782 1.991z",fill:"#000"})})]})},tB=e=>{let{social:t}=e;return(0,eu.jsx)("div",{className:"social mb-8",children:(0,eu.jsx)("div",{className:"flex items-center text-grey-900 -mx-4 iphonese:-mx-3 lg:mx-0",children:null==t?void 0:t.map(e=>{let{id:t,url:a}=e;return(0,eu.jsx)("div",{className:"iphonese:px-3 px-4 xl:mr-4 xl:p-0 text-2xl xl:text-sm",children:(0,eu.jsx)("a",{href:"email"===t?`mailto:${a}`:a,children:(0,eu.jsx)(tL,{type:t})})},t)})})})},tU=e=>{let{title:t,items:a,currentItems:i,page:r,onPageChange:n,type:s,status:l,postLinkPrefix:o,user:c}=e,d=(0,eK.ox)();return(0,eu.jsxs)(eu.Fragment,{children:[(0,eu.jsxs)("div",{className:`desktop-${s} hidden lg:block mt-12`,children:[(0,eu.jsxs)("div",{className:"flex justify-between items-center mb-6",children:[(0,eu.jsx)("h1",{className:"font-semibold text-grey-900 lg:font-bold lg:text-4xl tracking-tight-1 lg:text-endeavour-500",children:t}),(0,eu.jsxs)("span",{className:"font-bold text-grey-900",children:[a.length," items"]})]}),(0,eu.jsx)("div",{className:"post-lists grid xl:grid-cols-5 ga
36p-4",children:null==i?void 0:i.map(e=>{var t;return(0,eu.jsx)("div",{className:"mb-4",children:(0,eu.jsx)(ai.Zp,{imgSrc:e.thumbnail,title:e.title,category:null==(t=(0,tF.mH)(e))?void 0:t.name,postLink:`${o}/${e.slug}`,categoryLink:(0,tF.OZ)(e),authors:[c]})},e.id)})})]}),(0,eu.jsxs)("div",{className:`mobile-${s} block lg:hidden mt-12`,children:[(0,eu.jsxs)("div",{className:"flex justify-between items-center mb-6",children:[(0,eu.jsx)("h1",{id:`mobile-${s}`,className:"font-semibold text-grey-900 lg:font-bold lg:text-4xl tracking-tight-1 lg:text-endeavour-500",children:t}),(0,eu.jsxs)("span",{className:"font-bold text-grey-900",children:[a.length," items"]})]}),(0,eu.jsxs)("div",{className:"post-lists flex flex-col lg:flex-row lg:flex-wrap -mx-2 relative",children:[l===s&&(0,eu.jsx)("div",{className:"absolute bg-gray-900/20 inset-0 z-10"}),null==i?void 0:i.map((e,t)=>{var a;return(0,eu.jsx)(tR.m.div,{className:"mb-6 px-2",initial:{opacity:0,x:-10},animate:{opacity:1,x:0},transition:{delay:.1*t},children:(0,eu.jsx)(ai.Zp,{variant:"small-card",imgSrc:e.thumbnail,title:e.title,category:null==(a=(0,tF.mH)(e))?void 0:a.name,postLink:`${o}/${e.slug}`,categoryLink:(0,tF.OZ)(e),authors:[c]})},e.id)})]})]}),(0,eu.jsx)(tz.dK,{totalCount:a.length,pageSize:d?10:15,currentPage:r,onPageChange:e=>n(e)})]})};function tW(e){var t;let{authorDetail:a}=e,{0:i,1:r}
36=(0,n.useState)("idle"),{0:s,1:l}=(0,n.useState)(1),{0:o,1:c}=(0,n.useState)(1),{0:d,1:h}=(0,n.useState)(1),u=(0,eK.ox)()?10:15,{user:m}=a,p=e=>a.posts.filter(t=>t.contentType.find(t=>t.slug===e)),g=(e,t)=>e.slice(u*(t-1),u+u*(t-1)),f=p("video"),x=p("paper"),y=p("blog"),b=(e,t)=>{var a;r(t);let i=`mobile-${t}`,n=null==(a=document.getElementById(i))?void 0:a.offsetTop;n?(window.scrollTo({top:n-100,behavior:"smooth"}),setTimeout(()=>{r("idle"),"papers"===t&&c(e),"videos"===t&&l(e),"blogs"===t&&h(e)},800)):(r("idle"),"papers"===t&&c(e),"videos"===t&&l(e),"blogs"===t&&h(e))};return(0,eu.jsxs)(eu.Fragment,{children:[(0,eu.jsxs)("div",{className:"flex flex-col lg:flex-row border-b border-grey-200",children:[(0,eu.jsx)("div",{className:"left lg:w-2/5",children:(0,eu.jsx)("div",{className:"aspect-w-1 aspect-h-1",children:(0,eu.jsx)(e_(),{loader:eS.R2,src:m.featured_image,alt:m.name,className:"h-auto lg:pr-10",layout:"fill",objectFit:"cover"})})}),(0,eu.jsx)("div",{className:"right lg:w-3/5 lg:mt-12 mt-6",children:(0,eu.jsxs)("div",{className:"lg:ml-8 lg:w-2/3 lg:px-0 px-4",children:[(0,eu.jsxs)("div",{className:"breadcrumbs flex flex-wrap items-center mb-6 uppercase xl:mb-10 text-center font-bold tracking-wide text-xs xl:text-sm",children:[(0,eu.jsx)("a",{className:"flex",href:"/team",children:"Team"}),(0,eu.jsx)("span",{className:"flex",children:(0,eu.jsx)("svg",{className:"fill-current text-y-carrot-orange-1 w-3 h-3",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,eu.jsx)("path",{d:"M3 11L7.38889 1H8.55556L4.16667 11H3Z"})})}),null==m||null==(t=m.department)?void 0:t.filter(e=>!e.slug.includes("all-member")).map((e,t,a)=>(0,eu.jsxs)("a",{href:`/team/#${e.slug}`,className:"flex text-grey-700",children:[e.name,t<a.length-1?(0,eu.jsx)("span",{className:"pr-1",children:","}):""]},e.slug))]}),(0,eu.jsxs)("div",{className:"bio",children:[(0,eu.jsx)("h1",{className:"text-yaqeen-primary-500 text-4xl xl:text-6xl font-extrabold leading-3-s tracking-tight-2 mb-1",children:null==m?void 0:m.name}),(0,eu.jsx)("p",{className:"text-lg font-semibold leading-tight text-grey-700 mb-8",children:(0,tY.l)(null==m?void 0:m.designation)}),(0,eu.jsx)(tB,{social:m.social||[]}),(0,eu.jsx)("div",{className:"intro font-source-serif-pro leading-relaxed text-grey-900 mb-8",dangerouslySetInnerHTML:{__html:null==m?void 0:m.bio}})]})]})})]}),(0,eu.jsxs)("div",{className:"author-posts lg:px-24 px-4 pb-24",children:[x.length>0&&(0,eu.jsx)(tU,{title:"Papers",items:x,currentItems:g(x,o),page:o,onPageChange:e=>
36b(e,"papers"),type:"papers",status:i,postLinkPrefix:"/read/paper",user:m}),f.length>0&&(0,eu.jsx)(tU,{title:"Videos",items:f,currentItems:g(f,s),page:s,onPageChange:e=>b(e,"videos"),type:"videos",status:i,postLinkPrefix:`/${null==m?void 0:m.slug}`,user:m}),y.length>0&&(0,eu.jsx)(tU,{title:"Blogs",items:y,currentItems:g(y,d),page:d,onPageChange:e=>b(e,"blogs"),type:"blogs",status:i,postLinkPrefix:"/read/blog",user:m})]})]})}let tG=e=>[{href:`/donate?int_source=${e}&int_campaign=general&int_content=main_nav_donate_button`,text:"Donate",openInNewTab:!0},{href:"/newsletters",text:"Newsletters"},{href:"/match-gift",text:"Match Gift"},{href:"/why-donate",text:"Why Donate?"},{href:"/donor-privacy-policy",text:"Donor Privacy Policy"},{href:"/volunteer",text:"Volunteer"},{href:"/careers",text:"Careers"},{href:"/contact-us",text:"Contact Us"},{href:"/privacy-policy",text:"Privacy Policy"}];var tZ=a(64141),tQ=a(38311),tV=a(75923);a(54468);var tK=a(46709);let tJ=[{platform:"Instagram",link:"https://www.instagram.com/yaqeeninstitute/",icon:tK.QV6},{platform:"X",link:"https://twitter.com/yaqeeninstitute",icon:tK.NLt},{platform:"TikTok",link:"https://www.tiktok.com/@yaqeeninstitute",icon:tK.AIX},{platform:"YouTube",link:"https://www.youtube.com/c/YaqeenInstituteforIslamicResearch",icon:tK.B4m},{platform:"Facebook",link:"https://www.facebook.com/yaqeeninstitute/",icon:tK.aUl},{platform:"LinkedIn",link:"https://www.linkedin.com/company/yaqeen-institute/",icon:tK.IAJ}],tX=()=>(0,eu.jsx)("div",{className:"flex flex-wrap gap-4",children:tJ.map(e=>(0,eu.jsx)(f.qh,{href:e.link,onClick:()=>{(0,d.$s)("social_media_footer","click",`platform: ${e.platform}`)},target:"_blank",className:"flex items-center justify-center text-black/75 hover:text-black transition-colors","aria-label":`Follow us on ${e.platform}`,children:(0,eu.jsx)(l.g,{icon:e.icon,className:"h-5 w-5",fixedWidth:!0})},e.platform))}),t0=()=>{let{t:e}=(0,tC.A)(),{parseHref:t}=(0,tE.s)(),{asPath:a}=(0,s.useRouter)(),{0:i,1:r}
36=(0,n.useState)("yaqeeninstitute.org"),{showNewsletterForm:l}=(0,tQ.K)();return(0,n.useEffect)(()=>{r((0,tk.UR)())},[a]),(0,eu.jsx)("footer",{children:(0,eu.jsx)("div",{id:"footer",className:"bg-slate-50",children:(0,eu.jsxs)("div",{className:"pt-12 container mx-auto px-4 lg:px-6",children:[(0,eu.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-8 gap-8 pb-8",children:[(0,eu.jsxs)("div",{className:"lg:col-span-4",children:[(0,eu.jsx)(e_(),{loader:eS.R2,alt:"Yaqeen logo",src:"/static/images/yaqeen-logo-blue.svg",height:45,width:270,layout:"fixed",onClick:()=>(0,d.$s)("Navbar","click","logo")}),(0,eu.jsxs)("div",{className:"mt-4",children:[(0,eu.jsx)(f.DZ,{weight:"font-semibold",color:"text-slate-900",children:e("yaqeen.name")}),(0,eu.jsx)("div",{className:"whitespace-pre-wrap mt-1",children:(0,eu.jsx)(f.EY,{color:"text-slate-600",children:e("yaqeen.address")})})]})]}),(0,eu.jsxs)("div",{className:"lg:col-span-2",children:[l&&(0,eu.jsxs)("div",{className:"mb-8",children:[(0,eu.jsx)("div",{className:"mb-4",children:(0,eu.jsx)(f.EY,{as:"h3",fontSize:"text-sm",color:"text-blue-600",weight:"font-semibold",lineHeight:"leading-5",children:"Yaqeen Newsletter"})}),(0,eu.jsx)(tV.S,{eventName:"footer_email",source:tZ.xY.FOOTER})]}),(0,eu.jsxs)("div",{className:"mb-8",children:[(0,eu.jsx)("div",{className:"mb-3",children:(0,eu.jsx)(f.DZ,{level:3,weight:"font-semibold",color:"text-blue-600",fontSize:"text-sm",lineHeight:"leading-5",children:"Connect with us"})}),(0,eu.jsx)(tX,{})]}),(0,eu.jsxs)("div",{className:"flex gap-6",children:[(0,eu.jsxs)("div",{children:[(0,eu.jsx)("div",{className:"mb-3",children:(0,eu.jsx)(f.DZ,{level:3,weight:"font-semibold",color:"text-blue-600",fontSize:"text-sm",lineHeight:"leading-5",children:"Yaqeen app"})}),(0,eu.jsx)(e_(),{loader:eS.R2,alt:"Download Yaqeen app QR code",src:"/static/images/qrcode_Download_Yaqeen_2025.png",height:80,width:80,layout:"fixed"})]}),(0,eu.jsxs)("div",{children:[(0,eu.jsx)("div",{className:"mb-3",children:(0,eu.jsx)(f.DZ,{level:3,weight:"font-semibold",color:"text-blue-600",fontSize:"text-sm",lineHeight:"leading-5",children:"Ameen app"})}),(0,eu.jsx)(e_(),{loader:eS.R2,alt:"Download Ameen app QR code",src:"/static/images/qrcode_Download_Ameen_2025.png",height:80,width:80,layout:"fixed"})]})]})]}),(0,eu.jsxs)("div",{className:"lg:col-span-2",children:[(0,eu.jsx)("div",{className:"mb-3",children:(0,eu.jsx)(f.DZ,{level:3,weight:"font-semibold",color:"text-blue-600",fontSize:"text-sm",children:"Links"})}),(0,eu.jsxs)("div",{className:"grid grid-cols-2 lg:grid-cols-1 gap-x-4",children:[(0,eu.jsx)("div",{className:"space-y-2",children:tG(i).slice(0,5).map(e=>{let{href:a,text:i,openInNewTab:r}=e;return(0,eu.jsx)("div",{children:(0,eu.jsx)(f.qh,{href:t(a),onClick:()=>(0,d.$s)("Footer","click",i),className:"hover:text-carrot-500 focus:outline-none",target:r?"_blank":void 0,children:(0,eu.jsx)(f.EY,{weight:"font-bold",color:"text-black/75 hover:text-carrot-500",lineHeight:"leading-5",fontSize:"text-sm",children:i})})},a)})}),(0,eu.jsx)("div",{className:"space-y-2",children:tG(i).slice(5).map(e=>{let{href:a,text:i,openInNewTab:r}=e;return(0,eu.jsx)("div",{children:(0,eu.jsx)(f.qh,{href:t(a),onClick:()=>(0,d.$s)("Footer","click",i),className:"hover:text-carrot-500 focus:outline-none",target:r?"_blank":void 0,children:(0,eu.jsx)(f.EY,{weight:"font-bold",color:"text-black/75 hover:text-carrot-500",lineHeight:"leading-5",fontSize:"text-sm",children:i})})},a)})})]})]})]}),(0,eu.jsx)("div",{className:"border-t border-slate-200 py-6",children:(0,eu.jsx)("div",{className:"text-center",children:(0,eu.jsxs)(f.EY,{as:"p",color:"text-black/75",fontSize:"text-xs",children:["\xa9 ",e("footer.copyright")," ",(0,eu.jsxs)(f.EY,{weight:"font-bold",color:"text-black/75",fontSize:"text-xs",children:[e("yaqeen.registration_id")," ",(0,eu.jsx)(f.$n,{"aria-label":"copy registration number",type:"button",onPress:()=>(0,tk.lW)(e("yaqeen.registration_id")),children:(0,eu.jsx)("svg",{className:"w-3 h-3 fill-current text-black/75",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 23 22",children:(0,eu.jsx)("path",{d:"M16.5 5V2a1 1 0 00-1-1h-12a1 1 0 00-1 1v14a1 1 0 001 1h3v3c0 .552.45 1 1.007 1h11.986a1 1 0 001.007-1l-.003-14c0-.552-.45-1-1.007-1H16.5zm-2 0h-7a1 1 0 00-1 1v9h-2V3h10v2z"})})})]})]})})})]})})})};var t1=a(28680),t2=a(59733),t4=a(38369);let t5=e=>{let{pageName:t}=e,a="Home Carousel"===t,i=()=>{let e=[`int_source=${location.hostname}`,"int_campaign=angels2_sign_up",a?"int_content=home_watch_now_button":"int_content=landing_watch_now_button"];t4.A.push("omar-suleiman/ep-1-they-would-greet-him-regularly-angels-in-their-presence-season-2".concat("?",e.join("&")))};return(0,eu.jsx)(eu.Fragment,{children:(0,eu.jsxs)("div",{className:"relative",children:[(0,eu.jsx)("div",{className:"xl:h-hero w-full absolute inset-0 -z-1",children:(0,eu.jsx)(e_(),{src:"https://i.yaqeeninstitute.org/?src=2021/11/Angels-2_LockUp_BG01-scaled.jpg",alt:"",layout:"fill",objectPosition:"center",objectFit:"cover",loader:eS.R2})}),(0,eu.jsxs)(an.pO,{className:`flex xl:flex-row flex-col-reverse items-center xl:h-hero xl:my-0 py-10 ${a?"justify-center":""}`,children:[!a&&(0,eu.jsxs)("div",{className:"xl:w-1/2 w-full xl:mb-0 mb-10",children:[(0,eu.jsx)(f.$U,{elementType:"iframe",width:"560",height:"315",src:"https://www.youtube.com/embed/r-CoGXNB3Jw",title:"YouTube video player",frameborder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowfullscreen:!0,aspectRatio:"aspect-w-16 aspect-h-9",className:"rounded-md"}),(0,eu.jsx)("div",{className:"xl:hidden my-5 text-center",children:(0,eu.jsx)("div",{className:"pb-3 flex justify-center",children:(0,eu.jsx)("div",{className:"shrink-0",children:(0,eu.jsx)(f.$n,{onPress:i,className:"px-5 py-3.5 bg-carrot-500 rounded",children:(0,eu.jsx)(f.EY,{as:"p",fontSize:"text-2xl",weight:"font-bold",color:"text-white",letterSpacing:"tracking-tight-1",lineHeight:"leading-none",children:"Watch Now"})})})})}),(0,eu.jsx)("div",{className:"mt-5",children:(0,eu.jsx)(f.EY,{as:"p",color:"text-white",children:"Angel Jibreel (a) personally conveyed Allahâs salaam to Khadijah. Jarirâs (rA) face was touched by an angel. 70,000 angels attended Saâad ibn Muâadhâs (rA) janazah."})}),(0,eu.jsxs)("div",{className:"mt-5",children:[(0,eu.jsxs)(f.EY,{as:"span",color:"text-white",children:["Angels are not the ethereal, far-away creatures of our imagination. They are ever-present in this world, recording our deeds, ferrying souls, crossing the boundaries between the heavens and the earth."," "]}),(0,eu.jsx)(f.EY,{as:"span",color:"text-white",weight:"font-bold",children:"And nowhere were they more present than in the lives of the Sahabah."})]}),(0,eu.jsx)("div",{className:"mt-5",children:(0,eu.jsx)(f.EY,{as:"p",color:"text-white",children:"Join Dr. Omar Suleiman as he delves into the moments the Companions encountered angels in the city, on the battlefield, and, of course, in their time spent with the Prophet (s)."})})]}),(0,eu.jsxs)("div",{className:"xl:w-1/2 w-full flex flex-col justify-center items-center mb-5",children:[(0,eu.jsx)(e_(),{src:"/static/images/angles-in-their-presence.svg",alt:"Angels in Their Presence",width:400,height:323}),(0,eu.jsx)("div",{className:`xl:mt-10 mt-5 xl:block ${a?"":"hidden"}`,children:(0,eu.jsx)("div",{className:"pb-3 flex justify-center",children:(0,eu.jsx)("div",{className:"shrink-0",children:(0,eu.jsx)(f.$n,{onPress:i,className:"px-5 py-3.5 bg-carrot-500 rounded",children:(0,eu.jsx)(f.EY,{as:"p",fontSize:"text-2xl",weight:"font-bold",color:"text-white",letterSpacing:"tracking-tight-1",lineHeight:"leading-none",children:"Watch Now"})})})})})]})]})]})})},t3=()=>{let{firebaseAuth:e}=(0,tz.m9)(),{authInProgress:t,completeSignInWithEmailLink:a,setSignInError:i}=e,{register:r,handleSubmit:n,errors:s,formState:l}=(0,h.mN)({mode:"onChange"});return(0,eu.jsxs)("form",{method:"post",onSubmit:n(e=>{let{email:t}=e;i(null),a(t)}),className:"mb-1 w-full",children:[(0,eu.jsx)(f.EY,{as:"p",color:"text-grey-800",className:"mb-4",children:"To finish signing in, confirm the email address this sign-in link was sent to."}),(0,eu.jsx)("div",{className:"w-full",children:(0,eu.jsx)(f.A_,{name:"email",type:"email",label:"Email address",labelClassName:"block text-grey-800 text-sm font-bold mb-1 tracking-tight-1",inputClassName:"appearance-none block w-full text-grey-900 placeholder-grey-700 border border-grey-200 py-3.5 px-4 leading-tight focus:outline-none focus:bg-white text-lg rounded",ref:r({required:"Please enter your email",pattern:{value:/^\w+([.+-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,3})+$/,message:"Invalid email address"}}
36),validationState:s.email?"invalid":"valid",validationMsg:s.email?s.email.message:null})}),(0,eu.jsx)("div",{className:"mt-6",children:(0,eu.jsx)(f.$n,{type:"submit",className:"inline-block w-full bg-carrot-500 px-4 py-3 rounded",isDisabled:!l.isValid||t,children:(0,eu.jsx)(f.EY,{weight:"font-bold",color:"text-white",children:t?"Signing you in...":"Continue"})})})]})};var t6=a(33241);let t9=()=>{let{firebaseAuth:e}=(0,tz.m9)(),{authInProgress:t,onEmailLoginFormSubmit:a,setSignInError:i}=e,{register:r,handleSubmit:n,errors:s,formState:l}=(0,h.mN)({mode:"onChange"}),o=async e=>{let{email:t}=e;(0,d.$s)("sign_in","click","item_name: Email sign-in link");try{a(t)}catch(a){let e={code:"sign-in-error",message:"Error while signing in/up."};i(e),(0,t6.Z)(e,t)}};return(0,eu.jsxs)(eu.Fragment,{children:[(0,eu.jsxs)("div",{className:"inline-flex space-x-2 items-center justify-center w-full",children:[(0,eu.jsx)("div",{className:"flex-1 h-0.5 bg-gray-200"}),(0,eu.jsx)(f.EY,{color:"text-grey-800",fontSize:"text-sm",children:"Or"}),(0,eu.jsx)("div",{className:"flex-1 h-0.5 bg-gray-200"})]}),(0,eu.jsxs)("form",{method:"post",onSubmit:n(o),className:"mb-1 w-full",children:[(0,eu.jsx)("div",{className:"inline-flex space-x-2 items-center justify-center w-full",children:(0,eu.jsx)("div",{className:"w-full",children:(0,eu.jsx)(f.A_,{name:"email",type:"email",label:"Email address",labelClassName:"block text-grey-800 text-sm font-bold mb-1 tracking-tight-1",inputClassName:"appearance-none block w-full text-grey-900 placeholder-grey-700 border border-grey-200 py-3.5 px-4 leading-tight focus:outline-none focus:bg-white text-lg rounded",ref:r({required:"Please enter your email",pattern:{value:/^\w+([.+-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,3})+$/,message:"Invalid email address"}}),onChange:()=>{i(null)},validationState:s.email?"invalid":"valid",validationMsg:s.email?s.email.message:null})})}),(0,eu.jsx)("div",{className:"mt-6",children:(0,eu.jsx)(f.$n,{type:"submit",className:"inline-block w-full bg-carrot-500 px-4 py-3 rounded",isDisabled:!l.isValid||t,children:(0,eu.jsx)(f.EY,{weight:"font-bold",color:"text-white",children:t?"Loading ...":"Continue"})})}),(0,eu.jsx)(tz.og,{})]})]})};var t8=a(9361),t7=a(35223);let ae=()=>{let{firebaseAuth:e}=(0,tz.m9)(),{onSelectProvider:t}=e,a=(0,tk.dN)().match(/iPhone/i),i=(0,tk.dN)().indexOf("Instagram")>-1||(0,tk.dN)().match(/FBAN|FBAV/i)||(0,tk.dN)().match(/BytedanceWebview/i),r=a&&i,{parseHref:n}=(0,tE.s)();return(0,eu.jsx)("div",{className:"flex flex-col space-y-6 items-start justify-start w-full",children:(0,eu.jsxs)("div",{className:"flex flex-col space-y-1
36items-start justify-start w-full",children:[(0,eu.jsx)(f.EY,{as:"p",color:"text-grey-800",weight:"font-bold",className:"mb-1",children:"Continue with"}),(0,eu.jsxs)("div",{id:"login-providers",className:`grid mb-6 w-full gap-x-3 ${r?"grid-cols-2":"grid-cols-3"}`,children:[!r&&(0,eu.jsx)(f.$n,{onPress:()=>{i?window.location.assign((()=>{let e=new URLSearchParams(window.location.search);e.set("init_auth","1");let t=(0,tk.UR)()+(0,t7.dF)(Object.fromEntries(e));return`intent://${n(t)}#Intent;scheme=https;end`})()):((0,d.$s)("sign_in","click",`provider: ${t8.V5.Google}`),t(t8.V5.Google))},className:"inline-flex items-center justify-center bg-white hover:bg-grey-50 w-full rounded px-4 py-3 border border-grey-200",children:(0,eu.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,eu.jsx)("path",{d:"M21.8055 10.0415H21V10H12V14H17.6515C16.827 16.3285 14.6115 18 12 18C8.6865 18 6 15.3135 6 12C6 8.6865 8.6865 6 12 6C13.5295 6 14.921 6.577 15.9805 7.5195L18.809 4.691C17.023 3.0265 14.634 2 12 2C6.4775 2 2 6.4775 2 12C2 17.5225 6.4775 22 12 22C17.5225 22 22 17.5225 22 12C22 11.3295 21.931 10.675 21.8055 10.0415Z",fill:"#FFC107"}),(0,eu.jsx)("path",{d:"M3.15302 7.3455L6.43852 9.755C7.32752 7.554 9.48052 6 12 6C13.5295 6 14.921 6.577 15.9805 7.5195L18.809 4.691C17.023 3.0265 14.634 2 12 2C8.15902 2 4.82802 4.1685 3.15302 7.3455Z",fill:"#FF3D00"}),(0,eu.jsx)("path",{d:"M12 22C14.583 22 16.93 21.0115 18.7045 19.404L15.6095 16.785C14.5718 17.5742 13.3037 18.001 12 18C9.399 18 7.1905 16.3415 6.3585 14.027L3.0975 16.5395C4.7525 19.778 8.1135 22 12 22Z",fill:"#4CAF50"}),(0,eu.jsx)("path",{d:"M21.8055 10.0415H21V10H12V14H17.6515C17.2571 15.1082 16.5467 16.0766 15.608 16.7855L15.6095 16.7845L18.7045 19.4035C18.4855 19.6025 22 17 22 12C22 11.3295 21.931 10.675 21.8055 10.0415Z",fill:"#1976D2"})]})}),(0,eu.jsx)(f.$n,{onPress:()=>{(0,d.$s)("sign_in","click",`provider: ${t8.V5.Facebook}`),t(t8.V5.Facebook)},className:"inline-flex items-center justify-center bg-white hover:bg-grey-50 w-full rounded px-4 py-3 border border-grey-200",children:(0,eu.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,eu.jsx)("path",{d:"M16.9039 13.25L17.4594 9.63047H13.9863V7.28164C13.9863 6.29141 14.4715 5.32617 16.0269 5.32617H17.6059V2.24453C17.6059 2.24453 16.173 2 14.8031 2C11.943 2 10.0734 3.73359 10.0734 6.87187V9.63047H6.89413V13.25H10.0734V22H13.9863V13.25H16.9039Z",fill:"#3B5998"})})}),(0,eu.jsx)(f.$n,{onPress:()=>{(0,d.$s)("sign_in","click",`provider: ${t8.V5.Apple}`),t(t8.V5.Apple)},className:"inline-flex items-center justify-center bg-white hover:bg-grey-50 w-full rounded px-4 py-3 border border-grey-200",children:(0,eu.jsx)("svg",{className:"w-6 h-6",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,eu.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.597 2.013c.037.484.136 1.79-1.073 3.224-.875 1.023-1.937 1.621-3.103 1.532-.098-1.233.362-2.327 1.143-3.21.71-.827 1.956-1.496 3.032-1.559l.001.013zm3.687 6.77c-1.5.91-2.241 2.147-2.232 3.786v.012c-.007.217-.077 2.758 2.755 4.091-.545 1.643-2.412 5.296-4.582 5.327-.607 0-1.094-.188-1.595-.381-.534-.206-1.084-.418-1.816-.418-.792 0-1.388.226-1.947.438-.474.18-.92.349-1.437.361-2.153.067-4.215-3.951-4.787-5.59C3.214 15.162 3 13.953 3 12.783c0-3.96 2.648-5.907 5.14-5.947.69 0 1.49.288 2.172.535.509.184.953.344 1.239.344.23 0 .608-.14 1.071-.31.807-.299 1.873-.693 2.88-.614 1.675.13 2.943.79 3.782 1.991z",fill:"#000"})})})]})]})})},at=()=>{let{firebaseAuth:e}=(0,tz.m9)(),{authInProgress:t,onFullNameFormSubmit:a}=e,{register:i,handleSubmit:r,errors:n,formState:s}=(0,h.mN)({mode:"onChange"});return(0,eu.jsx)("form",{method:"post",onSubmit:r(e=>{a(`${e.first_name} ${e.last_name}`)}),className:"mb-1 w-full",children:(0,eu.jsxs)("div",{className:"bg-white max-w-xl mx-auto min-w-full rounded-lg xl:h-full py-3.5 overflow-auto",children:[(0,eu.jsx)("div",{className:"w-full",children:(0,eu.jsx)(f.EY,{as:"p",color:"text-grey-800",fontSize:"text-sm",weight:"font-bold",children:"Enter your first and last name to continue"})}),(0,eu.jsxs)("div",{className:"grid md:grid-cols-2 gap-6 mt-2",children:[(0,eu.jsx)(f.A_,{name:"first_name",placeholder:"First name","aria-label":"First name",inputClassName:"appearance-none block w-full text-grey-900 placeholder-grey-700 border border-grey-200 py-3.5 px-4 leading-tight focus:outline-none focus:bg-white text-lg rounded",ref:i({required:"Please enter your first name"}),validationState:n.first_name?"invalid":"valid",validationMsg:n.first_name?n.first_name.message:null}),(0,eu.jsx)(f.A_,{name:"last_name",placeholder:"Last name","aria-label":"Last name",labelClassName:"block text-grey-800 text-sm font-bold mb-1 tracking-tight-1",inputClassName:"appearance-none block w-full text-grey-900 placeholder-grey-700 border border-grey-200 py-3.5 px-4 leading-tight focus:outline-none focus:bg-white text-lg rounded",ref:i(),validationState:n.last_name?"invalid":"valid",validationMsg:n.last_name?n.last_name.message:null})]}),(0,eu.jsx)(f.$n,{type:"submit",className:"xl:px-5 px-3 py-2 bg-carrot-500 rounded mt-6 w-full",isDisabled:!s.isValid||t,children:(0,eu.jsx)(f.EY,{weight:"font-bold",color:"text-white",children:t?"Signing you in..":"Submit"})})]})})};var aa=a(45313),ai=a(75477);let ar=e=>{var t;let{episodes:a,onSubmit:i}=e,{register:r,handleSubmit:n,formState:s,errors:o}=(0,h.mN)({mode:"onChange"}),{isValid:c}=s;return(0,eu.jsxs)("form",{method:"post",className:"form",onSubmit:n(i),children:[(0,eu.jsx)("div",{className:"mt-6",children:(0,eu.jsx)(f.z6,{label:"Did you watch all 7 of the latest episodes at once?",labelClassName:"block text-grey-800 text-sm font-bold mb-3 tracking-tight-1",name:"watch_all",children:(0,eu.jsxs)("div",{className:"space-y-3",children:[(0,eu.jsx)(f.sx,{ref:r({required:!0}),value:"Yes",children:"Yes"}),(0,eu.jsx)(f.sx,{ref:r({required:!0}),value:"No",children:"No"})]})})}),(0,eu.jsxs)("div",{className:"mt-6",children:[(0,eu.jsx)("div",{className:"block text-grey-800 text-sm font-bold mb-1 tracking-tight-1",children:"What has been your favorite episode so far?"}),(0,eu.jsx)("div",{className:`rounded border ${o.favourite_ep?"border-alert-dark":"border-grey-300"}`,children:(0,eu.jsxs)("select",{ref:r({required:"Please choose at least one episode"}),defaultValue:"",name:"favourite_ep",className:"form-select block border-none w-full py-2.5 rounded",children:[(0,eu.jsx)("option",{value:"",disabled:!0,children:"Choose episode"}),a.map((e,t)=>(0,eu.jsx)("option",{value:t+1,children:e},e))]})}),o.favourite_ep&&(0,eu.jsxs)("div",{className:"inline-block mt-1",children:[(0,eu.jsx)(l.g,{icon:"exclamation-triangle",className:"mr-2 text-alert-dark",fixedWidth:!0}),(0,eu.jsx)(f.EY,{color:o.favourite_ep?"text-alert-dark":"text-success-dark",children:o.favourite_ep.message})]})]}),(0,eu.jsx)("div",{className:"mt-6",children:(0,eu.jsx)(f.A_,{label:"What can we improve?",name:"feedback",type:"text",as:"textarea",labelClassName:"block text-grey-800 text-sm font-bold mb-1 tracking-tight-1",inputClassName:"appearance-none block w-full text-grey-900 placeholder-grey-800 border border-grey-300 py-3 px-4 leading-tight focus:outline-none focus:bg-white rounded",rows:4,validationState:o.feedback?"invali
36d":"valid",validationMsg:o.feedback?null==(t=o.feedback)?void 0:t.message:"",ref:r})}),(0,eu.jsx)("div",{className:"mt-6",children:(0,eu.jsx)(f.$n,{type:"submit",className:"bg-carrot-500 rounded px-4 py-3",isDisabled:!c,children:(0,eu.jsx)(f.EY,{color:"text-white",weight:"font-bold",letterSpacing:"tracking-tight-1",children:"Submit"})})})]})};var an=a(28450),as=a(13399);let al=()=>(0,eu.jsxs)(an.pO,{maxWidth:"max-w-5xl",children:[(0,eu.jsx)("div",{className:"xl:my-16 mb-16 mt-5",children:(0,eu.jsxs)("div",{className:"listen-feature-post grid xl:grid-cols-2 gap-10",children:[(0,eu.jsx)("div",{className:"animate-pulse bg-grey-500 xl:h-64 h-48"}),(0,eu.jsxs)("div",{className:"flex flex-col justify-center xl:border-b xl:border-grey-100",children:[(0,eu.jsx)("div",{className:"mb-2",children:(0,eu.jsx)("div",{className:"animate-pulse bg-grey-500 h-4 rounded"})}),(0,eu.jsx)("div",{className:"mb-5",children:(0,eu.jsx)("div",{className:"animate-pulse bg-grey-500 xl:h-16 h-8 rounded"})}),(0,eu.jsx)("div",{className:"xl:mb-8",children:(0,eu.jsx)("div",{className:"animate-pulse bg-grey-500 h-32 rounded"})})]})]})}),(0,eu.jsx)("div",{className:"episode mb-20",children:(0,eu.jsx)("div",{className:"animate-pulse bg-grey-500 h-72 rounded"})})]}),ao=()=>(0,eu.jsxs)(eu.Fragment,{children:[(0,eu.jsx)("div",{className:"pt-8 xl:pt-10 bg-grey-40",children:(0,eu.jsxs)(an.pO,{children:[(0,eu.jsx)("div",{className:"flex flex-col xl:flex-row w-full xl:items-center",children:(0,eu.jsxs)("div",{className:"search w-full flex xl:mb-0",children:[(0,eu.jsx)("div",{className:"w-full",children:(0,eu.jsx)(f.A_,{type:"text",inputClassName:"appearance-none placeholder-grey-700 w-full text-grey-900 p-3 leading-tight focus:outline-none rounded-none border border-grey-200",placeholder:"What are you looking for?","aria-label":"What are you looking for?",isDisabled:!0})}),(0,eu.jsx)("div",{className:"xl:hidden w-12",children:(0,eu.jsx)(f.$n,{className:"flex justify-center items-center h-full w-full bg-grey-100 text-white font-bold p-3 leading-tight",isDisabled:!0,children:(0,eu.jsxs)("svg",{className:"fill-current text-grey-700 w-4 h-4",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",children:[(0,eu.jsx)("path",{d:"M3 7h10v2H3V7zM0 3h16v2H0V3zm6 8h4v2H6v-2z"}),(0,eu.jsx)("defs",{children:(0,eu.jsx)("path",{fill:"#fff",d:"M0 0h16v16H0z"})})]})})})]})}),(0,eu.jsx)("div",{className:"result-data w-full py-4 animate-pulse",children:(0,eu.jsx)("div",{className:"h-4 bg-grey-400 rounded w-1/4"})})]})}),(0,eu.jsx)(an.pO,{children:(0,eu.jsxs)("div",{className:"grid xl:grid-cols-4 xl:divide-x divide-grey-200",children:[(0,eu.jsxs)("div",{className:"hidden col-span-1 xl:flex flex-col space-y-4 animate-pulse py-4",children:[(0,eu.jsx)("div",{className:"h-4 bg-grey-400 rounded w-3/4"}),(0,eu.jsx)("div",{className:"h-4 bg-grey-400 rounded w-3/4"}),(0,eu.jsx)("div",{className:"h-4 bg-grey-400 rounded w-3/4"}),(0,eu.jsx)("div",{className:"h-4 bg-grey-400 rounded w-3/4"}),(0,eu.jsx)("div",{className:"h-4 bg-grey-400 rounded w-3/4"})]}),(0,eu.jsxs)("div",{className:"col-span-3 xl:pl-8 py-4 w-full",children:[(0,eu.jsxs)("div",{className:"xl:flex hidden space-x-4 animate-pulse",children:[(0,eu.jsx)("div",{className:"h-6 w-24 bg-grey-400 mb-4"}),(0,eu.jsx)("div",{className:"h-6 w-24 bg-grey-400 mb-4"}),(0,eu.jsx)("div",{className:"h-6 w-24 bg-grey-400 mb-4"}),(0,eu.jsx)("div",{className:"h-6 w-24 bg-grey-400 mb-4"})]}),(0,eu.jsxs)("div",{className:"xl:grid xl:grid-cols-3 gap-5",children:[(0,eu.jsxs)("div",{className:"animate-pulse",children:[(0,eu.jsx)("div",{className:"h-36 bg-grey-400 mb-3"}),(0,eu.jsx)("div",{className:"h-2 bg-grey-400 mb-4"}),(0,eu.jsx)("div",{className:"h-4 bg-grey-400"})]}),(0,eu.jsxs)("div",{className:"animate-pulse",children:[(0,eu.jsx)("div",{className:"h-36 bg-grey-400 mb-3"}),(0,eu.jsx)("div",{className:"h-2 bg-grey-400 mb-4"}),(0,eu.jsx)("div",{className:"h-4 bg-grey-400"})]}),(0,eu.jsxs)("div",{className:"animate-pulse",children:[(0,eu.jsx)("div",{className:"h-36 bg-grey-400 mb-3"}),(0,eu.jsx)("div",{className:"h-2 bg-grey-400 mb-4"}),(0,eu.jsx)("div",{className:"h-4 bg-grey-400"})]})]})]})]})})]});var ac=a(65608),ad=a(17638),ah=a(97114),au=a(95311),am=a(69158);function ap(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,i)}return a}function ag(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};
36t%2?ap(Object(a),!0).forEach(function(t){(0,i.A)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):ap(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}let af=e=>{let{title:t,excerpt:a,isOpen:i,onPrimaryAction:r,onSecondaryAction:s,primaryActionLabel:l,secondaryActionLabel:o,variant:c}=e,d=(0,n.useRef)(),{overlayProps:h}=(0,au.e)(e,d),{modalProps:u}=(0,au.hS)(),{dialogProps:m,titleProps:p}=(0,ad.s)(e,d);return(0,eu.jsx)(am.N,{initial:!1,children:i&&(0,eu.jsx)(au.Sf,{children:(0,eu.jsx)("div",ag(ag(ag(ag({className:"fixed right-0 bottom-0 z-50"},h),m),u),{},{ref:d,children:(0,eu.jsx)(ah.n1,{contain:!0,restoreFocus:!0,autoFocus:!0,children:(0,eu.jsxs)(tR.m.div,{id:"popup",initial:{opacity:0,y:100},animate:{opacity:1,y:0},exit:{opacity:0,y:100,transition:{duration:.2}},transition:{type:"tween"},className:"bg-endeavour-700 p-6 rounded-lg md:max-w-lg w-full",children:[(0,eu.jsx)("div",{id:"popup-icon",className:"flex justify-center mb-5",children:"alert"===c?(0,eu.jsxs)("svg",{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,eu.jsxs)("g",{clipPath:"url(#clip0_1433_68553)",children:[(0,eu.jsx)("path",{d:"M38.9645 5.4851H31.5001C31.173 5.4851 30.8531 5.35705 30.6185 5.12228L26.5024 1.00311C25.1019 -0.334371 22.9053 -0.334371 21.5119 1.00311L17.3887 5.12228C17.1541 5.35705 16.8413 5.4851 16.5143 5.4851H9.0356C7.08773 5.4851 5.50953 7.06447 5.50953 9.01378V16.4838C5.50953 16.811 5.38157 17.1312 5.14697 17.3659L1.03086 21.4851C-0.341178 22.8653 -0.341178 25.0992 1.03086 26.4793L5.14697 30.5985C5.38157 30.8333 5.51664 31.1463 5.50953 31.4807V38.9506C5.50953 40.9 7.09484 42.4793 9.04271 42.4793H16.5072C16.8342 42.4793 17.1541 42.6074 17.3887 42.8422L21.5048 46.9613C22.8839 48.3415 25.1162 48.3415 26.4953 46.9613L30.6185 42.8422C30.8531 42.6074 31.1659 42.4722 31.5001 42.4793H38.9645C40.9124 42.4793 42.4906 40.9 42.4906 38.9506V31.4807C42.4906 31.1534 42.6185 30.8333 42.8531 30.5985L46.9692 26.4793C48.3484 25.0992 48.3484 22.8653 46.9692 21.4851L42.8531 17.3659C42.6185 17.1312 42.4906 16.8181 42.4906 16.4838V9.01378C42.4906 7.06447 40.9124 5.4851 38.9645 5.4851Z",fill:"#5BC7D9"}),(0,eu.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.44788 24.2881C3.44788 24.2881 3.44788 24.2952 3.44788 24.3023C3.44788 24.3166 3.44788 24.3308 3.44788 24.3379C3.47631 24.5584 3.64693 24.7292 3.86731 24.7576C14.7156 26.8706 21.5687 32.9035 23.4668 44.3575C23.4882 44.5638 23.6375 44.7345 23.8365 44.7843C23.8507 44.7843 23.8649 44.7843 23.8792 44.7843C23.8792 44.7843 23.8863 44.7843 23.8934 44.7843C23.9005 44.7843 23.9147 44.7843 23.9289 44.7843C23.9289 44.7843 23.9431 44.7843 23.9502 44.7843H23.9716C23.9716 44.7843 23.9929 44.7843 24.0071 44.7843C24.0071 44.7843 24.0142 44.7843 24.0213 44.7843C24.0356 44.7843 24.0498 44.7843 24.064 44.7772C24.263 44.7274 24.4052 44.5567 24.4194 44.3503C26.3104 32.8964 33.1635 26.8706 44.0119 24.7505C44.2393 24.7292 44.4171 24.5513 44.4455 24.3237V24.2739C44.4384 24.0249 44.2536 23.8328 44.019 23.8043C33.1706 21.6843 26.3175 15.6585 24.4194 4.20451C24.4052 3.99819 24.2488 3.82745 24.0498 3.77765C24.0498 3.77765 24.0213 3.77765 24.0071 3.77765C24.0071 3.77765 24 3.77765 23.9929 3.77765C23.9858 3.77765 23.9716 3.77765 23.9645 3.77765H23.9431C23.9431 3.77765 23.9289 3.77765 23.9218 3.77765C23.9147 3.77765 23.9005 3.77765 23.8863 3.77765C23.8863 3.77765 23.8792 3.77765 23.872 3.77765C23.8578 3.77765 23.8436 3.77765 23.8294 3.78476C23.6303 3.83456 23.4882 4.00531 23.4739 4.20451C21.5829 15.6585 14.7299 21.6843 3.88153 23.8043C3.65404 23.8257 3.47631 24.0106 3.45499 24.2383C3.45499 24.2383 3.45499 24.2596 3.45499 24.2668C3.45499 24.2668 3.45499 24.281 3.45499 24.2881H3.44788Z",fill:"#FFC609"}),(0,eu.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.44782 9.78214C9.44782 9.78214 9.44782 9.78926 9.44071 9.79637C9.4336 9.80349 9.42649 9.81771 9.41938 9.82483C9.28431 10.0027 9.28431 10.2446 9.41938 10.4224C15.5971 19.5998 16.18 28.7132 9.41938 38.1539C9.28431 38.3175 9.27009 38.538 9.38384 38.7159C9.39095 38.7301 9.39806 38.7372 9.40517 38.7515C9.40517 38.7515 9.40517 38.7515 9.41227 38.7586C9.41938 38.7657 9.42649 38.7728 9.4336 38.7799C9.4336 38.7799 9.44071 38.7941 9.44782 38.7941L9.46204 38.8084C9.46204 38.8084 9.47626 38.8226 9.49047 38.8297C9.49047 38.8297 9.49047 38.8297 9.49758 38.8368C9.5118 38.8439 9.51891 38.8511 9.53313 38.8582C9.71085 38.9649 9.93123 38.9435 10.0876 38.8084C19.5213 32.0498 28.6208 32.6332 37.7843 38.8084C37.962 38.9578 38.2109 38.9578 38.3886 38.8084C38.3886 38.8084 38.4028 38.7941 38.4099 38.787L38.4241 38.7728H38.4312C38.5947 38.5949 38.6018 38.3246 38.4526 38.1396C32.2748 28.9622 31.6919 19.856 38.4455 10.4082C38.5805 10.2517 38.5947 10.024 38.481 9.84617C38.481 9.84617 38.4668 9.81771 38.4597 9.8106C38.4597 9.8106 38.4597 9.8106 38.4526 9.80349C38.4455 9.79637 38.4383 9.78926 38.4312 9.78214L38.417 9.76791C38.417 9.76791 38.4028 9.7608 38.4028 9.75369C38.3957 9.74657 38.3886 9.73946 38.3744 9.73234C38.3744 9.73234 38.3744 9.73234 38.3
36673 9.72523C38.353 9.71811 38.3459 9.711 38.3317 9.70389C38.154 9.59717 37.9336 9.61851 37.7772 9.74657C28.3436 16.5051 19.244 15.9218 10.0805 9.74657C9.9028 9.60429 9.65398 9.60429 9.47626 9.74657C9.47626 9.74657 9.46204 9.7608 9.45493 9.76791C9.45493 9.76791 9.44782 9.77503 9.44071 9.78214H9.44782Z",fill:"#FFC609"}),(0,eu.jsx)("path",{d:"M20.8578 15.8293L21.6256 27.7955H26.2606L27.0284 15.8293H20.8578Z",fill:"white"}),(0,eu.jsx)("path",{d:"M23.9431 33.5936C25.2231 33.5936 26.2607 32.5553 26.2607 31.2744C26.2607 29.9935 25.2231 28.9551 23.9431 28.9551C22.6632 28.9551 21.6256 29.9935 21.6256 31.2744C21.6256 32.5553 22.6632 33.5936 23.9431 33.5936Z",fill:"white"})]}),(0,eu.jsx)("defs",{children:(0,eu.jsx)("clipPath",{id:"clip0_1433_68553",children:(0,eu.jsx)("rect",{width:"48",height:"48",fill:"white"})})})]}):"question"===c?(0,eu.jsxs)("svg",{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,eu.jsxs)("g",{clipPath:"url(#clip0_1433_68513)",children:[(0,eu.jsx)("path",{d:"M38.9645 5.4851H31.5001C31.173 5.4851 30.8531 5.35705 30.6185 5.12228L26.5024 1.00311C25.1019 -0.334371 22.9053 -0.334371 21.5119 1.00311L17.3887 5.12228C17.1541 5.35705 16.8413 5.4851 16.5143 5.4851H9.0356C7.08773 5.4851 5.50953 7.06447 5.50953 9.01378V16.4838C5.50953 16.811 5.38157 17.1312 5.14697 17.3659L1.03086 21.4851C-0.341178 22.8653 -0.341178 25.0992 1.03086 26.4793L5.14697 30.5985C5.38157 30.8333 5.51664 31.1463 5.50953 31.4807V38.9506C5.50953 40.9 7.09484 42.4793 9.04271 42.4793H16.5072C16.8342 42.4793 17.1541 42.6074 17.3887 42.8422L21.5048 46.9613C22.8839 48.3415 25.1162 48.3415 26.4953 46.9613L30.6185 42.8422C30.8531 42.6074 31.1659 42.4722 31.5001 42.4793H38.9645C40.9124 42.4793 42.4906 40.9 42.4906 38.9506V31.4807C42.4906 31.1534 42.6185 30.8333 42.8531 30.5985L46.9692 26.4793C48.3484 25.0992 48.3484 22.8653 46.9692 21.4851L42.8531 17.3659C42.6185 17.1312 42.4906 16.8181 42.4906 16.4838V9.01378C42.4906 7.06447 40.9124 5.4851 38.9645 5.4851Z",fill:"#5BC7D9"}),(0,eu.jsx)("path",{d:"M30.8033 10.1094C28.0877 10.1094 25.6635 11.3046 24 13.197C22.3365 11.3046 19.9052 10.1094 17.1967 10.1094C12.1849 10.1094 8.12561 14.1716 8.12561 19.1872C8.12561 32.8039 24.0071 39.6194 24.0071 39.6194C24.0071 39.6194 39.8886 32.811 39.8886 19.1872C39.8886 14.1716 35.8294 10.1094 30.8176 10.1094H30.8033Z",fill:"#F16651"}),(0,eu.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M26.026 31.1606C26.026 32.2775 25.1232 33.1881 23.9999 33.1881C22.8767 33.1881 21.9739 32.2846 21.9739 31.1606C21.9739 30.0365 22.8767 29.133 23.9999 29.133C25.1232 29.133 26.026 30.0365 26.026 31.1606Z",fill:"white"}),(0,eu.jsx)("path",{d:"M18.4265 21.229L18.6256 20.5887C19.2654 18.1201 21.4407 16.5407 23.9573 16.5407C26.9715 16.5407 29.5805 18.9098 29.5805 21.976C29.5805 24.4447 27.9028 26.522 25.5853 27.1623V28.2508H22.3791V26.3228C22.3791 25.2344 23.1682 24.2953 24.2559 24.2028C25.4431 24.0534 26.4241 23.1641 26.4241 21.9831C26.4241 20.6528 25.2369 19.7635 23.9573 19.7635C22.8696 19.7635 21.981 20.354 21.6895 21.4424L21.4905 22.0827L18.4336 21.2432L18.4265 21.229Z",fill:"white"})]}),(0,eu.jsx)("defs",{children:(0,eu.jsx)("clipPath",{id:"clip0_1433_68513",children:(0,eu.jsx)("rect",{width:"48",height:"48",fill:"white"})})})]}):void 0}),(0,eu.jsx)("div",{id:"popup-title",className:"mb-2",children:(0,eu.jsx)(f.EY,ag(ag({as:"p",fontSize:"text-2xl",weight:"font-extrabold",letterSpacing:"tracking-tight",lineHeight:"xl:leading-8 leading-7",color:"text-white"},p),{},{children:t}))}),(0,eu.jsx)("div",{id:"description",className:"mb-6",children:(0,eu.jsx)(f.EY,{as:"p",fontFamily:"font-source-serif-pro",color:"text-white",fontSize:"text-sm",children:a})}),(0,eu.jsxs)("div",{id:"cta",className:"flex xl:flex-row flex-col xl:space-x-3 xl:space-y-0 space-y-3",children:[r&&l?(0,eu.jsx)(f.$n,{onPress:r,className:"rounded bg-carrot-600 hover:bg-carrot-800 py-3.5 px-5 w-full",children:(0,eu.jsx)(f.EY,{color:"text-white",weight:"font-bold",letterSpacing:"tracking-tight-1",children:l})}):null,s&&o?(0,eu.jsx)(f.$n,{onPress:s,className:"group rounded border border-grey-200 hover:bg-grey-200 py-3.5 px-5 shrink-0",children:(0,eu.jsx)(f.EY,{color:"text-white group-hover:text-grey-900",weight:"font-bold",letterSpacing:"tracking-tight-1",children:o})}):null]})]})})}))})})};var ax=a(62343),ay=a(40627),ab=a(46824);let av=e=>{let{children:t}=e;return(0,eu.jsx)(ab.A,{style:{overflow:"visible"},className:"xl:w-1/5 w-9/12 xl:mx-0 mx-auto",slideStyle:{paddingRight:"1rem",paddingLeft:"1rem"},enableMouseEvents:!0,children:t})};var aw=a(80114),aj=a(56189),ak=a(13826);let aN=(0,n.forwardRef)((e,t)=>{let{handleOpenClose:a,initialFocusRef:i,isSubmitting:r,handleIsSubmit:n,chargeData:s,mutate:l}=e;return(0,eu.jsxs)("div",{ref:t,className:"relative inline-block align-bottom bg-white rounded-lg px-4 pt-5 pb-4 text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-md
36sm:w-full sm:p-6",children:[(0,eu.jsxs)("div",{className:"sm:flex sm:items-start",children:[(0,eu.jsx)("div",{className:"mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-red-100 sm:mx-0 sm:h-10 sm:w-10",children:(0,eu.jsx)(aw.A,{className:"h-6 w-6 text-red-600","aria-hidden":"true"})}),(0,eu.jsxs)("div",{className:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left",children:[(0,eu.jsx)(ti.lG.Title,{as:"h3",className:"text-lg leading-6 font-medium text-gray-900",children:"Refund this donation"}),(0,eu.jsx)("div",{className:"mt-2",children:(0,eu.jsx)(f.EY,{as:"p",color:"text-grey-800",children:"Are you sure you want to process this refund? It may take several business days to reflect on your account."})})]})]}),(0,eu.jsxs)("div",{className:"mt-5 sm:mt-4 sm:ml-10 sm:pl-4 flex xl:flex-row flex-col xl:space-x-3 xl:space-y-0 space-y-3",children:[(0,eu.jsx)(f.$n,{onPress:()=>{(0,d.$s)("donor_portal_refund","confirm",`charge_id: ${s.charge_id}`),n(!0),(0,ak.Ku)("https://donordb.yaqeeninstitute.org/api/v1/refunds",{charge_id:s.charge_id,account:s.account,platform:s.platform},"POST").then(()=>{(0,d.$s)("donor_portal_refund","success",`charge_id: ${s.charge_id}`),l(),aj.toast.success("Your refund request has been sent.")}).catch(e=>{console.error("error",e),(0,d.$s)("donor_portal_refund","failure",`charge_id: ${s.charge_id}`),C.A.error("Error refunding charge",e),aj.toast.error("Astaghfirullah! We could not process your refund. Please contact support.")}).finally(()=>{n(!1),a(null)})},isDisabled:r,className:"rounded-md border border-transparent shadow-sm px-4 py-2 bg-red-600 hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500",children:(0,eu.jsx)(f.EY,{color:"text-white",weight:"font-bold",children:r?"Processing...":"Yes, refund donation"})}),(0,eu.jsx)(f.$n,{ref:i,isDisabled:r,className:"rounded-md border border-grey-300 shadow-sm px-4 py-2 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-carrot-500",onPress:()=>{(0,d.$s)("donor_portal_refund","cancel",`charge_id: ${s.charge_id}`),a(null)},children:(0,eu.jsx)(f.EY,{color:"text-grey-900",weight:"font-bold",children:"Cancel"})})]})]})});aN.displayName="RefundModalContent";let a_=(0,n.forwardRef)((e,t)=>{let{onSubmit:a,onCancel:i,isSubmitting:r,initialFocusRef:n}=e;return(0,eu.jsxs)("div",{ref:t,className:"relative inline-block align-bottom bg-white rounded-lg px-4 pt-5 pb-4 text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-md sm:w-full sm:p-6",children:[(0,eu.jsxs)("div",{className:"sm:flex sm:items-start",children:[(0,eu.jsx)("div",{className:"mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-red-100 sm:mx-0 sm:h-10 sm:w-10",children:(0,eu.jsx)(aw.A,{className:"h-6 w-6 text-red-600","aria-hidden":"true"})}),(0,eu.jsxs)("div",{className:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left",children:[(0,eu.jsx)(ti.lG.Title,{as:"h3",className:"text-lg leading-6 font-medium text-gray-900",children:"Stop recurring donation"}),(0,eu.jsx)("div",{className:"mt-2",children:(0,eu.jsx)(f.EY,{as:"p",color:"text-grey-800",children:"Are you sure you want to stop this donation? This will take effect immediately, and you will no longer be charged."})})]})]}),(0,eu.jsxs)("div",{className:"mt-5 sm:mt-4 sm:ml-10 sm:pl-4 flex xl:flex-row flex-col xl:space-x-3 xl:space-y-0 space-y-3",children:[(0,eu.jsx)(f.$n,{onPress:()=>a(),isDisabled:r,className:"rounded-md border border-transparent shadow-sm px-4 py-2 bg-red-600 hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500",children:(0,eu.jsx)(f.EY,{color:"text-white",weight:"font-medium",children:r?"Processing...":"Yes, stop recurring donation"})}),(0,eu.jsx)(f.$n,{ref:n,isDisabled:r,className:"rounded-md border border-grey-300 shadow-sm px-4 py-2 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-carrot-500",onPress:()=>i(),children:(0,eu.jsx)(f.EY,{color:"text-grey-900",weight:"font-bold",children:"Cancel"})})]})]})});a_.displayName="StopSubscriptionModal";var aS=a(31303);let aA=e=>{var t,a;let{selectedAccount:i,onChange:r,accountsDonatedTo:s}=e;return(0,eu.jsx)("div",{className:"w-auto max-w-sm",style:{minWidth:"10rem"},children:(0,eu.jsx)(ti.WF,{value:i,onChange:r,children:(0,eu.jsxs)("div",{className:"relative mt-1",children:[(0,eu.jsxs)(ti.WF.Button,{className:"relative w-full cursor-default rounded-lg bg-white py-2 pl-8 pr-10 text-left shadow focus:outline-none focus-visible:border-indigo-500 focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-opacity-75 focus-visible:ring-offset-2 focus-visible:ring-offset-orange-300 sm:text-sm",children:[(0,eu.jsx)("span",{className:"pointer-events-none absolute inset-y-0 left-0 flex items-center px-2",children:(0,eu.jsx)(l.g,{icon:"filter",fixedWidth:!0,size:"sm"})}),(0,eu.jsxs)("div",{className:"flex flex-row",children:[(0,eu.jsx)("span",{className:"text-xl pr-2",children:null==(t=aS.B$.find(e=>e.type===i))?void 0:t.flag}),(0,eu.jsx)("div",{className:"block truncate",children:null==(a=aS.B$.find(e=>e.type===i))?void 0:a.label}),(0,eu.jsx)("span",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-2",children:(0,eu.jsx)(l.g,{icon:["far","chevron-down"],fixedWidth:!0,size:"sm"})})]})]}),(0,eu.jsx)(ti.eB,{as:n.Fragment,leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,eu.jsx)(ti.WF.Options,{className:"absolute mt-1 max-h-60 w-full overflow-auto rounded-md bg-white py-1 text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm",children:null==s?void 0:s.map(e=>{var t,a;return(0,eu.jsxs)(ti.WF.Option,{className:e=>{let{active:t}=e;return`relative cursor-default select-none py-2 px-4 ${t?"bg-carrot-100 text-carrot-900":"text-grey-900"}`},value:e,children:[(0,eu.jsxs)("div",{className:"flex flex-row space-x-2",children:[(0,eu.jsx)("span",{className:`block truncate text-xl ${i===e?"font-medium":"font-normal"}`,children:null==(t=aS.B$.find(t=>t.type===e))?void 0:t.flag}),(0,eu.jsx)("span",{className:`block truncate ${i===e?"font-medium":"font-normal"}`,children:null==(a=aS.B$.find(t=>t.type===e))?void 0:a.label})]}),i===e?(0,eu.jsx)("span",{className:"absolute inset-y-0 right-0 flex items-center pr-4 bg-transparent",children:(0,eu.jsx)(l.g,{icon:["far","check-circle"],fixedWidth:!0,size:"sm",className:"text-carrot-900"})}):null]},e)})})})]})})})},aC=[{id:1,name:"Annual Receipt 2021",href:"#",amount:"$20,000",currency:"USD",status:"success",date:"11 July 2020",datetime:"2020-07-11"},{id:2,name:"Annual Receipt 2020",href:"#",amount:"$30,000",currency:"USD",status:"success",date:"12 July 2020",datetime:"2020-07-12"},{id:3,name:"Annual Receipt 2019",href:"#",amount:"$40,000",currency:"USD",status:"success",date:"12 July 2020",datetime:"2020-07-12"}],aP=[{href:"#",name:"Preview"},{href:"#",name:"Resend"},{href:"#",name:"Download"}],aT=[{href:"#",name:"Manage"}],aO=e=>{let{step:t}=e;return(0,eu.jsxs)(eu.Fragment,{children:[0===t&&(0,eu.jsx)("div",{className:"bg-white border border-grey-200 rounded-lg p-6",children:(0,eu.jsx)(f.EY,{as:"p",color:"text-grey-800",className:"text-center",children:"Annual receipts can be found here when finalized in 2023, inshallah."})}),1===t&&(0,eu.jsxs)(eu.Fragment,{children:[(0,eu.jsx)("div",{id:"annual-receipts-mobile",className:"shadow sm:hidden",children:(0,eu.jsx)("ul",{className:"mt-2 divide-y divide-gray-200 shadow sm:hidden -mx-4 xl:mx-0",children:aC.map(e=>(0,eu.jsx)("li",{className:"relative",children:(0,eu.jsxs)("div",{className:"flex justify-between items-center px-6 py-6 bg-white hover:bg-gray-50",children:[(0,eu.jsx)("span",{className:"flex items-center space-x-4",children:(0,eu.jsx)("span",{className:"flex-1 flex space-x-2 truncate",children:(0,eu.jsx)("span",{className:"flex flex-col text-gray-500 text-sm truncate",children:(0,eu.jsx)("span",{className:"truncate",children:(0,eu.jsx)(f.EY,{as:"p",color:"text-grey-900 group-hover:text-grey-800",fontSize:"text-sm",weight:"font-semibold",className:"truncate",children:e.name})})})})}),(0,eu.jsx)(aE,{})]})},e.id))})}),(0,eu.jsx)("div",{id:"annual-receipts-desktop",className:"hidden sm:block",children:(0,eu.jsx)("div",{className:"container mx-auto",children:(0,eu.jsx)("div",{className:"flex flex-col mt-2",children:(0,eu.jsx)("div",{className:"align-middle min-w-full overflow-x-auto shadow overflow-hidden sm:rou
36nded-lg",children:(0,eu.jsxs)("table",{className:"min-w-full divide-y divide-gray-200",children:[(0,eu.jsx)("thead",{children:(0,eu.jsx)("tr",{children:(0,eu.jsx)("th",{className:"px-6 py-3 bg-gray-50 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Year"})})}),(0,eu.jsx)("tbody",{className:"bg-white divide-y divide-gray-200",children:aC.map((e,t)=>(0,eu.jsxs)("tr",{className:t%2==0?"bg-white":"bg-gray-50",children:[(0,eu.jsx)("td",{className:"px-6 py-4 whitespace-nowrap text-sm text-gray-900",children:(0,eu.jsx)("div",{className:"flex",children:(0,eu.jsx)("a",{href:e.href,className:"group inline-flex space-x-2 truncate text-sm",children:(0,eu.jsx)(f.EY,{as:"p",color:"text-grey-900 group-hover:text-grey-800",fontSize:"text-sm",weight:"font-semibold",className:"truncate",children:e.name})})})}),(0,eu.jsx)("td",{className:"hidden px-6 py-4 whitespace-nowrap text-sm text-gray-500 md:block",children:(0,eu.jsx)("div",{className:"flex space-x-4 justify-end",children:aP.map(e=>(0,eu.jsx)(f.qh,{href:e.href,children:(0,eu.jsx)(f.EY,{color:"text-carrot-700 hover:text-carrot-500",fontSize:"text-sm",weight:"font-bold",children:e.name})},e.name))})})]},e.id))})]})})})})})]})]})},aE=()=>(0,eu.jsxs)(ti.W1,{as:"div",className:"relative",children:[(0,eu.jsx)("div",{children:(0,eu.jsxs)(ti.W1.Button,{className:"-m-1 flex items-center rounded-lg px-3 py-2 text-gray-500 hover:text-gray-600",children:[(0,eu.jsx)("span",{className:"sr-only",children:"Open options"}),(0,eu.jsx)(l.g,{icon:"ellipsis-v"})]})}),(0,eu.jsx)(ti.eB,{as:n.Fragment,enter:"transition ease-out duration-100",enterFrom:"transform opacity-0 scale-95",enterTo:"transform opacity-100 scale-100",leave:"transition ease-in duration-75",leaveFrom:"transform opacity-100 scale-100",leaveTo:"transform opacity-0 scale-95",children:(0,eu.jsx)(ti.W1.Items,{className:"focus:outline-none absolute right-0 z-10 mt-2 w-36 origin-top-right rounded-md bg-white shadow-lg ring-1 ring-black ring-opacity-5",children:(0,eu.jsx)("div",{className:"py-1",children:aP.map(e=>(0,eu.jsx)(ti.W1.Item,{children:t=>{let{active:a}=t;return(0,eu.jsx)("a",{href:"#test",className:` 37 ${a?"bg-carrot-50":"hover:bg-carrot-50"} block px-4 py-2 text-sm`,children:e.name})}},e.name))})})})]});var aI=a(20355),aD=a(91055);let aq=e=>{let{chargeData:t}=e,a={[g.u0.General]:"General",zakat:"Zakat",[g.u0.Endowment]:"Endowment"},{charge_id:i,customer_name:r,email:n,created:s,payment_method:l,designation:o,give_in:c,recipient_name:d,amount:h,amount_without_fee:u,tx_fee:m,cover_tx_fee:p,donation_type:x,currency:y,account:b}=t,v=(e=>{let t={supportEmail:"[email protected]",yaqeenName:"Yaqeen Institute for Islamic Research",yaqeenAddress:"7750 N. MacArthur Blvd, Suite 120237, Irving, TX 75063",footer:`<span>Yaqeen Institute for Islamic Research is a 501(C)(3) 38 organization. Our EIN is 81-2822877.</span> 39 <br /> 40 <br /> 41 <span>Your donation is tax-deductible to the extent allowed by U.S 42 law.</span> 43 <br /> 44 <span>Please save this receipt for your tax records as confirmation of 45 your donation.</span>`,privacyUrl:`${(0,t_.$_)()}/donor-privacy-policy`,termsUrl:`${(0,t_.$_)()}/terms-of-donation`};switch(e){case"my":t.supportEmail="[email protected]",t.yaqeenName="Yayasan Yaqeen Malaysia",t.yaqeenAddress="Level 15, Dpulze, Lingkaran Cyber Point Timur, Cyber 12, 63000, Cyberjaya, Malaysia",t.footer=`<span>Yayasan Yaqeen Malaysia is a registered charity under the PMâs office. Our Registration Number is: PPAB 02/2020.</span> 46 <br /> 47 <br /> 48 <span>Our Tax Exemption status is currently pending and will be granted shortly.</span>`;break;case"ca":t.supportEmail="[email protected]",t.yaqeenName="Yaqeen Institute Canada",t.yaqeenAddress="6045 Creditview Rd, Suite #204 Mississauga, ON L5V 0B1",t.footer="Yaqeen Institute for Islamic Research Canada is a registered charity in Canada and your donation is tax-deductible within the guidelines of Canadian law. Our Charity number is 710253113RR0001.<br/><br/>To claim a donation as a deduction on your taxes, please keep your email donation receipt as your official record.",t.termsUrl="https://yaqeeninstitute.ca/terms-of-donation",t.privacyUrl="https://yaqeeninstitute.ca/donor-privacy-policy";break;case"ed":t.yaqeenName="Yaqeen Endowment",t.footer=`<span>Yaqeen Endowment is a 509(A)(3) organization. Our EIN is 83-4372176.</span> 49 <br /> 50 <br />
51 <span>Your donation is tax-deductible to the extent allowed by U.S law.</span> 52 <br /> 53 <span>Please save this receipt for your tax records as confirmation of your donation.</span>`}return t})(b);return(0,eu.jsxs)("div",{id:"receipt",className:"max-w-lg mx-auto w-full border border-grey-100 rounded-lg overflow-hidden",children:[(0,eu.jsxs)("div",{id:"receipt-content",className:"bg-white p-6",children:[(0,eu.jsxs)("div",{className:"flex flex-col space-y-2",children:[(0,eu.jsxs)("div",{className:"flex justify-between space-x-1",children:[(0,eu.jsx)("div",{id:"left",children:(0,eu.jsx)(f.EY,{as:"p",color:"text-grey-700",fontSize:"text-sm",weight:"font-bold",letterSpacing:"tracking-wide",className:"uppercase",children:"Transaction ID"})}),(0,eu.jsx)("div",{id:"right",children:(0,eu.jsx)(f.EY,{as:"p",color:"text-grey-900",fontSize:"text-sm",className:"text-right",children:i})})]}),(0,eu.jsxs)("div",{className:"flex justify-between space-x-1",children:[(0,eu.jsx)("div",{id:"left",children:(0,eu.jsx)(f.EY,{as:"p",color:"text-grey-700",fontSize:"text-sm",weight:"font-bold",letterSpacing:"tracking-wide",className:"uppercase",children:"Status"})}),(0,eu.jsx)("div",{id:"right",children:(0,eu.jsx)(aI.Wh,{status:(0,aI.T3)(t)})})]}),(0,eu.jsxs)("div",{className:"flex justify-between space-x-1",children:[(0,eu.jsx)("div",{id:"left",children:(0,eu.jsx)(f.EY,{as:"p",color:"text-grey-700",fontSize:"text-sm",weight:"font-bold",letterSpacing:"tracking-wide",className:"uppercase",children:"Name"})}),(0,eu.jsx)("div",{id:"right",children:(0,eu.jsx)(f.EY,{as:"p",color:"text-grey-900",fontSize:"text-sm",className:"text-right",children:r})})]}),(0,eu.jsxs)("div",{className:"flex justify-between space-x-1",children:[(0,eu.jsx)("div",{id:"left",children:(0,eu.jsx)(f.EY,{as:"p",color:"text-grey-700",fontSize:"text-sm",weight:"font-bold",letterSpacing:"tracking-wide",className:"uppercase",children:"Email"})}),(0,eu.jsx)("div",{id:"right",children:(0,eu.jsx)(f.EY,{as:"p",color:"text-grey-900",fontSize:"text-sm",className:"text-right",children:n})})]}),(0,eu.jsxs)("div",{className:"flex justify-between space-x-1",children:[(0,eu.jsx)("div",{id:"left",children:(0,eu.jsx)(f.EY,{as:"p",color:"text-grey-700",fontSize:"text-sm",weight:"font-bold",letterSpacing:"tracking-wide",className:"uppercase",children:"Donation Date"})}),(0,eu.jsx)("div",{id:"right",children:(0,eu.jsx)(f.EY,{as:"p",color:"text-grey-900",fontSize:"text-sm",className:"text-right",children:(0,eO.format)(s,"DD MMMM YYYY")})})]}),(0,eu.jsxs)("div",{className:"flex justify-between space-x-1",children:[(0,eu.jsx)("div",{id:"left",children:(0,eu.jsx)(f.EY,{as:"p",color:"text-grey-700",fontSize:"text-sm",weight:"font-bold",letterSpacing:"tracking-wide",className:"uppercase",children:"Payment Method"})}),(0,eu.jsx)("div",{id:"right",children:(0,eu.jsx)(f.EY,{as:"p",color:"text-grey-900",fontSize:"text-sm",className:"text-right",children:{cc:"Credit/Debit Card",paypal:"PayPal","apple-pay":"Apple Pay",gpay:"Google Pay"}[l]})})]}),(0,eu.jsxs)("div",{className:"flex justify-between space-x-1",children:[(0,eu.jsx)("div",{id:"left",children:(0,eu.jsx)(f.EY,{as:"p",color:"text-grey-700",fontSize:"text-sm",weight:"font-bold",letterSpacing:"tracking-wide",className:"uppercase",children:"Count as"})}),(0,eu.jsx)("div",{id:"right",children:(0,eu.jsx)(f.EY,{as:"p",color:"text-grey-900",fontSize:"text-sm",className:"text-right",children:a[o]})})]})]}),Object.values(g.jp).includes(c)&&(0,eu.jsxs)(eu.Fragment,{children:[(0,eu.jsx)("div",{className:"border-b border-grey-100 my-3"}),(0,eu.jsx)("div",{className:"flex flex-col space-y-2",children:(0,eu.jsxs)("div",{className:"flex justify-between space-x-1",children:[(0,eu.jsx)("div",{id:"left",children:(0,eu.jsxs)(f.EY,{as:"p",color:"text-grey-700",fontSize:"text-sm",weight:"font-bold",letterSpacing:"tracking-wide",className:"uppercase",children:["In ",Object.values(g.jp).find(e=>e===c)," of"]})}),(0,eu.jsx)("div",{id:"right",children:(0,eu.jsx)(f.EY,{as:"p",color:"text-grey-900",fontSize:"text-sm",className:"text-right",children:d})})]})})]})]}),(0,eu.jsxs)("div",{id:"receipt-content2",className:"bg-grey-40 p-6 border-t border-grey-100",children:[(0,eu.jsxs)("div",{className:"flex flex-col space-y-2",children:[(0,eu.jsxs)("div",{className:"flex justify-between space-x-1",children:[(0,eu.jsx)("div",{id:"left",children:(0,eu.jsx)(f.EY,{as:"p",color:"text-grey-900",weight:"font-semibold",children:x})}),(0,eu.jsx)("div",{id:"right",children:(0,eu.jsx)(f.EY,{as:"p",color:"text-grey-900",fontSize:"text-sm",className:"text-right",children:(0,eu.jsx)(aD.B,{amount:p?(0,aI.F7)(u,h,m):h,fontCurrencySize:"text-xs",color:"text-endeavour-500",currency:y})})})]}),p&&(0,eu.jsx)(eu.Fragment,{children:(0,eu.jsxs)("div",{className:"flex justify-between space-x-1",children:[(0,eu.jsx)("div",{id:"left",children:(0,eu.jsx)("div",{className:"mb-1",children:(0,eu.jsx)(f.EY,{as:"p",color:"text-grey-900",weight:"font-semibold",children:"Transaction fee"})})}),(0,eu.jsx)("div",{id:"right",children:(0,eu.jsx)(f.EY,{as:"p",color:"text-grey-900",fontSize:"text-sm",className:"text-right",children:(0,eu.jsx)(aD.B,{amount:m,fontCurrencySize:"text-xs",color:"text-endeavour-500",currency:y})})})]})})]}),p&&(0,eu.jsxs)(eu.Fragment,{children:[(0,eu.jsx)(f.EY,{as:"p",color:"text-grey-800",fontSize:"text-sm",weight:"font-semibold",children:"You chose to cover the transaction fee. Thank y
53ou!"}),(0,eu.jsx)("div",{className:"border-b border-grey-100 my-3"})]}),(0,eu.jsx)("div",{className:"flex flex-col space-y-2",children:(0,eu.jsxs)("div",{className:"flex justify-between space-x-1",children:[(0,eu.jsx)("div",{id:"left",children:(0,eu.jsx)(f.EY,{as:"p",color:"text-grey-700",fontSize:"text-2xl",weight:"font-semibold",letterSpacing:"tracking-tight-1",children:"Total"})}),(0,eu.jsx)("div",{id:"right",children:(0,eu.jsx)(f.EY,{as:"p",color:"text-grey-900",fontSize:"text-2xl",className:"text-right",children:(0,eu.jsx)(aD.B,{amount:h,fontCurrencySize:"text-base",fontAmountSize:"text-2xl",color:"text-endeavour-500",currency:y})})})]})})]}),(0,eu.jsx)("div",{id:"receipt-footer",className:"bg-white p-6 border-t border-b border-grey-100",children:(0,eu.jsxs)(f.EY,{as:"p",color:"text-grey-700",fontSize:"text-xs",className:"text-center",children:["For help or support, email"," ",(0,eu.jsx)(f.qh,{href:`mailto:${v.supportEmail}`,className:"font-bold text-carrot-500",children:v.supportEmail})]})}),(0,eu.jsxs)("div",{id:"receipt-tax-info",className:"my-6 mx-4 flex flex-col",children:[(0,eu.jsx)(f.EY,{fontSize:"text-xs",weight:"font-semibold",color:"text-endeavour-500",lineHeight:"leading-4",children:v.yaqeenName}),(0,eu.jsx)(f.EY,{fontSize:"text-xs",color:"text-grey-700",lineHeight:"leading-4",children:v.yaqeenAddress}),(0,eu.jsx)("div",{className:"border border-carrot-500 my-5 w-6"}),(0,eu.jsx)(f.EY,{fontSize:"text-xss",weight:"font-bold",color:"text-grey-800",lineHeight:"leading-3",children:"FOR YOUR TAX PURPOSES"}),(0,eu.jsx)("div",{dangerouslySetInnerHTML:{__html:v.footer},className:"text-xss text-grey-800 leading-3 mt-2"}),(0,eu.jsx)("div",{className:"mt-5",children:(0,eu.jsxs)(f.EY,{fontSize:"text-xss",color:"text-grey-700",weight:"font-bold",children:[(0,eu.jsx)(f.qh,{href:v.termsUrl,children:"Terms of Donation "}),"â¢",(0,eu.jsx)(f.qh,{href:v.privacyUrl,children:" Donor Privacy Policy"})]})})]})]})},aM=e=>{let{chargeData:t}=e;return(0,eu.jsxs)("table",{className:"min-w-full divide-y divide-gray-200",children:[(0,eu.jsx)("thead",{children:(0,eu.jsxs)("tr",{children:[(0,eu.jsx)("th",{className:"px-6 py-3 bg-gray-50 text-left text-sm font-medium text-gray-500 tracking-wider",children:"Date"}),(0,eu.jsx)("th",{className:"px-6 py-3 bg-gray-50 text-left text-sm font-medium text-gray-500 tracking-wider",children:"Donation type"}),(0,eu.jsx)("th",{className:"px-6 py-3 bg-gray-50 text-right text-sm font-medium text-gray-500 tracking-wider",children:"Amount"}),(0,eu.jsx)("th",{className:"px-6 py-3 bg-gray-50 text-left text-sm font-medium text-gray-500 tracking-wider",children:"Payment Method"}),(0,eu.jsx)("th",{className:"px-6 py-3 bg-gray-50 text-left text-sm font-medium text-gray-500 tracking-wider",children:"Status"})]})}),(0,eu.jsx)("tbody",{className:"bg-white divide-y divide-gray-200",children:t.map((e,t)=>{var a,i;return(0,eu.jsxs)("tr",{className:t%2==0?"bg-white":"bg-gray-50",children:[(0,eu.jsx)("td",{className:"px-6 py-4 whitespace-nowrap text-sm text-gray-500",children:(0,eu.jsx)("time",{dateTime:"",children:(0,eO.format)(e.created,"D MMMM YYYY")})}),(0,eu.jsx)("td",{className:"px-6 py-4 whitespace-nowrap text-sm text-gray-900",children:(0,eu.jsx)("p",{className:"text-gray-500 truncate group-hover:text-gray-900",children:e.donation_type})}),(0,eu.jsx)("td",{className:"px-6 py-4 text-right whitespace-nowrap text-sm text-gray-500",children:(0,eu.jsxs)(eu.Fragment,{children:[(0,eu.jsx)("span",{className:"text-gray-900 font-medium",dangerouslySetInnerHTML:{__html:`${null==(a=o.$i.find(t=>t.code===(null==e?void 0:e.currency)))?void 0:a.symbol}${eT()(null==e?void 0:e.amount)}`}})," ",(0,eu.jsx)("span",{dangerouslySetInnerHTML:{__html:null==(i=o.$i.find(t=>t.code===(null==e?void 0:e.currency)))?void 0:i.title}})]})}),(0,eu.jsx)("td",{className:"px-6 py-4 whitespace-nowrap text-sm text-gray-900",children:(0,eu.jsx)("p",{className:"text-gray-500 truncate group-hover:text-gray-900",children:aI.I[e.payment_method]??e.payment_method})}),(0,eu.jsx)("td",{className:"px-6 py-4 text-left whitespace-nowrap text-sm text-gray-500",children:(0,eu.jsx)(aI.Wh,{status:(0,aI.T3)(e)})}),(0,eu.jsx)("td",{className:"hidden px-6 py-4 whitespace-nowrap text-sm text-gray-500 md:block",children:(0,eu.jsx)("div",{className:"flex space-x-4 justify-end",children:aT.map(t=>(0,eu.jsx)(f.qh,{href:`/dashboard/donations/${e.charge_id}`,onClick:()=>{(0,d.$s)("donor_portal_charge_list","click",`item_clicked: ${t.name}, device: desktop`)},children:(0,eu.jsx)(f.EY,{color:"text-carrot-700 hover:text-carrot-500",fontSize:"text-sm",weight:"font-bold",children:t.name})},t.name))})})]},e.charge_id)})})]})},a$=e=>{let{chargeData:t}=e;return(0,eu.jsx)("ul",{className:"mt-2 divide-y divide-gray-200 overflow-hidden shadow sm:hidden -mx-4 xl:mx-0",children:t.map(e=>{var t,a;return(0,eu.jsx)("li",{children:(0,eu.jsxs)(f.qh,{href:`/dashboard/donations/${e.charge_id}`,className:"flex justify-between items-center px-4 py-4 bg-white hover:bg-gray-50",onClick:()=>(0,d.$s)("donor_portal_charge_list","click","device: mobile"),children:[(0,eu.jsx)("span",{className:"flex items-center space-x-4",children:(0,eu.jsxs)("span",{className:"flex-1 flex space-x-2 truncate",children:[(0,eu.jsxs)("span",{className:"flex flex-col text-gray-500 text-sm truncate",children:[(0,eu.jsx)("time",{children:(0,eO.format)(e.created,"D MMMM YYYY")}),(0,eu.jsx)("span",{className:"truncate",children:e.donation_type}),(0,eu.jsxs)("div",{className:"flex flex-row space-x-1",children:[(0,eu.jsx)("span",{className:"text-gray-900 font-medium",dangerouslySetInnerHTML:{__html:`${null==(t=o.$i.find(t=>t.code===(null==e?void 0:e.currency)))?void 0:t.symbol}${eT()(null==e?void 0:e.amount)}`}}),(0,eu.jsx)("span",{dangerouslySetInnerHTML:{__html:null==(a=o.$i.find(t=>t.code===(null==e?void 0:e.currency)))?void 0:a.title}})]}),(0,eu.jsx)("span",{className:"truncate",children:aI.I[e.payment_method]??e.payment_method})]}),(0,eu.jsx)("span",{className:"mt-1",children:(0,eu.jsx)(aI.Wh,{status:(0,aI.T3)(e)})})]})}),(0,eu.jsxs)("div",{className:"flex flex-row space-x-1 items-center",children:[aT.map(e=>(0,eu.jsx)(f.EY,{color:"text-carrot-700 hover:text-carrot-500",fontSize:"text-sm",weight:"font-bold",children:e.name},e.name)),(0,eu.jsx)(l.g,{icon:"chevron-right",className:"text-carrot-500"})]})]})},e.charge_id)})})},aH=[{country:"US",faqs:[{title:"Why do I not see all of my donations listed?",content:"Any donations made through Facebook, Instagram, or YouTube are not yet reflected in the donation history tab."},{title:"Were my donations tax-deductible?",content:"Yes. Yaqeen Research Institute (DBA Yaqeen Institute for Islam
53ic Research) is a registered, 501(c)(3) nonprofit organization with EIN 81-2822877. Yaqeen Endowment is a separate, registered, 501(c)(3) nonprofit organization with EIN 83-4372176. Its public charity (PC) status is 509(A)(3) Type I, meaning it is a supporting organization. It was founded to benefit and support the purposes of Yaqeen Research Institute. Donations to both entities are tax-deductible. To claim a donation as a deduction on your U.S. taxes, please keep your email donation receipt from Yaqeen as your official record. If you have not received it, please contact <a class='url' href='mailto:[email protected]'>[email protected]<a/>"}]},{country:"CA",faqs:[{title:"Why do I not see all of my donations listed?",content:"Any donations made through Facebook, Instagram, or YouTube are not yet reflected in the donation history tab."},{title:"Were my donations tax-deductible?",content:"Yes. Yaqeen Institute for Islamic Research Canada is a registered charity in Canada, and your donation is tax-deductible within the guidelines of Canadian law. Our Charity number is 710253113RR0001. To claim a donation as a deduction on your taxes, please use your email donation receipt as your official record. If you have not received it, please contact <a class='url' href='mailto:[email protected]'>[email protected]<a/>"}]},{country:"MY",faqs:[{title:"Why do I not see all of my donations listed?",content:"Any donations made through Facebook, Instagram, or YouTube are not yet reflected in the donation history tab."},{title:"Were my donations tax exempt?",content:"Yayasan Yaqeen Malaysia is an incorporated charity under the Prime Minister's Department of Malaysia. We are in the process of obtaining tax exemption status from LHDNM."}]}],aR=e=>{var t;let{country:a}=e;return(0,eu.jsx)("div",{className:"space-y-10",children:null==(t=aH.find(e=>e.country===a.toLocaleUpperCase()||aH.find(e=>"US"===e.country)))?void 0:t.faqs.map(e=>(0,eu.jsxs)("div",{children:[(0,eu.jsx)("div",{className:"mb-3",children:(0,eu.jsx)(f.EY,{as:"p",fontSize:"text-lg",weight:"font-semibold",lineHeight:"leading-snug",color:"text-grey-900",children:e.title})}),(0,eu.jsx)("div",{children:(0,eu.jsx)(f.EY,{as:"p",fontFamily:"font-source-serif-pro",lineHeight:"leading-relaxed",fontSize:"text-sm",color:"text-grey-700",children:(0,eu.jsx)("span",{dangerouslySetInnerHTML:{__html:e.content}})})})]},e.title))})},az=()=>(0,eu.jsxs)("div",{className:"flex lg:space-x-10 lg:flex-row flex-col bg-endeavour-500 lg:py-10 py-5 lg:px-20 px-3 rounded-lg items-center",children:[(0,eu.jsx)("div",{className:"mt-14 lg:mt-0",children:(0,eu.jsx)(e_(),{loader:eS.R2,alt:"dashboard",src:"/static/images/donations-heart.png",height:210,width:405})}),(0,eu.jsxs)("div",{className:"flex flex-col",children:[(0,eu.jsx)("div",{className:"xl:mb-10 mb-6",children:(0,eu.jsx)(f.DZ,{color:"text-white",weight:"font-extrabold",fontSize:"xl:text-6xl text-3xl",letterSpacing:"tracking-tight",lineHeight:"leading-tight",children:"You're new"})}),(0,eu.jsxs)("div",{className:"mb-3 flex xl:flex-row flex-col xl:space-x-4 xl:space-y-0 space-y-2",children:[(0,eu.jsx)(f.qh,{href:"/donate",className:"inline-flex items-center bg-carrot-500 px-4 py-2 rounded",onClick:()=>(0,d.$s)("donor_portal_header","click","item_clicked: make-first-donation-btn"),children:(0,eu.jsx)(f.EY,{as:"p",color:"text-white",weight:"font-bold",letterSpacing:"tracking-tight-1",lineHeight:"leading-tight",children:"Make your first donation"})}),(0,eu.jsx)(f.qh,{href:"/about-us/our-mission",className:"inline-flex items-center border border-white px-4 py-2 rounded",onClick:()=>(0,d.$s)("donor_portal_header","click","item_clicked: about-yaqeen-btn"),children:(0,eu.jsx)(f.EY,{as:"p",color:"text-white",weight:"font-bold",letterSpacing:"tracking-tight-1",lineHeight:"leading-tight",children:"About Yaqeen"})})]})]})]}),aF=()=>(0,eu.jsx)("div",{className:"bg-white border border-grey-200 rounded-lg p-6",children:(0,eu.jsxs)("div",{className:"max-w-xs mx-auto",children:[(0,eu.jsx)(f.EY,{as:"p",color:"text-grey-800",className:"text-center",children:"Donation history can be found here."}),(0,eu.jsx)(f.qh,{href:"/donate?int_source=yaqeeninstitute.org&int_campaign=donor_portal&int_content=donation_history_cta",children:(0,eu.jsx)(f.EY,{as:"p",color:"text-carrot-500",className:"text-center",weight:"font-semibold",children:"Make a donation"})})]})}),aY=()=>(0,eu.jsxs)("svg",{className:"animate-spin -ml-1 mr-3 h-5 w-5 text-grey-500",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[(0,eu.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,eu.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]});var aL=a(67153);let aB=()=>(0,eu.jsx)(eu.Fragment,{children:(0,eu.jsxs)("div",{className:"flex items-center space-x-2 mt-4",children:[(0,eu.jsx)(aL.Ex,{text:"New"}),(0,eu.jsx)(f.EY,{weight:"font-semibold",children:"Keep track of your donations!"})]})});var aU=a(74010),aW=a(17199);let aG=e=>{let{otherUnits:t,topic:a,currentUnit:i}=e;return(0,eu.jsx)(eu.Fragment,{children:t.length>0&&(0,eu.jsxs)("div",{id:"other-units",children:[(0,eu.jsxs)("div",{id:"title",className:"lg:px-0 px-10",children:[(0,eu.jsx)(f.DZ,{fontSize:"text-3xl",weight:"font-bold",lineHeight:"leading-tight",children:"See other units"}),(0,eu.jsx)("div",{id:"divider",className:"border-b border-gray-100 mt-2 mb-6"})]}),(0,eu.jsxs)("div",{className:"lg:grid lg:grid-cols-4 lg:gap-6 mb-20 flex lg:flex-col flex-row overflow-x-auto lg:space-x-0 space-x-6",style:{scrollSnapType:"x mandatory"},children:[(0,eu.jsx)("div",{className:"lg:hidden flex-shrink-0"}),t.sort((e,t)=>
53e.order-t.order).map(e=>(0,eu.jsx)(f.qh,{href:`/curriculum/${a.slug}/${e.slug}`,className:"flex-shrink-0 lg:w-full w-3/4 lg:grid col-span-1",onClick:()=>{(0,d.$s)("curriculum-unit","click",`item_name: Other Units - ${i.name} - ${e.name}`)},children:(0,eu.jsxs)("div",{className:"rounded border border-gray-200 px-6 py-5",style:{scrollSnapAlign:"center"},children:[(0,eu.jsx)("div",{className:"lg:mb-10 mb-6 flex justify-center",children:(0,eu.jsx)(e_(),{src:e.featured_image,loader:eS.R2,height:266,width:200,alt:e.name,className:"rounded-tr-lg rounded-br-lg"})}),(0,eu.jsx)(ai.fo,{category:`${e.number}`,size:"text-xss"}),(0,eu.jsx)("div",{className:"mb-5",children:(0,eu.jsx)(f.DZ,{fontSize:"text-xl",weight:"font-bold",color:"text-endeavour-500",lineHeight:"leading-tight",letterSpacing:"tracking-tight-1",children:e.name})}),(0,eu.jsx)(f.EY,{as:"div",color:"text-gray-800",fontFamily:"font-source-serif-pro",fontSize:"text-sm",lineHeight:"leading-relaxed",children:(0,aW.Ay)(e.description)})]},e.slug)},e.slug)),(0,eu.jsx)("div",{className:"lg:hidden flex-shrink-0"})]})]})})};var aZ=a(66918),aQ=a(17250);let aV=async(e,t)=>{try{let a=(0,aQ.l$)("CurriculumUserData",e),i=(await (0,aQ.W4)(a)).exists();return await (0,aQ._9)(a,t,{merge:i}),!0}catch(t){return((e,t)=>{C.A.log(e,t,C.$.ERROR),console.error(e,t)})("Error saving curriculum user data",{email:e,err:t}),!1}};function aK(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,i)}return a}function aJ(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?aK(Object(a),!0).forEach(function(t){(0,i.A)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):aK(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}let aX={middle_school:"Middle school",high_school:"High school",college:"College",other:"Other"},a0={fulltime_school:"Full-time school",weekend_school:"Weekend school",home_school:"Home school",youth_group:"Youth group",college_msa:"College MSA",other:"Other"},a1=e=>{let{0:t,1:a}=(0,n.useState)(null),{register:i,handleSubmit:r,errors:s,formState:o,setValue:c,setError:d,clearErrors:u,watch:m}=(0,h.mN)({mode:"onChange"}),p={city:null,country_code:null,state:null},{0:g,1:x}=(0,n.useState)(p),[y]=(0,aZ.b)(),{firebaseAuth:b}=(0,tz.m9)(),{userInfo:v}=b,w=m("school_type"),j=!o.isValid||o.isSubmitting;(0,n.useEffect)(()=>{v.authState===t8.j_.VerifiedAuth&&(e=>{let{displayName:t}=e;if(t){let e=t.substring(0,t.indexOf(" ")),a=t.substring(t.indexOf(" ")+1)||"";c("first_name",e,{shouldValidate:!0}),c("last_name",a,{shouldValidate:!0})}})(v.user)},[v.authState,v.user,c]);let k=async t=>{if(a(null),!await aV(e.email,aJ(aJ({},t),g)))return void a({message:"An error occurred while submitting your details!"});e.onFormSubmit()};return(0,eu.jsx)(eu.Fragment,{children:(0,eu.jsxs)("form",{method:"post",onSubmit:r(k),className:"mb-1 w-full",children:[(0,eu.jsx)("div",{className:"inline-flex items-center justify-center w-full my-1",children:(0,eu.jsxs)("div",{className:"inline-flex flex-col items-start justify-center flex-1",children:[(0,eu.jsxs)("div",{className:"inline-flex flex-row items-start justify-start w-full",children:[(0,eu.jsx)("div",{className:"w-1/2",children:(0,eu.jsx)(f.DZ,{fontSize:"text-3xl",weight:"font-semibold",letterSpacing:"tracking-tight-1",color:"text-endeavour-500",className:"w-64 leading-tight",children:"Letâs get started"})}),(0,eu.jsx)("div",{className:"inline-flex items-end justify-end w-1/2 mt-3",children:(0,eu.jsx)(f.$n,{"aria-label":"close modal",onPress:e.onClose,children:(0,eu.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,eu.jsx)("path",{d:"M7.7846 6L11.824 1.96056C12.0577 1.72694 12.0577 1.34782 11.824 1.11383L10.8854 0.175216C10.6518 -0.0584053 10.2727 -0.0584053 10.0387 0.175216L5.99963 4.21503L1.96019 0.175591C1.72657 -0.0580303 1.34745 -0.0580303 1.11345 0.175591L0.175216 1.11383C-0.0584053 1.34745 -0.0584053 1.72657 0.175216 1.96056L4.21465 6L0.175216 10.0394C-0.0584053 10.2731 -0.0584053 10.6522 0.175216 10.8862L1.11383 11.8248C1.34745 12.0584 1.72657 12.0584 1.96056 11.8248L5.99963 7.78497L10.0391 11.8244C10.2727 12.058 10.6518 12.058 10.8858 11.8244L11.8244 10.8858C12.058 10.6522 12.058 10.2731 11.8244 10.0391L7.7846 6Z",fill:"#D1D5DB"})})})})]}),(0,eu.jsx)(f.EY,{fontSize:"text-lg",children:"Help us understand who you are b
53y completing this section."})]})}),(0,eu.jsx)("div",{className:"inline-flex items-center justify-center w-full",children:(0,eu.jsx)("div",{className:"flex-1 h-0.5 bg-gray-200"})}),t&&(0,eu.jsx)("div",{className:"inline-flex items-start justify-start w-full p-4 bg-red-50 rounded-md",children:(0,eu.jsx)(tz.$p,{errors:t,logTitle:t.code,content:t.message,onClose:()=>{a(null)}})}),(0,eu.jsxs)("div",{className:"mt-2 grid xl:grid-cols-2 gap-6",children:[(0,eu.jsx)("div",{children:(0,eu.jsx)(f.A_,{name:"first_name",placeholder:"First name",label:"First name",labelClassName:"text-gray-800 text-base font-bold mb-1",inputClassName:"appearance-none block w-full text-gray-900 placeholder-gray-700 border border-gray-200 py-3.5 px-4 leading-tight focus:outline-none focus:bg-white text-lg rounded",ref:i({required:"Please enter your first name"}),validationState:s.first_name?"invalid":"valid",validationMsg:s.first_name?s.first_name.message:null})}),(0,eu.jsx)("div",{children:(0,eu.jsx)(f.A_,{name:"last_name",placeholder:"Last name",label:"Last name",labelClassName:"text-gray-800 text-base font-bold mb-1",inputClassName:"appearance-none block w-full text-gray-900 placeholder-gray-700 border border-gray-200 py-3.5 px-4 leading-tight focus:outline-none focus:bg-white text-lg rounded",ref:i(),validationState:s.last_name?"invalid":"valid",validationMsg:s.last_name?s.last_name.message:null})})]}),(0,eu.jsx)("div",{className:"mt-6",children:(0,eu.jsx)("div",{children:(0,eu.jsx)(f.A_,{name:"school_or_organization",placeholder:"e.g. ABC Islamic School",label:"Name of school or organization",labelClassName:"text-gray-800 text-base font-bold mb-1",inputClassName:"appearance-none block w-full text-gray-900 placeholder-gray-700 border border-gray-200 py-3.5 px-4 leading-tight focus:outline-none focus:bg-white text-lg rounded",ref:i({required:"Please enter your school or organization"}),validationState:s.school_or_organization?"invalid":"valid",validationMsg:s.school_or_organization?s.school_or_organization.message:null})})}),(0,eu.jsxs)("div",{className:"mt-6 grid xl:grid-cols-2 gap-6",children:[(0,eu.jsxs)("div",{children:[(0,eu.jsx)("div",{className:"block text-gray-800 text-base font-bold mb-1 tracking-tight-1",children:"Type of school or organization"}),(0,eu.jsx)("div",{className:`border ${s.school_type?"border-alert-dark":"border-gray-300"}`,children:(0,eu.jsxs)("select",{ref:i({required:"Please select a type of school or organization"}),defaultValue:"",name:"school_type",className:"form-select block w-full border-none py-2.5",children:[(0,eu.jsx)("option",{value:"",children:"--Select--"},"type-none"),Object.keys(a0).map(e=>(0,eu.jsx)("option",{value:e,children:a0[e]},e))]})}),s.school_type&&"required"===s.school_type.type&&(0,eu.jsxs)("div",{className:"inline-block mt-1",children:[(0,eu.jsx)(l.g,{icon:"exclamation-triangle",className:"mr-2 text-alert-dark",fixedWidth:!0}),(0,eu.jsx)("span",{className:"font-proxima-nova text-base leading-normal tracking-normal text-alert-dark font-normal",children:"Please select a school type or organization"})]})]}),(0,eu.jsxs)("div",{children:[y===aZ.P.LOADED&&(0,eu.jsx)(tz.$h,{name:"city",placeholder:"e.g. Dallas",setValue:c,label:"City",ref:i({required:"Please enter your city"}),validationState:s.city?"invalid":"valid",validationMsg:s.city?s.city.message:null,geoCodeCallback:e=>{var t;if(!e){x(p),d("city",{type:"custom",message:"Please select city from the dropdown"});return}u("city");let a=e[0].address_components,i=a.find(e=>e.types.includes("country")),r=a.find(e=>e.types.includes("administrative_area_level_1"));x({city:(null==(t=a.find(e=>e.types.includes("locality")))?void 0:t.long_name)||"",country_code:(null==i?void 0:i.short_name)||"",state:(null==r?void 0:r.short_name)||""})}}),y!==aZ.P.LOADED&&(0,eu.jsx)("div",{className:"mt-6",children:(0,eu.jsx)("div",{children:(0,eu.jsx)(f.A_,{name:"city",placeholder:"e.g. Dallas",label:"City",ref:i({required:"Please enter your city"}),type:"text",autoComplete:"off",labelClassName:"text-gray-800 text-base font-bold mb-1",inputClassName:"appearance-none block w-full text-gray-900 placeholder-gray-700 border border-gray-200 py-3.5 px-4 leading-tight focus:outline-none focus:bg-white text-lg rounded",validationState:s.city?"invali
53d":"valid",validationMsg:s.city?s.city.message:null})})})]})]}),"other"===w&&(0,eu.jsx)("div",{className:"mt-6",children:(0,eu.jsx)("div",{children:(0,eu.jsx)(f.A_,{name:"other_school_type",placeholder:"",label:"Please explain your organization or school type",labelClassName:"text-gray-800 text-base font-bold mb-1",inputClassName:"appearance-none block w-full text-gray-900 placeholder-gray-700 border border-gray-200 py-3.5 px-4 leading-tight focus:outline-none focus:bg-white text-lg rounded",ref:i({required:"Please explain your organization or school type"}),validationState:s.other_school_type?"invalid":"valid",validationMsg:s.other_school_type?s.other_school_type.message:null})})}),(0,eu.jsx)("div",{className:"mt-6",children:(0,eu.jsx)(f.$Q,{label:"At what grade level(s) do you plan to teach the curriculum? Please select all that apply.",labelClassName:"text-gray-800 text-base font-bold mb-1","aria-label":"grade",children:(0,eu.jsxs)("div",{className:"space-y-3",children:[Object.keys(aX).map(e=>(0,eu.jsx)(f.Sc,{name:"grade",value:e,ref:i({required:"Please choose at least one grade level"}),validationState:s.grade?"invalid":"valid",children:aX[e]},e)),s.grade&&"required"===s.grade.type&&(0,eu.jsxs)("div",{className:"inline-block mt-1",children:[(0,eu.jsx)(l.g,{icon:"exclamation-triangle",className:"mr-2 text-alert-dark",fixedWidth:!0}),(0,eu.jsx)("span",{className:"font-proxima-nova text-base leading-normal tracking-normal text-alert-dark font-normal",children:"Please choose at least one grade level"})]})]})})}),(0,eu.jsx)("div",{className:"mt-6",children:(0,eu.jsx)(f.Sc,{name:"agree_to_recieve_communications",value:"true",ref:i(),children:"Email me regular updates of the latest Yaqeen content."})}),(0,eu.jsx)("div",{className:"mt-6",children:(0,eu.jsxs)(f.Sc,{name:"agree_to_store_personal_data",value:"true",ref:i({required:!0}),validationState:s.agree_to_store_personal_data?"invalid":"valid",children:["I agree to allow Yaqeen Institute to store and process my personal data. Learn more"," ",(0,eu.jsx)(f.qh,{href:"/privacy-policy",children:(0,eu.jsx)("span",{className:"font-bold underline",children:"here"})})," ","about our privacy policy."]})}),(0,eu.jsx)("div",{className:"mt-6",children:(0,eu.jsx)(f.$n,{type:"submit",className:`inline-block px-4 py-3 rounded ${j?"bg-gray-300":"bg-carrot-500"}`,isDisabled:j,children:(0,eu.jsx)(f.EY,{weight:"font-bold",color:j?"text-neutral-600":"text-white",children:"Next"})})})]})})};var a2=a(19641);let a4=e=>{var t,a,i;let{item:r,unit:n}=e,{title:s,thumbnail:l}=r;return(0,eu.jsxs)("div",{className:"flex flex-row lg:flex-col items-start justify-start gap-5 lg:gap-4",children:[(0,eu.jsxs)("div",{className:"w-24 lg:w-full",children:[(0,eu.jsx)("div",{className:"hidden lg:block",children:(0,eu.jsx)(e_(),{src:l||a2.d,loader:eS.R2,height:133,width:236,alt:"related item",className:"border"})}),(0,eu.jsx)("div",{className:"block lg:hidden",children:(0,eu.jsx)(e_(),{src:l||a2.d,loader:eS.R2,height:54,width:96,alt:"related item",className:"border"})})]}),(0,eu.jsxs)("div",{className:"flex flex-col items-start justify-start w-2/3 gap-1.5",children:[(0,eu.jsx)(f.qh,{href:null==(t=r.subtopic)?void 0:t.slug,passHref:!0,className:"mb-1",onClick:()=>{var e;(0,d.$s)("curriculum-unit","click",`item_name: Additional Resource - Category - ${n.name} - ${null==(e=r.subtopic)?void 0:e.name}`)},children:(0,eu.jsx)(ai.fo,{category:null==(a=r.subtopic)?void 0:a.name,size:"text-xss",lineHeight:"leading-3"})}),(0,eu.jsx)(f.qh,{href:r.content_link,onClick:()=>{(0,d.$s)("curriculum-unit","click",`item_name: Additional Resource - Title - ${n.name} - ${s}`)},children:(0,eu.jsx)(f.EY,{as:"p",color:"text-y-black",weight:"font-bold",letterSpacing:"tracking-tight-2",lineHeight:"leading-4 lg:leading-tight",fontSize:"text-xs lg:text-sm",children:s})}),(0,eu.jsx)(ai.EJ,{authors:r.authors,fontSize:"text-xs",trackingProps:{category:"curriculum-unit",action:"click",label:`item_name: Additional Resource - Author - ${n.name} - ${null==(i=r.authors[0])?void 0:i.name}`}})]})]})},a5=e=>{let{unit:t}=e,{related_items:a}=t,i=a.filter(e=>e.title);return(0,eu.jsx)(eu.Fragment,{children:i&&i.length>0&&(0,eu.jsxs)("div",{id:"additional-resources",className:"flex flex-col lg:max-w-4xl xl:max-w-5xl xl-md:max-w-7xl mx-auto w-full pt-8 px-4 pb-10 lg:py-20 lg:px-0 gap-6 lg:gap-4",children:[(0,eu.jsx)("div",{id:"title",children:(0,eu.jsx)(f.DZ,{fontSize:"text-3xl lg:text-4xl",weight:"font-extrabold",className:"-tracking-[0.025em] text-endeavour-500",children:"Other resources related to this topic:"})}),(0,eu.jsx)("div",{className:"grid grid-cols-1 lg:grid-cols-5 overflow-x-auto lg:pb-10 gap-6",children:i.map((e,a)=>(0,eu.jsx)(a4,{item:e,unit:t},a))})]})})};var a3=a(83858),a6=a(19646);let a9=e=>{let{unit:t}=e,{sections:a}=t,i=a?a.filter(e=>!1===e.is_introduction):[];return(0,eu.jsx)("div",{id:"section-list",children:i&&i.sort((e,t)=>
53e.order-t.order).map(e=>{let{id:a,name:i,subtitle:r,description:n,resources:s}=e,l=s?s.filter(e=>e.is_worksheet):[],o=s?null==s?void 0:s.filter(e=>!e.is_worksheet):[],c=eY().load(n||"");c("ol").addClass("px-4 list-decimal");let d=c("body").html();return(0,eu.jsxs)("div",{id:(0,tF.z9)(i),className:"flex flex-wrap items-start justify-start px-2 lg:px-0 py-8 lg:pt-10 lg:pb-20 gap-3 lg:gap-6 lg:max-w-4xl xl:max-w-5xl xl-md:max-w-7xl mx-auto",children:[(0,eu.jsxs)("div",{className:"grid grid-cols-2 lg:grid-cols-3 justify-start py-0 px-2 lg:px-0 gap-y-3 gap-x-4 lg:gap-x-6 lg:gap-6 w-full",children:[(0,eu.jsxs)("div",{className:"flex flex-col col-span-2 lg:col-span-1 items-start justify-start w-full mx-0 my-0 py-0 px-2 lg:px-0 rounded-none gap-4 lg:gap-6",children:[(0,eu.jsxs)("div",{className:"flex flex-shrink-0 flex-col items-start justify-start w-full mx-0 my-0 p-0 rounded-none gap-4",children:[(0,eu.jsxs)("div",{className:"flex flex-col items-start justify-start gap-2",children:[(0,eu.jsx)(f.DZ,{color:"text-carrot-600",weight:"font-bold",fontSize:"text-xl lg:text-2xl",lineHeight:"leading-7 lg:leading-8",className:"flex-none self-stretch grow-0 -tracking-[0.012em]",children:(0,aW.Ay)(i)}),r&&(0,eu.jsx)(f.DZ,{color:"text-endeavour-500",weight:"font-extrabold",fontSize:"lg:text-4xl text-2xl",className:"flex-none self-stretch grow-0 -tracking-[0.012em] leading-8 lg:leading-10",children:(0,aW.Ay)(r)})]}),(0,eu.jsx)("div",{className:"w-10 border border-1 border-carrot-600"})]}),(0,eu.jsx)(f.EY,{as:"div",color:"text-gray-800",fontSize:"text-base lg:text-lg",letterSpacing:"tracking-normal lg:-tracking-[0.012em]",lineHeight:"leading-6 lg:leading-7",children:(0,aW.Ay)(d)})]}),s&&(0,eu.jsx)(a3.A,{resources:o,unit:t})]}),l&&(0,eu.jsx)(a6.f,{unit:t,items:l})]},a)})})};var a8=a(11511),a7=a(56409),ie=a(12898),it=a(54231),ia=a(88564),ii=a(58508),ir=a(98325);let is=e=>{let{unit:t}=e,{name:a,description:i,download_url:r,featured_image:s,number:l}=t,{handleDownload:o,downloadOptions:c}=(0,ii.A)(),{manual:h,url:u}=c,{eventTracker:m}=(0,a8.OF)();(0,n.useEffect)(()=>{m("page_view","curriculum#"+t.topic.slug+"#"+t.slug)},[t.topic.slug,t.slug]);let p=[{title:"curriculum",href:"/curriculum"},{title:t.topic.name,href:`/curriculum#${t.topic.slug}`}],g=window.location.href;return(0,eu.jsxs)("div",{id:"section",className:"lg:max-w-4xl xl:max-w-5xl xl-md:max-w-7xl mx-auto w-full",children:[(0,eu.jsxs)("div",{id:"breadcrumb",className:"px-6 pt-10 pb-6",children:[(0,eu.jsx)(t2.g,{items:p,fontSize:"text-[10px] lg:text-sm"}),h&&(0,eu.jsx)("div",{className:"pt-4",children:(0,eu.jsx)(f.EY,{weight:"font-semibold",className:"text-carrot-900",children:(0,eu.jsxs)("em",{children:["Your download should begin automatically. Didn't work?"," ",(0,eu.jsx)(f.qh,{href:u,className:"url",target:"_blank",onClick:()=>{(0,d.$s)("curriculum-unit","manual-download",`item_name: ${t.name}, url: ${u}`)},children:"Try again."})," "]})})})]}),(0,eu.jsxs)("div",{id:"header",className:"flex flex-col lg:flex-row justify-center lg:gap-20",children:[(0,eu.jsx)("div",{id:"left",className:"lg:block hidden w-80",children:s&&(0,eu.jsx)("div",{className:"relative w-[320px]",children:(0,eu.jsx)(e_(),{src:s,loader:eS.R2,height:426,width:320,alt:a})})}),(0,eu.jsx)("div",{id:"left",className:"hidden md:block lg:hidden mx-auto w-[300px]",children:s&&(0,eu.jsx)("div",{className:"relative w-[300px]",children:(0,eu.jsx)(e_(),{src:s,loader:eS.R2,width:300,height:400,style:{objectFit:"cover"},alt:a})})}),(0,eu.jsx)("div",{id:"left",className:"md:hidden lg:mb-10 mx-auto w-[200px]",children:s&&(0,eu.jsx)(e_(),{src:s,loader:eS.R2,height:266,width:200,alt:a})}),(0,eu.jsxs)("div",{id:"right",className:"flex flex-col px-4 pt-6 pb-6 lg:pb-10 lg:px-0 lg:py-4 gap-6 lg:gap-8",children:[(0,eu.jsxs)("div",{className:"flex flex-col gap-6 p-0",children:[(0,eu.jsx)(ir.A,{unit:t}),(0,eu.jsxs)("div",{id:"header-title",className:"flex flex-col gap-2",children:[(0,eu.jsx)(ai.fo,{category:`${l}`,color:"text-jordy-900",lineHeight:"leading-[1.0625rem]"}),(0,eu.jsx)(f.DZ,{level:1,fontSize:"lg:text-5xl text-4xl",lineHeight:"leading-10",weight:"font-extrabold",color:"text-endeavour-500",className:"tracking-tight",children:a})]}),(0,eu.jsx)("div",{id:"divider",className:"border-2 border-carrot-600 w-20"})]}),(0,eu.jsx)("div",{className:"text-gray-800 text-base lg:text-lg lg:-tracking-[0.012rem] leading-6 lg:leading-7",children:(0,eu.jsx)(ia.A,{html:i})}),(0,eu.jsxs)("div",{id:"header-footer",className:"flex flex-col lg:flex-row justify-between items-start lg:items-end w-full p-0 gap-4 mt-auto",children:[(0,eu.jsx)("div",{className:"flex flex-col lg:flex-row items-start w-full lg:w-3/4 gap-2",children:(0,eu.jsxs)("div",{className:"flex flex-col md:flex-row w-full gap-x-2 gap-y-4",children:[r&&(0,eu.jsx)("div",{className:"w-full md:w-auto",children:(0,eu.jsx)(f.$n,{className:"flex grow h-[42px] bg-carrot-500 rounded-[4px] px-4 py-[9px] border box-border border-carrot-500 w-full justify-center",onPress:()=>{o({type:a7.X2.DownloadUnit,resourceType:a7.ES.FullUnit,url:r,log:{category:"curriculum-unit",action:"download-unit",label:`item_name: ${a}`},unit:t})},children:(0,eu.jsx)(f.EY,{as:"p",color:"text-white",weight:"font-bold",fontSize:"text-base",letterSpacing:"-tracking-[0.192px]",className:"whitespace-nowrap leading-4 h-6 flex items-center",children:"Download unit"})})}),(0,eu.jsxs)("div",{className:"flex flex-wrap w-full md:w-auto gap-x-2 gap-y-4",children:[t.related_units.map(e=>e.unit_path&&(0,eu.jsx)("div",{className:"flex-1",children:(0,eu.jsx)(f.qh,{href:`/curriculum/${e.unit_path.startsWith("/")?e.unit_path.substring(1):e.unit_path}`,target:"_self",className:"flex grow h-[42px] bg-white rounded-[4px] px-4 py-[9px] border box-border border-gray-200 w-full justify-center",children:(0,eu.jsx)(f.EY,{as:"p",color:"text-grey-900",weight:"font-bold",fontSize:"text-base",letterSpacing:"-tracking-[0.192px]",className:"whitespace-nowrap leading-4 h-6 flex items-center",children:e.button_text})})},e.unit_path)),(0,eu.jsx)("div",{className:"flex-1 min-w-[160px]",children:(0,eu.jsx)(f.qh,{href:`/curriculum#${t.topic.slug}`,target:"_self",className:"flex grow h-[42px] bg-white rounded-[4px] px-4 py-[9px] border box-border border-gray-200 w-full justify-center",children:(0,eu.jsx)(f.EY,{as:"p",color:"text-grey-900",weight:"font-bold",fontSize:"text-base",letterSpacing:"-tracking-[0.192px]",className:"whitespace-nowrap leading-4 h-6 flex items-center",children:"Explore other units"})})})]})]})}),(0,eu.jsxs)("div",{className:"inline-flex gap-2",children:[(0,eu.jsx)(ie.Tx,{post:(0,it.Bp)(t)}),(0,eu.jsx)(t1.iK,{url:g,title:a,logTitle:`Curriculum - ${a}`,hideLabel:!0})]})]})]})]})]})},il=e=>{let{unit:t,section:a}=e,{name:i,resources:r}=a;return(0,eu.jsxs)("div",{id:"unit-intro",className:"flex flex-col flex-wrap items-start justify-start px-2 lg:px-0 lg:max-w-4xl xl:max-w-5xl xl-md:max-w-7xl mx-auto w-full gap-4 lg:gap-6 py-6 lg:py-14",children:[(0,eu.jsxs)("div",{className:"flex flex-col items-start justify-start w-full py-0 pr-0 pb-3 px-2 lg:p-0 gap-4",children:[(0,eu.jsx)("div",{className:"flex flex-col items-start justify-start w-full",children:(0,eu.jsx)(f.DZ,{color:"text-endeavour-500",weight:"font-bold",fontSize:"text-2xl lg:text-3xl",className:"tracking-tight",children:(0,aW.Ay)(i)})}),(0,eu.jsx)("div",{className:"w-10 border border-1 border-carrot-600"})]}),(0,eu.jsx)(io,{resources:r,unit:t})]})},io=e=>{let{resources:t,unit:a}=e,{handleDownload:i}=(0,ii.A)();return(0,eu.jsx)("div",{className:"mx-auto grid grid-cols-1 lg:grid-cols-3 justify-start w-full gap-x-6 gap-y-4 lg:gap-6",children:t&&t.sort((e,t)=>
53e.order-t.order).map(e=>{let{name:t,url:r,type:n,thumbnail:s}=e,o="https://i.yaqeeninstitute.org/?src=/2023/05/test_resource_thumbnail.png";return(0,eu.jsxs)("div",{className:"flex flex-col items-center justify-center bg-jordy-50 rounded-lg box-border border border-grey-200",children:[(0,eu.jsxs)("div",{className:"w-full",children:[(0,eu.jsx)("div",{className:"hidden lg:block relative h-[410px] w-full",children:(0,eu.jsx)(e_(),{src:s||o,loader:eS.R2,alt:t,className:"rounded-t-lg object-cover",layout:"fill"})}),(0,eu.jsx)("div",{className:"block lg:hidden relative h-[184px] w-full",children:(0,eu.jsx)(e_(),{src:s||o,loader:eS.R2,alt:t,className:"rounded-t-lg object-cover w-full",layout:"fill",sizes:"100vw"})})]}),(0,eu.jsxs)("div",{className:"flex flex-row items-center justify-between h-[52px] lg:h-[60px] px-3 py-2 lg:py-3 lg:px-4 mt-auto w-full box-border border-t border-grey-200",children:[(0,eu.jsx)("div",{className:"flex-1 mr-2",children:(0,eu.jsx)(f.EY,{as:"span",color:"text-grey-900",weight:"font-semibold",fontSize:"text-sm lg:text-lg",lineHeight:"leading-5 lg:leading-7",className:"-tracking-[0.012em] whitespace-normal",children:(0,aW.Ay)(t)})}),n===a7.vt.PDF&&(0,eu.jsx)("div",{id:"resources-download",className:"flex-shrink-0",children:(0,eu.jsx)(f.$n,{"aria-label":"Download all resources",className:"flex justify-center lg:space-x-2 items-center bg-white hover:bg-grey-50 box-border border border-grey-200 rounded-[4px] p-2 w-[36px] h-[36px]",onPress:()=>{i({type:a7.X2.DownloadResource,resourceType:a7.ES.Introduction,url:r,log:{category:"curriculum-unit",action:"download-resource",label:`item_name: ${a.name} - ${t}`},unit:a})},children:(0,eu.jsx)(l.g,{icon:"download",className:"h-4 w-4 p-[2px]"})})}),n===a7.vt.Video&&(0,eu.jsx)("div",{id:"resources-watch",className:"flex-shrink-0",children:(0,eu.jsx)(f.$n,{"aria-label":`Watch ${t}`,className:"flex justify-center lg:space-x-2 items-center bg-white hover:bg-grey-100 rounded border border-grey-200 lg:px-4 lg:py-2 p-3",onPress:()=>{i({type:a7.X2.WatchResource,resourceType:a7.ES.Introduction,url:r,log:{category:"curriculum-unit",action:"watch-resource",label:`item_name: ${a.name} - ${t}`},unit:a})},children:(0,eu.jsx)(l.g,{icon:["far","play-circle"]})})})]})]},t)})})},ic=e=>{let{additionalResourcesData:t}=e;return(0,eu.jsx)(eu.Fragment,{children:(0,eu.jsxs)("div",{id:"additionalresources",className:"mt-20 xl:mb-14 mb-10",children:[(0,eu.jsx)(ay._x,{title:"Additional resources",isBorder:!1,isSpacing:!1}),(0,eu.jsx)("div",{className:"border-b-4 border-carrot-500 w-20 xl:mt-4 mt-6"}),(0,eu.jsxs)("div",{className:"my-6",children:[(0,eu.jsx)("div",{className:"hidden xl:grid xl:grid-cols-5 gap-6",children:t.map(e=>"post"==e.type?(0,eu.jsx)(ai.Zp,{imgSrc:`/static/images/products/icons/${"Video"==e.post_data[0].contentType.name?"video":"paper"}s.svg`,title:e.post_data[0].title,category:e.post_data[0].contentType.name,categoryLink:e.post_data[0].subtopic.slug,postLink:e.post_data[0].slug,authors:e.post_data[0].authors,isBorder:!0,analytic:"home_additional_resources",titleSize:"text-sm",iconSize:{width:"27",height:"27"}},e.post_data[0].title):(0,eu.jsx)(ai.Zp,{imgSrc:"/static/images/products/icons/curriculum.svg",title:e.text,category:e.type,categoryLink:"",postLink:e.link,isBorder:!0,analytic:"home_additional_resources",titleSize:"text-sm",iconSize:{width:"27",height:"27"}},e.text))}),(0,eu.jsx)("div",{className:"xl:hidden grid gap-y-6",children:t.map(e=>(0,eu.jsx)("div",{children:(0,eu.jsxs)("div",{className:"xl:hidden grid grid-cols-5 border rounded p-4",children:[(0,eu.jsx)(f.qh,{href:`${"post"==e.type?e.post_data[0].slug:e.link}`,onClick:()=>{(0,d.$s)("home_additional_resources","click",`item_name: ${"post"==e.type?e.post_data[0].title:e.text}`)},children:(0,eu.jsx)(e_(),{loader:eS.R2,src:"post"==e.type?`/static/images/products/icons/${"Video"==e.post_data[0].contentType.name?"video":"paper"}s.svg`:"/static/images/products/icons/curriculum.svg",height:"40",width:"40",alt:"post"==e.type?e.post_data[0].title:e.text})}),(0,eu.jsxs)("div",{className:"col-span-4 flex-1 flex flex-col justify-center",children:[(0,eu.jsx)(f.qh,{href:"post"==e.type?e.post_data[0].subtopic.slug:e.type,passHref:!0,className:"mb-2",onClick:()=>{(0,d.$s)("home_additional_resources","click",`item_name: ${"post"==e.type?e.post_data[0].title:e.text}`)},children:(0,eu.jsx)(ai.fo,{category:"post"==e.type?e.post_data[0].contentType.name:e.type,size:"text-xss"})}),(0,eu.jsx)(f.qh,{href:`${"post"==e.type?e.post_data[0].slug:e.link}`,onClick:()=>{(0,d.$s)("home_additional_resources","click",`item_name: ${"post"==e.type?e.post_data[0].title:e.text}`)},children:(0,eu.jsx)(f.EY,{as:"p",color:"text-y-black",weight:"font-bold",letterSpacing:"tracking-tight-2",lineHeight:"leading-tight",fontSize:"text-sm",children:"post"==e.type?e.post_data[0].title:e.text})}),(0,eu.jsx)("div",{className:"flex-1 flex flex-col justify-center",children:(0,eu.jsx)(ai.EJ,{authors:"post"==e.type?e.post_data[0].authors:null,fontSize:"text-xs"})})]})]})},"post"==e.type?e.post_data[0].title:e.text))})]})]})})};var id=a(94128);let ih=e=>{let{eBookData:t}=e;return(0,eu.jsxs)(eu.Fragment,{children:[(0,eu.jsx)("div",{id:"ebooks",className:"mt-20",children:(0,eu.jsx)("div",{className:"flex-grow",children:(0,eu.jsxs)("div",{className:"flex justify-between",children:[(0,eu.jsxs)("div",{children:[(0,eu.jsx)(f.qh,{href:"/read/books",onClick:()=>{(0,d.$s)("home_ebooks","click","item_name: All books - Heading")},prefetch:!1,children:(0,eu.jsx)(ay._x,{title:"eBooks",isBorder:!1,isSpacing:!1})}),(0,eu.jsx)("div",{className:"border-b-4 border-carrot-500 w-20 mt-6"})]}),(0,eu.jsx)(f.qh,{href:"/read/books",onClick:()=>{(0,d.$s)("home_ebooks","click","item_name: All books")},prefetch:!1,children:(0,eu.jsx)(l.g,{icon:"chevron-right",size:"lg",className:"text-carrot-500"})})]})})}),(0,eu.jsx)("div",{className:"hidden xl:block",children:(0,eu.jsx)("div",{className:"grid xl
53:grid-cols-3 gap-x-10 xl:my-16 my-6",children:t.map(e=>(0,eu.jsxs)("div",{className:"text-center xl:mx-10",children:[(0,eu.jsx)(id.MY,{imgSrc:e.image,title:e.text,alignTitle:"text-center",postLink:`${e.link}`,titleSize:"xl:text-2xl text-lg",aspectRatio:"aspect-w-2 aspect-h-3",isHighlight:!0,analytic:"home_ebooks"},e.text),(0,eu.jsx)(f.qh,{href:`${e.link}`,className:"mt-7 inline-block py-2 px-4 bg-carrot-500 rounded",onClick:()=>{(0,d.$s)("home_ebooks","click",`item_name: ${e.text}`)},children:(0,eu.jsx)(f.EY,{as:"p",weight:"font-bold",fontSize:"text-base",color:"text-white",letterSpacing:"tracking-tight-1",children:"Download"})})]},e.text))})}),(0,eu.jsx)("div",{className:"xl:hidden grid gap-y-10 mb-20 mt-6",children:t.map(e=>(0,eu.jsx)("div",{children:(0,eu.jsxs)("div",{className:"xl:hidden grid grid-cols-3 gap-x-5",children:[(0,eu.jsx)(f.qh,{href:`${e.link}`,children:(0,eu.jsx)(e_(),{loader:eS.R2,src:e.image,alt:e.text,width:120,height:164})}),(0,eu.jsxs)("div",{className:"col-span-2 flex-1 flex flex-col justify-center",children:[(0,eu.jsx)(f.qh,{href:`${e.link}`,onClick:()=>{(0,d.$s)("home_ebooks","click",`item_name: ${e.text}`)},children:(0,eu.jsx)(f.EY,{as:"p",color:"text-y-black",weight:"font-bold",letterSpacing:"tracking-tight-2",lineHeight:"leading-tight",fontSize:"text-sm",children:e.text})}),(0,eu.jsx)("div",{className:"read-more mt-4",children:(0,eu.jsx)(f.qh,{href:`${e.link}`,className:"inline-block py-2 px-4 bg-carrot-500 rounded",onClick:()=>{(0,d.$s)("home_ebooks","click",`item_name: ${e.text}`)},children:(0,eu.jsx)(f.EY,{as:"p",weight:"font-bold",fontSize:"text-base",color:"text-white",letterSpacing:"tracking-tight-1",children:"Download"})})})]})]})},e.text))})]})};var iu=a(48879),im=a(91959),ip=a(8218);let ig=function(e){return e.Personalization="personalization",e.HomePageDailyContent="home-page-daily-content",e}({}),ix={[ig.Personalization]:!1,[ig.HomePageDailyContent]:!1},iy=()=>{let{firebaseAuth:e}=(0,tz.m9)(),{initAuth:t}=e;return(0,eu.jsxs)("div",{className:"flex flex-col md:flex-row space-y-10 items-center justify-start bg-endeavour-50 py-10 px-6 md:px-20 w-full",children:[(0,eu.jsxs)("div",{className:"flex flex-col space-y-6 items-start justify-center w-full md:w-4/6",children:[(0,eu.jsx)("p",{className:"text-4xl font-extrabold leading-10 tracking-tight text-endeavour-500",children:"Sign up as a Yaqeen Member"}),(0,eu.jsx)("div",{className:"flex flex-col md:flex-row md:space-x-6 items-start justify-start w-full",children:(0,eu.jsxs)("div",{className:"flex flex-col space-y-1 md:space-y-2 items-start justify-start flex-1 mb-1",children:[ix[ig.Personalization]&&(0,eu.jsxs)("div",{className:"flex space-x-3 items-center justify-start w-full",children:[(0,eu.jsx)("div",{className:"w-6 h-6",children:(0,eu.jsx)(l.g,{icon:["far","check-circle"],className:"text-jordy-900",size:"sm"})}),(0,eu.jsx)("p",{className:"text-lg font-semibold leading-7 text-black text-opacity-75 tracking-tight-1 break-normal",children:"Personalized home page"})]}),(0,eu.jsxs)("div",{className:"flex space-x-3 items-center justify-start",children:[(0,eu.jsx)("div",{className:"w-6 h-6",children:(0,eu.jsx)(l.g,{icon:["far","check-circle"],className:"text-jordy-900",size:"sm"})}),(0,eu.jsx)("p",{className:"text-lg font-semibold leading-7 text-black text-opacity-75 tracking-tight-1 break-normal",children:"Access to Curriculum⢠and Conversationsâ¢"})]}),(0,eu.jsxs)("div",{className:"flex space-x-3 items-center justify-start w-full",children:[(0,eu.jsx)("div",{className:"w-6 h-6",children:(0,eu.jsx)(l.g,{icon:["far","check-circle"],className:"text-jordy-900",size:"sm"})}),(0,eu.jsx)("p",{className:"text-lg font-semibold leading-7 text-black text-opacity-75 tracking-tight-1 break-normal",children:"Keep track of your donations"})]}),(0,eu.jsxs)("div",{className:"flex space-x-3 items-center justify-start w-full",children:[(0,eu.jsx)("div",{className:"w-6 h-6",children:(0,eu.jsx)(l.g,{icon:["far","check-circle"],className:"text-jordy-900",size:"sm"})}),(0,eu.jsx)("p",{className:"text-lg font-semibold leading-7 text-black text-opacity-75 tracking-tight-1 break-normal",children:"Download papers"})]})]})})]}),(0,eu.jsx)("div",{className:"w-full md:w-2/6",children:(0,eu.jsx)(f.$n,{className:"px-5 py-3 rounded bg-carrot-600",onPress:()=>{(0,d.$s)("home_page","click","become_member"),t()},children:(0,eu.jsx)(f.EY,{fontSize:"text-xl",lineHeight:"leading-6",letterSpacing:"tracking-tight-1",weight:"font-bold",className:"text-center text-white",children:"Become a Member"})})})]})},ib=()=>{let[e]=(0,ip.As)(im.j.auth()),t=window.location.origin+window.location.pathname;return(0,eu.jsxs)(eu.Fragment,{children:[(0,eu.jsx)("div",{className:"bg-zircon w-full",children:(0,eu.jsxs)(an.pO,{className:"xl:pt-14 pt-10",children:[(0,eu.jsx)("div",{className:"max-w-3xl mx-auto xl:mb-12 mb-10",children:(0,eu.jsxs)(f.DZ,{level:1,weight:"font-extrabold",color:"text-carrot-500",fontSize:"text-4xl",lineHeight:"leading-9",letterSpacing:"tracking-tight-1",className:"text-center px-10",children:["Want clarity on Islam? ",(0,eu.jsx)("span",{className:"text-endeavour-500",children:"Discover Yaqeen."})]})}),(0,eu.jsxs)("div",{className:"text-center",children:[(0,eu.jsx)("div",{className:"hidden xl:block",children:(0,eu.jsxs)("div",{className:"flex xl:flex-row flex-col justify-center space-x-3 mb-10",children:[iu.l$.map(e=>(0,eu.jsx)("div",{className:"text-center",children:(0,eu.jsx)(f.qh,{href:e.link,className:"border border-gray-200 inline-block py-3 px-5 bg-white rounded ",onClick:()=>{(0,d.$s)("home_button","click",`item_name: ${e.title}`)},children:(0,eu.jsx)(f.EY,{as:"p",weight:"font-bold",fontSize:"xl:text-xl text-lg",color:"text-gray-900",letterSpacing:"tracking-tight-1",children:e.title})})}
53,e.title)),(0,eu.jsx)(f.qh,{href:`/donate?int_source=${t}&int_campaign=homepage2022&int_content=home-top-button`,target:"_blank",className:"border border-gray-200 block py-3 px-5 bg-carrot-500 rounded mb-3",onClick:()=>{(0,d.$s)("home_button","click","item_name: Donate")},children:(0,eu.jsx)(f.EY,{as:"p",weight:"font-bold",fontSize:"xl:text-xl text-lg",color:"text-white",letterSpacing:"tracking-tight-1",children:"Donate"})})]})}),(0,eu.jsx)("div",{className:"xl:hidden",children:(0,eu.jsxs)("div",{className:"grid grid-cols-2 gap-3 mb-10",children:[iu.l$.slice(0,6).map(e=>(0,eu.jsx)("div",{className:"text-center",children:(0,eu.jsx)(f.qh,{href:e.link,className:"border border-gray-200 block py-3 px-5 bg-white rounded",onClick:()=>{(0,d.$s)("home_button","click",`item_name: ${e.title}`)},children:(0,eu.jsx)(f.EY,{as:"p",weight:"font-bold",fontSize:"xl:text-xl text-lg",color:"text-gray-900",letterSpacing:"tracking-tight-1",children:e.title})})},e.title)),(0,eu.jsx)(f.qh,{href:`/donate?int_source=${t}&int_campaign=homepage2022&int_content=home-top-button`,target:"_blank",className:"border border-gray-200 block py-3 px-5 bg-carrot-500 rounded",onClick:()=>{(0,d.$s)("home_button","click","item_name: Donate")},children:(0,eu.jsx)(f.EY,{as:"p",weight:"font-bold",fontSize:"xl:text-xl text-lg",color:"text-white",letterSpacing:"tracking-tight-1",children:"Donate"})})]})})]}),(0,eu.jsxs)("div",{className:"flex xl:flex-row flex-col justify-center xl:space-x-5 xl:mb-10 mb-10",children:[(0,eu.jsx)("div",{className:"flex justify-center space-x-5",children:(0,eu.jsx)(f.EY,{as:"p",weight:"font-bold",color:"text-endeavour-500",fontSize:"text-lg",lineHeight:"leading-7",letterSpacing:"tracking-tight-1",className:"mt-2 text-center",children:"Subscribe to our newsletter"})}),(0,eu.jsx)("div",{className:"mx-auto border-b-4 border-carrot-500 w-10 xl:mt-5 mt-5 xl:mb-20 mb-5"}),(0,eu.jsx)(tV.S,{eventName:"home_newsletter",source:tZ.xY.HOME_PAGE_2022})]})]})}),!e&&(0,eu.jsx)("div",{className:"flex flex-col w-full md:pt-10 md:px-10 mx-auto",children:(0,eu.jsx)(iy,{})})]})},iv=e=>{let{infographicsData:t}=e;return(0,eu.jsxs)(eu.Fragment,{children:[(0,eu.jsx)("div",{id:"infographics",className:"xl:mt-20 mt-16",children:(0,eu.jsx)("div",{className:"flex-grow",children:(0,eu.jsxs)("div",{className:"flex justify-between",children:[(0,eu.jsxs)("div",{children:[(0,eu.jsx)(f.qh,{href:"/infographics",onClick:()=>{(0,d.$s)("home_infographics","click","item_name: All Infographics - Heading")},prefetch:!1,children:(0,eu.jsx)(ay._x,{title:"Infographics",isBorder:!1,isSpacing:!1})}),(0,eu.jsx)("div",{className:"border-b-4 border-carrot-500 w-20 mt-6"})]}),(0,eu.jsx)(f.qh,{href:"/infographics",onClick:()=>{(0,d.$s)("home_infographics","click","item_name: All Infographics")},prefetch:!1,children:(0,eu.jsx)(l.g,{icon:"chevron-right",size:"lg",className:"text-carrot-500"})})]})})}),(0,eu.jsxs)("div",{className:"my-6",children:[(0,eu.jsx)("div",{className:"hidden xl:grid xl:grid-cols-4 gap-6",children:t.map(e=>{var t;return(0,eu.jsx)(ai.Zp,{imgSrc:(null==e||null==(t=e.media)||null==(t=t.image)?void 0:t.horizontal)||a2.d,title:e.title,postLink:e.slug,infographic:!0,category:e.subtopic.name,authors:e.authors,categoryLink:e.subtopic.slug,analytic:"home_infographics"},e.title)})}),(0,eu.jsx)("div",{className:"xl:hidden grid gap-y-6",children:t.map(e=>(0,eu.jsx)("div",{children:(0,eu.jsxs)("div",{className:"grid grid-cols-3 gap-x-4",children:[(0,eu.jsx)(f.qh,{href:e.slug,onClick:()=>{(0,d.$s)("home_infographics","click",`item_name: ${e.title}`)},children:(0,eu.jsx)(e_(),{loader:eS.R2,src:e.media.image.horizontal,alt:e.title,width:96,height:170})}),(0,eu.jsxs)("div",{className:"flex-1 flex flex-col justify-center col-span-2",children:[(0,eu.jsx)(f.qh,{href:e.subtopic.slug,passHref:!0,className:"mb-1",onClick:()=>{(0,d.$s)("home_infographics","click",`item_name: ${e.title}`)},children:(0,eu.jsx)(ai.fo,{category:e.subtopic.name,size:"text-xss"})}),(0,eu.jsx)(f.qh,{href:e.slug,onClick:()=>{(0,d.$s)("home_infographics","click",`item_name: ${e.title}`)},children:(0,eu.jsx)(f.EY,{as:"p",color:"text-y-black",weight:"font-bold",letterSpacing:"tracking-tight-2",lineHeight:"leading-tight",fontSize:"text-sm",className:"mb-1",children:e.title})}),(0,eu.jsx)(ai.EJ,{authors:e.authors,fontSize:"text-xs",isSpacing:!1})]})]})}
53,e.title))})]})]})};a(87002);let iw=e=>{let{papersData:t}=e;return(0,eu.jsxs)(eu.Fragment,{children:[(0,eu.jsx)("div",{id:"papers",className:"xl:mt-20 mt-10",children:(0,eu.jsx)("div",{className:"flex-grow",children:(0,eu.jsxs)("div",{className:"flex justify-between",children:[(0,eu.jsxs)("div",{children:[(0,eu.jsx)(f.qh,{href:"/read",onClick:()=>{(0,d.$s)("home_papers","click","item_name: All Papers - Heading")},prefetch:!1,children:(0,eu.jsx)(ay._x,{title:"Papers",isBorder:!1,isSpacing:!1})}),(0,eu.jsx)("div",{className:"border-b-4 border-carrot-500 w-20 mt-6"})]}),(0,eu.jsx)(f.qh,{href:"/read",onClick:()=>{(0,d.$s)("home_papers","click","item_name: All Papers")},prefetch:!1,children:(0,eu.jsx)(l.g,{icon:"chevron-right",size:"lg",className:"text-carrot-500"})})]})})}),(0,eu.jsxs)("div",{className:"my-6",children:[(0,eu.jsx)("div",{className:"hidden xl:grid xl:grid-cols-4 gap-x-6 gap-y-10",children:t.map(e=>{var t;return(0,eu.jsx)(ai.Zp,{imgSrc:(null==e||null==(t=e.media)||null==(t=t.image)?void 0:t.vertical)||a2.d,title:e.title,postLink:e.slug,category:e.subtopic.name,authors:e.authors,categoryLink:e.subtopic.slug,analytic:"home_papers"},e.title)})}),(0,eu.jsx)("div",{className:"xl:hidden grid gap-y-6",children:t.map(e=>(0,eu.jsx)("div",{children:(0,eu.jsxs)("div",{className:"grid grid-cols-3 gap-x-4",children:[(0,eu.jsx)(f.qh,{href:e.slug,onClick:()=>{(0,d.$s)("home_papers","click",`item_name: ${e.title}`)},children:(0,eu.jsx)("div",{className:"aspect-w-16 aspect-h-9",children:(0,eu.jsx)(e_(),{loader:eS.R2,src:e.media.image.vertical,alt:e.title,layout:"fill",objectFit:"cover"})})}),(0,eu.jsxs)("div",{className:"flex-1 flex flex-col justify-center col-span-2",children:[(0,eu.jsx)(f.qh,{href:e.subtopic.slug,passHref:!0,className:"mb-1",onClick:()=>{(0,d.$s)("home_papers","click",`item_name: ${e.title}`)},children:(0,eu.jsx)(ai.fo,{category:e.subtopic.name,size:"text-xss"})}),(0,eu.jsx)(f.qh,{href:e.slug,onClick:()=>{(0,d.$s)("home_papers","click",`item_name: ${e.title}`)},children:(0,eu.jsx)(f.EY,{as:"p",color:"text-y-black",weight:"font-bold",letterSpacing:"tracking-tight-2",lineHeight:"leading-tight",fontSize:"text-sm",className:"mb-1",children:e.title})}),(0,eu.jsx)(ai.EJ,{authors:e.authors,fontSize:"text-xs",isSpacing:!1})]})]})},e.title))})]})]})},ij=function(e){return e.Reading="reading",e.Watching="watching",e}({}),ik=(0,n.createContext)(void 0),iN=()=>(0,n.useContext)(ik),i_=()=>{let{0:e,1:t}=(0,n.useState)(null),{onPersonalizedMediumNext:a}=iN(),i=[{name:"Reading",value:ij.Reading,thumbnail:"https://cdn.yaqeeninstitute.org/wp-content/uploads/2022/11/read.png"},{name:"Watching",value:ij.Watching,thumbnail:"https://cdn.yaqeeninstitute.org/wp-content/uploads/2022/11/watch.png"}],r=null===e;return(0,eu.jsx)(i$,{children:(0,eu.jsxs)("div",{className:"container mx-auto xl:px-0 px-4",children:[(0,eu.jsx)("div",{className:"xl:mb-14 mb-10",children:(0,eu.jsx)(f.DZ,{level:1,fontSize:"text-4xl xl:text-6xl",lineHeight:"leading-none",letterSpacing:"tracking-tight",align:"text-center",color:"text-white",weight:"font-extrabold",children:"What do you prefer?"})}),(0,eu.jsx)("div",{className:"grid grid-cols-2 xl:gap-10 gap-4 xl:mb-14 mb-10",children:i.map((a,i)=>(0,eu.jsxs)(f.$n,{className:`rounded-lg border px-5 pt-5 relative overflow-hidden ${e===a.value?"bg-black/25 border-carrot-600":"border-grey-200 hover:bg-black/25"}`,onPress:()=>{e===a.value?t(null):t(a.value)},children:[e===a.value?(0,eu.jsxs)("div",{id:"selected-border",children:[(0,eu.jsx)("div",{className:"absolute h-1 bg-carrot-600 top-0 inset-x-0"}),(0,eu.jsx)("div",{className:"absolute h-1 bg-carrot-600 bottom-0 inset-x-0"}),(0,eu.jsx)("div",{className:"absolute w-1 bg-carrot-600 left-0 inset-y-0"}),(0,eu.jsx)("div",{className:"absolute w-1 bg-carrot-600 right-0 inset-y-0"})]}):null,(0,eu.jsx)("div",{className:"mb-6 leading-none xl:aspect-w-1 xl:aspect-h-1 xl:w-[240px] xl:h-[240px]",children:(0,eu.jsx)(e_(),{loader:eS.R2,src:a.thumbnail,alt:a.name,width:"240",height:"240",className:"rounded-lg"})}),(0,eu.jsx)("div",{className:"mb-6",children:(0,eu.jsx)(f.EY,{as:"p",fontSize:"text-xl xl:text-2xl",lineHeight:"leading-8",letterSpacing:"tracking-tight-1",className:"text-center",weight:"font-semibold",color:e===a.value?"text-white":"text-white/75",children:a.name})})]},`personalized-medium-${i}`))}),(0,eu.jsx)("div",{className:"flex justify-center",children:(0,eu.jsx)(f.$n,{className:`px-5 py-3 rounded ${r?"bg-gray-100":"bg-carrot-600"}`,isDisabled:r,onPress:()=>{(0,d.$s)("home_page","click","item_name: next_personalized_medium"),a(e)},children:(0,eu.jsx)(f.EY,{fontSize:"text-xl",lineHeight:"leading-6",letterSpacing:"tracking-tight-1",weight:"font-bold",className:`text-center ${r?"text-black text-opacity-25":"text-white"}`,children:"Next"})})})]})})},iS=e=>{let{topics:t}=e,{0:a,1:i}
53=(0,n.useState)([]),r=0===a.length,{onPersonalizedTopicsNext:s}=iN();return(0,eu.jsxs)(i$,{children:[(0,eu.jsxs)("div",{className:"max-w-xl mx-auto xl:mb-24 mb-16",children:[(0,eu.jsx)("div",{className:"mb-5",children:(0,eu.jsx)(f.DZ,{level:1,fontSize:"text-4xl md:text-6xl",lineHeight:"leading-none",letterSpacing:"tracking-tight",align:"text-center",color:"text-white",weight:"font-extrabold",children:"What interests you?"})}),(0,eu.jsx)(f.EY,{as:"p",fontSize:"text-xl",weight:"font-semibold",letterSpacing:"tracking-tight-1",color:"text-white/50",className:"text-center",children:"This helps us create a personalized recommendation for you!"})]}),(0,eu.jsxs)("div",{className:"max-w-4xl mx-auto xl:px-0 px-7",children:[(0,eu.jsx)("div",{className:"flex flex-wrap gap-y-3 md:gap-y-6 gap-x-2 xl:gap-x-5 xl:justify-center items-center xl:mb-24 mb-16",children:t.map((e,t)=>(0,eu.jsx)(f.$n,{className:`inline-flex border xl:py-[0.938rem] xl:px-5 py-2 px-4 rounded ${a.includes(e.id)?"bg-jordy-700 border-jordy-700":"border-grey-200 hover:bg-jordy-500 hover:border-jordy-500"}`,onPress:()=>{a.includes(e.id)?i(a.filter(t=>t!==e.id)):i([...a,e.id])},children:(0,eu.jsx)(f.EY,{as:"p",fontSize:"text-xl xl:text-2xl",weight:"font-bold",color:a.includes(e.id)?"text-white":"text-grey-40",lineHeight:"tracking-tight-1",className:"text-center",children:e.name})},`topic-${t}`))}),(0,eu.jsx)("div",{className:"flex justify-center",children:(0,eu.jsx)(f.$n,{className:`px-5 py-3 rounded ${r?"bg-gray-100":"bg-carrot-600"}`,isDisabled:r,onPress:()=>{(0,d.$s)("home_page","click","personalized_become_member"),s(a)},children:(0,eu.jsx)(f.EY,{fontSize:"text-xl",lineHeight:"leading-6",letterSpacing:"tracking-tight-1",weight:"font-bold",className:`text-center ${r?"text-black text-opacity-25":"text-white"}`,children:"Next"})})})]})]})},iA=e=>{let{productBanner:t}=e;return t&&Array.isArray(t)&&0!==t.length?(0,eu.jsx)("div",{className:"flex justify-center",children:(0,eu.jsx)(f.qh,{href:t[0].link,onClick:()=>{(0,d.$s)("home_promo_banner","click",`item_name: ${t[0].text}`)},children:(0,eu.jsx)(e_(),{src:t[0].image,loader:eS.R2,alt:t[0].text,height:540,width:960})})}):(0,eu.jsx)(eu.Fragment,{})};var iC=a(36708),iP=a(28823);let iT=e=>{let{title:t,url:a,children:i}=e;return(0,eu.jsx)(eu.Fragment,{children:(0,eu.jsx)("button",{onClick:()=>{navigator.share({title:t,url:a}).then(()=>void 0).catch(e=>{C.A.error(e,{message:"Error sharing on mobile",url:a,title:t})})},children:i})})},iO=()=>{var e;let t=(0,eK.ox)()&&(null==(e=navigator)?void 0:e.share),a=e=>{(0,d.$s)("home","share",`Share via ${e}`)};return(0,eu.jsxs)("div",{className:"flex xl:flex-row flex-col justify-center space-x-3 xl:py-20 py-10 mb-10",children:[(0,eu.jsxs)("div",{className:"flex justify-center space-x-3",children:[(0,eu.jsx)(f.EY,{as:"p",weight:"font-extrabold",color:"text-grey-900",fontSize:"xl:text-4xl text-3xl",lineHeight:"leading-7",letterSpacing:"tracking-tight-1",className:"mt-2 mr-2 text-center",children:"Share this"}),(0,eu.jsx)("div",{className:"border-b-4 border-carrot-500 w-20 mb-4"})]}),(0,eu.jsx)("div",{className:"flex justify-center space-x-3 xl:mt-0 mt-10",children:(0,eu.jsxs)("div",{className:`grid gap-6 ${t?"grid-cols-6":"grid-cols-5"}`,children:[(0,eu.jsx)(iP.uI,{url:`${(0,t_.$_)()}`,title:"Daily Ramadan Content with Yaqeen Institute",onClick:()=>a("Facebook"),children:(0,eu.jsx)("div",{className:"px-1",children:(0,eu.jsx)(l.g,{icon:["fab","facebook-f"],className:"text-fb xl:text-4xl text-xl",fixedWidth:!0})})}),(0,eu.jsx)(iP.r6,{url:`${(0,t_.$_)()}`,title:"Daily Ramadan Content with Yaqeen Institute",onClick:()=>a("Twitter"),children:(0,eu.jsx)("div",{className:"px-1",children:(0,eu.jsx)(l.g,{icon:["fab","x-twitter"],className:"text-twitter xl:text-4xl text-xl",fixedWidth:!0})})}),(0,eu.jsx)(iP.Kz,{url:`${(0,t_.$_)()}`,title:"Daily Ramadan Content with Yaqeen Institute",separator:" ",onClick:()=>a("WhatsApp"),children:(0,eu.jsx)("div",{className:"px-1",children:(0,eu.jsx)(l.g,{icon:["fab","whatsapp"],className:"text-whatsapp xl:text-4xl text-xl",fixedWidth:!0})})}),t&&(0,eu.jsx)(iT,{title:"Daily Ramadan Content with Yaqeen Institute",url:(0,t_.$_)(),children:(0,eu.jsx)("div",{className:"px-1",children:(0,eu.jsx)(l.g,{icon:iC.t5Z,className:"text-grey-900 xl:text-4xl text-xl",fixedWidth:!0})})}),(0,eu.jsx)(iP.Ot,{url:`${(0,t_.$_)()}`,title:"Daily Ramadan Content with Yaqeen Institute",separator:" ",onClick:()=>a("Email"),children:(0,eu.jsx)("div",{className:"px-1",children:(0,eu.jsx)(l.g,{icon:"envelope",className:"text-grey-900 xl:text-4xl text-xl",fixedWidth:!0})})}),(0,eu.jsx)(f.$n,{onPress:()=>{(0,d.$s)("home","click","copy_link"),(0,tk.lW)((0,t_.$_)())},"aria-label":"copy link",children:(0,eu.jsx)("div",{className:"px-1",children:(0,eu.jsx)(l.g,{icon:["far","link"],className:"text-grey-900 xl:text-4xl text-xl",fixedWidth:!0})})})]})})]})},iE=e=>{var t;
53let{videoSeriesData:a}=e;return(0,eu.jsx)(eu.Fragment,{children:a&&(0,eu.jsxs)(eu.Fragment,{children:[" ",(0,eu.jsx)("div",{id:"videoseries",className:"xl:mt-20 mt-10 mb-6",children:(0,eu.jsx)("div",{className:"flex-grow",children:(0,eu.jsxs)("div",{className:"flex justify-between",children:[(0,eu.jsxs)("div",{children:[(0,eu.jsx)(f.qh,{href:"/watch",onClick:()=>{(0,d.$s)("home_video_series","click","item_name: All Video Series - Heading")},prefetch:!1,children:(0,eu.jsx)(ay._x,{title:"Videos",isBorder:!1,isSpacing:!1})}),(0,eu.jsx)("div",{className:"border-b-4 border-carrot-500 w-20 mt-6"})]}),(0,eu.jsx)(f.qh,{href:"/watch",onClick:()=>{(0,d.$s)("home_video_series","click","item_name: All Video Series")},prefetch:!1,children:(0,eu.jsx)(l.g,{icon:"chevron-right",size:"lg",className:"text-carrot-500"})})]})})}),(0,eu.jsx)("div",{className:"grid xl:grid-cols-4 gap-x-10 gap-y-10 mb-20",children:null==a||null==(t=a.slice(0,8))?void 0:t.map(e=>{var t;return(0,eu.jsx)("div",{children:(0,eu.jsx)(ai.Zp,{imgSrc:(null==e||null==(t=e.media)||null==(t=t.image)?void 0:t.vertical)||a2.d,category:e.subtopic.name,categoryLink:e.subtopic.slug,title:e.title,authors:e.authors,postLink:e.slug,titleSize:"text-base",isHighlight:!0,analytic:"home_video_series"})},e.title)})})]})})};var iI=a(57002);function iD(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,i)}return a}function iq(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?iD(Object(a),!0).forEach(function(t){(0,i.A)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):iD(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}let iM=e=>{let{personalizationOnEdge:t}=e,{firebaseAuth:a}=(0,tz.m9)(),{userInfo:i}=a,{0:r,1:s}=(0,n.useState)(iI.Cj.Loading),{0:l,1:o}=(0,n.useState)(!1),{0:c,1:h}=(0,n.useState)(t.personalizedTopics),{0:u,1:m}=(0,n.useState)(t.personalizedMedium),p=t.personalizedPapers,g=t.personalizedVideos,{0:f,1:x}=(0,n.useState)(t.preferencesLoaded),y="Users",b=async e=>{let{uid:t}=i.user;o(!0);try{let a=(0,aQ.l$)(y,t),i=(await (0,aQ.W4)(a)).data(),r=iq(iq({},i),e);return await (0,aQ._9)(a,r,{merge:!0}),o(!1),!0}catch(e){C.A.error("Error updating user preferences",e),aj.toast.error("Sorry, unable to update your preferences")}return o(!1),!1},v=async e=>{(0,d.$s)("home_personalized","topics_next"),await b({topics:{items:e}})&&h(e)},w=async e=>{(0,d.$s)("home_personalized","content_type_next","item_name: "+e),await b({preferences:{contentType:e}})&&m(e)};return(0,n.useEffect)(()=>{async function e(){var e,t;let{uid:a}=i.user,r=(await (0,aQ.s7)(y,a)).data();null!=r&&null!=(e=r.topics)&&null!=(e=e.items)&&e.length&&h(r.topics.items),null!=r&&null!=(t=r.preferences)&&t.contentType&&m(r.preferences.contentType),x(!0)}t8.j_.VerifiedAuth===i.authState&&!1===f&&ix[ig.Personalization]&&(o(!0),e()),t8.j_.SignedOut===i.authState&&(s(iI.Cj.Guest),h([]),m(null),x(!1))},[i.authState,f]),(0,n.useEffect)(()=>{f&&(c.length&&u?s(iI.Cj.MemberWithPreferences):(c.length&&!u?s(iI.Cj.MemberWithTopicPreferences):s(iI.Cj.MemberWithoutPreferences),o(!1)))},[f,u,c]),(0,eu.jsxs)(ik.Provider,{value:{homepageState:r,personalizedTopics:c,personalizedMedium:u,personalizedPapers:p,personalizedVideos:g,setShowSpinner:o,onPersonalizedTopicsNext:v,onPersonalizedMediumNext:w},children:[e.children,l&&(0,eu.jsx)(tz.p8,{})]})},i$=e=>{let{children:t}=e;return(0,eu.jsxs)("div",{id:"personalized-topic-options",className:"flex flex-col min-h-screen items-center justify-start bg-endeavour-500 w-full",children:[(0,eu.jsx)("div",{className:"flex flex-col items-center md:items-start justify-center px-6 py-2 w-full h-16",children:(0,eu.jsx)("div",{className:"flex items-center justify-center w-10 h-5/6 px-0.5 py-0.5",children:(0,eu.jsx)(f.qh,{href:"/",alt:"Logo","aria-label":"logo",children:(0,eu.jsx)(aL.gu,{})})})}),(0,eu.jsx)("div",{className:"flex-1 flex flex-col justify-center",children:t})]})},iH=e=>{let{count:t=1}=e;return(0,eu.jsxs)(eu.Fragment,{children:[(0,eu.jsx)("div",{className:"xl:px-6 px-4 mb-10",children:(0,eu.jsxs)("div",{className:"flex space-x-12 items-center",children:[(0,eu.jsx)("div",{id:"loading-image",className:"h-[22rem] bg-gray-200 animate-pulse lg:w-1/2"}),(0,eu.jsxs)("div",{className:"lg:w-1/2",children:[(0,eu.jsx)("div",{id:"loading-subtopic",className:"w-48 h-5 bg-gray-200 animate-pulse mb-3"}),(0,eu.jsx)("div",{id:"loading-title",className:"h-26 bg-gray-200 animate-pulse mb-8"}),(0,eu.jsx)("div",{id:"loading-author",className:"w-32 h-4 bg-gray-200 animate-pulse"})]})]})}),(0,eu.jsx)("div",{className:"flex overflow-x-auto space-x-6 snap-x xl:px-6 px-4 w-full pb-10",children:Array.from({length:t},(e,t)=>(0,eu.jsxs)("div",{className:"xl:w-1/6 w-1/2 shrink-0",children:[(0,eu.jsx)("div",{id:"loading-image",className:"h-24 bg-gray-200 animate-pulse mb-4"}),(0,eu.jsxs)("div",{className:"space-y-3",children:[(0,eu.jsx)("div",{id:"loading-subtopic",className:"w-32 h-4 bg-gray-200 animate-pulse"}),(0,eu.jsx)("div",{id:"loading-title",className:"w-44 h-8 bg-gray-200 animate-pulse"}),(0,eu.jsx)("div",{id:"loading-author",className:"w-32 h-4 bg-gray-200 animate-pulse"})]})]},t))})]})};var iR=a(17385);let iz=function(e){for(var t=arguments.length,a=Array(t>1?t-1:0),i=1;i<t;i++)a[i-1]=arguments[i];return fetch(e,...a).then(e=>e.json())},iF=e=>{let{title:t,variant:a,postsData:i}=e,{personalizedTopics:r,setShowSpinner:n}=iN(),{country:s}=(0,tC.A)(),{data:l,isValidating:o}=(0,iR.Ay)(!i.length&&`/api/v1/personalized/${a}?topicIds=${r.join(",")}&page=1`,iz);n(o);let c=i.length>0?i:l;return(0,eu.jsxs)("div",{className:"bg-white border xl:rounded-lg border-grey-200",children:[(0,eu.jsx)("div",{id:"card-header",className:"px-6 py-5",children:(0,eu.jsx)(f.EY,{as:"p",fontSize:"text-2xl",weight:"font-semibold",lineHeight:"leading-8",color:"text-gray-700",children:t})}),(0,eu.jsx)("div",{className:"border-b border-grey-200 w-full mb-4"}),(0,eu.jsxs)("div",{children:[!c&&(0,eu.jsx)(iH,{count:7}),c&&(e=>{let t=e.flat(),i=t.shift();if(!i)return null;let r=(0,tF.mH)(i),n=(0,tF.lr)(i),l=a.charAt(0).toUpperCase()+a.slice(1),o=i.type.charAt(0).toUpperCase()+i.type.slice(1);return(0,eu.jsxs)(eu.Fragment,{children:[(0,eu.jsx)("div",{className:"xl:px-6 px-4 mb-10",children:(0,eu.jsx)(ai.xs,{title:i.title,cardType:o,section:l,category:null==r?void 0:r.name,postLink:n,categoryLink:(0,tF.OZ)(i),authors:(0,tY.S)(i.authors,s),desktopImgProps:{src:i.images.desktopVertical||i.featured_image,layout:"fill",objectFit:"cover",alt:i.title},mobileImgProps:{src:i.images.desktopVertical||i.featured_image,layout:"fill",objectFit:"cover",alt:i.title},desktopAspectRatio:"aspect-w-16 aspect-h-9",mobileAspectRatio:"aspect-w-16 aspect-h-9",analytic:`personalized_${a}`,titleSize:"text-xl xl:text-3xl",preloadImage:!0})}),(0,eu.jsxs)("div",{className:"flex overflow-x-auto space-x-3 snap-x w-full pb-10",children:[(0,eu.jsx)("div",{className:"xl:pl-3 pl-1 shrink-0"}),t.map(e=>{var t;return(0,eu.jsx)("div",{className:"xl:w-1/6 w-1/2 shrink-0",children:(0,eu.jsx)(ai.Zp,{prefetch:!1,imgSrc:e.thumbnail,title:e.title,category:null==(t=(0,tF.mH)(e))?void 0:t.name,trackData:!0,eventCategory:`personalized_${a}`,postLink:(0,tF.lr)(e),categoryLink:(0,tF.OZ)(e),authors:(0,tY.S)(e.authors,s),analytic:`personalized_${a}_spotlight`,titleSize:"text-xs",titleLineHeight:"leading-4"},e.id)},e.id)}),(0,eu.jsx)("div",{className:"xl:pl-3 pl-1 shrink-0"})]})]})})(c)]})]})},iY=e=>{var t,a;let{blogData:i}=e;return(0,eu.jsxs)(eu.Fragment,{children:[(0,eu.jsx)("div",{id:"blog",className:"xl:mt-20 mt-10",children:(0,eu.jsx)("div",{className:"flex-grow",children:(0,eu.jsxs)("div",{className:"flex justify-between",children:[(0,eu.jsxs)("div",{children:[(0,eu.jsx)(f.qh,{href:"/read/post",onClick:()=>{(0,d.$s)("home_blog","click","item_name: All Blog Posts - Heading")},prefetch:!1,children:(0,eu.jsx)(ay._x,{title:"Blogs",isBorder:!1,isSpacing:!1})}),(0,eu.jsx)("div",{className:"border-b-4 border-carrot-500 w-20 mt-6"})]}),(0,eu.jsx)(f.qh,{href:"/read/post",onClick:()=>{(0,d.$s)("home_blog","click","item_name: All Blog Posts")},prefetch:!1,children:(0,eu.jsx)(l.g,{icon:"chevron-right",size:"lg",className:"text-carrot-500"})})]})})}),(0,eu.jsxs)("div",{className:"my-6",children:[(0,eu.jsx)("div",{className:"hidden xl:grid xl:grid-cols-4 gap-x-6 gap-y-10",children:null==i||null==(t=i.slice(0,8))?void 0:t.map(e=>{var t,a,i;return(0,eu.jsx)(ai.Zp,{imgSrc:(null==e||null==(t=e.media)||null==(t=t.image)?void 0:t.vertical)||a2.d,title:e.title,postLink:e.slug,category:null==(a=e.subtopic)?void 0:a.name,authors:e.authors,categoryLink:null==(i=e.subtopic)?void 0:i.slug,analytic:"home_blog"},e.title)})}),(0,eu.jsx)("div",{className:"xl:hidden grid gap-y-6",children:null==i||null==(a=i.slice(0,8))?void 0:a.map(e=>{var t,a,i,r,n;return(0,eu.jsx)("div",{children:(0,eu.jsxs)("div",{className:"grid grid-cols-3 gap-x-4",children:[(0,eu.jsx)(f.qh,{href:e.slug,onClick:()=>{(0,d.$s)("home_blog","click",`item_name: ${e.title}`)},children:(0,eu.jsx)("div",{className:"aspect-w-16 aspect-h-9",children:(0,eu.jsx)(e_(),{loader:eS.R2,src:(null==(t=e.media)||null==(t=t.image)?void 0:t.vertical)||a2.d,alt:e.title,layout:"fill",objectFit:"cover"})})}),(0,eu.jsxs)("div",{className:"flex-1 flex flex-col justify-center col-span-2",children:[(null==(a=e.subtopic)?void 0:a.name)&&(null==(i=e.subtopic)?void 0:i.slug)&&(0,eu.jsx)(f.qh,{href:null==(r=e.subtopic)?void 0:r.slug,passHref:!0,className:"mb-1",onClick:()=>{(0,d.$s)("home_blog","click",`item_name: ${e.title}`)},children:(0,eu.jsx)(ai.fo,{category:null==(n=e.subtopic)?void 0:n.name,size:"text-xss"})}),(0,eu.jsx)(f.qh,{href:e.slug,onClick:()=>{(0,d.$s)("home_blog","click",`item_name: ${e.title}`)},children:(0,eu.jsx)(f.EY,{as:"p",color:"text-y-black",weight:"font-bold",letterSpacing:"tracking-tight-2",lineHeight:"leading-tight",fontSize:"text-sm",className:"mb-1",children:e.title})}),(0,eu.jsx)(ai.EJ,{authors:e.authors,fontSize:"text-xs",isSpacing:!1})]})]})}
53,e.title)})})]})]})},iL=()=>{let{firebaseAuth:e}=(0,tz.m9)(),{userInfo:t}=e,{personalizedMedium:a,personalizedVideos:i,personalizedPapers:r}=iN();return(0,eu.jsxs)("div",{className:"bg-grey-100 w-full",children:[(0,eu.jsxs)("div",{className:"mt-10 xl:px-0 px-4 container mx-auto",children:[(0,eu.jsx)("div",{id:"greetings",className:"mb-6",children:(0,eu.jsxs)(f.EY,{as:"p",fontSize:"text-3xl xl:text-4xl",weight:"font-extrabold",lineHeight:"leading-9 xl:leading-10",letterSpacing:"tracking-tight",children:["As-salaamu âalaykum",t.user&&t.user.displayName?`, ${t.user.displayName}!`:""]})}),(0,eu.jsx)(ay._x,{title:"For you",isBorder:!1,isSpacing:!1}),(0,eu.jsx)("div",{className:"border-b-4 border-carrot-500 w-20 xl:mt-4 mt-6 mb-6"})]}),(0,eu.jsx)("div",{className:"container mx-auto space-y-6 mb-10",children:a===ij.Watching?(0,eu.jsxs)(eu.Fragment,{children:[(0,eu.jsx)(iF,{title:"Videos",variant:"videos",postsData:i}),(0,eu.jsx)(iF,{title:"Papers",variant:"papers",postsData:r})]}):(0,eu.jsxs)(eu.Fragment,{children:[(0,eu.jsx)(iF,{title:"Papers",variant:"papers",postsData:r}),(0,eu.jsx)(iF,{title:"Videos",variant:"videos",postsData:i})]})})]})};var iB=a(11304)},68831:(e,t,a)=>{"use strict";a.d(t,{Jh:()=>s,R$:()=>i,Vp:()=>c,Y2:()=>r});let i=/\[QRN-(\d{1,3})-(\d{1,3})(?:-(\d{1,3}))?\]/g,r=e=>e.replace(/’|’|’|'|'/g,"'"),n=(e,t)=>e>=1&&e<=114&&t>=1&&t<=286,s=e=>{let t,a=[],r=new Set;for(i.lastIndex=0;null!==(t=i.exec(e));){let e=parseInt(t[1],10),i=parseInt(t[2],10),s=t[3]?parseInt(t[3],10):i;if(!n(e,i)||s!==i&&!n(e,s))continue;let l=s!==i?`${e}:${i}-${s}`:`${e}:${i}`;r.has(l)||(r.add(l),a.push({fullMatch:t[0],chapter:e,startVerse:i,endVerse:s,verseRef:l,index:t.index}))}return a},l=/\[([A-Za-z][\w\s''-]+?)\s+(\d{1,3}):(\d{1,3})(?:-(\d{1,3}))?\]/g,o=/\[(\d{1,3}):(\d{1,3})(?:-(\d{1,3}))?\]/g,c=e=>{let t,a=[],i=new Set,r=e=>{i.has(e.verseRef)||(i.add(e.verseRef),a.push(e))};for(l.lastIndex=0;null!==(t=l.exec(e));){let e=t[1].trim(),a=parseInt(t[2],10),i=parseInt(t[3],10),s=t[4]?parseInt(t[4],10):i;if(!n(a,i)||s!==i&&!n(a,s))continue;let l=s!==i?`${a}:${i}-${s}`:`${a}:${i}`;r({fullMatch:t[0],surahName:e,chapter:a,startVerse:i,endVerse:s,verseRef:l})}for(o.lastIndex=0;null!==(t=o.exec(e));){let e=parseInt(t[1],10),a=parseInt(t[2],10),s=t[3]?parseInt(t[3],10):a;if(!n(e,a)||s!==a&&!n(e,s))continue;let l=s!==a?`${e}:${a}-${s}`:`${e}:${a}`;i.has(l)||r({fullMatch:t[0],surahName:"",chapter:e,startVerse:a,endVerse:s,verseRef:l})}return a}},68886:(e,t,a)=>{"use strict";a.d(t,{O:()=>i});let i=e=>{let t=document.body.offsetHeight;return Math.round(e/(t-window.innerHeight)*100)}},69185:(e,t,a)=>{"use strict";a.d(t,{r:()=>i});let i="https://maps.googleapis.com/maps/api/js?key=AIzaSyANJsM_KhXHQCx6Tg5hufYhz5hR7KOTgKY&libraries=places"},69398:(e,t,a)=>{"use strict";a.d(t,{OB:()=>m,Qq:()=>o,j3:()=>u});var i=a(89099),r=a(18012),n=a(69174),s=a(32738),l=a(37876);function o(e){let{items:t,activeNav:a}=e,{asPath:o}=(0,i.useRouter)();return(0,l.jsx)("div",{className:"simple-filter-nav xl:block flex xl:whitespace-normal whitespace-nowrap overflow-auto",children:(0,l.jsx)("div",{className:"border-b border-grey-200 pb-2 w-full",children:(0,l.jsx)("div",{className:"flex items-center px-4 lg:px-0 iphonese:px-2",children:t.map(e=>(0,l.jsx)(n.qh,{onClick:()=>{(0,r.$s)("simple_filter_nav","click",e.title)},href:e.href,passHref:!0,className:"flex items-center py-1",children:(0,l.jsx)(n.EY,{weight:"font-bold",fontSize:"text-xs",letterSpacing:"tracking-tight-1",color:o.includes((0,s.z9)(e.title))||a===e.href?"text-grey-900":"text-grey-700 hover:text-grey-900",className:"px-2",children:e.title})},e.href))})})})}var c=a(57002),d=a(43425),h=a(74528);function u(e){let{topics:t,allTopics:a,pageType:o=c.g6.Read,variant:u=c.KT.Light}=e,m=o===c.g6.Watch?"text-grey-100 hover:text-grey-300":"text-grey-700 hover:text-grey-900",p=u===c.KT.Dark?"border-grey-800":"border-grey-100",g=o===c.g6.Watch?"text-grey-300":"text-grey-900",{asPath:f}=(0,i.useRouter)();return(0,l.jsx)("div",{className:"topic-nav xl:block flex xl:whitespace-normal whitespace-nowrap overflow-auto",children:(0,l.jsx)("div",{className:`border-b ${p} pb-2 w-full`,children:(0,l.jsxs)("div",{className:"flex items-center px-4 xl:px-0 iphonese:px-2",children:[o==c.g6.Watch&&h.q.map(e=>(0,l.jsx)(n.qh,{href:"series"===e.slug?"/watch/series":`/watch/${e.slug}`,onClick:()=>{(0,r.$s)("topic_nav","click",e.title)}
53,className:"flex items-center",children:(0,l.jsx)(n.EY,{color:f.includes((0,s.z9)(e.title))?g:m,weight:"font-bold",fontSize:"text-xs",className:"px-2",letterSpacing:"tracking-tight-1",children:e.title})},e.title)),o==c.g6.Read&&(0,l.jsx)(l.Fragment,{children:[{href:"/read/series",label:"Series"},{href:"/translations",label:"Translations"},{href:"/read/books",label:"Books"},{href:"/read/post",label:"Blogs"},{href:"/read/data/reports",label:"Reports"},{href:"/tag/printables",label:"Printables"}].map(e=>{let{href:t,label:a}=e;return(0,l.jsx)(n.qh,{onClick:()=>{(0,r.$s)("topic_nav","click",a)},href:t,className:"flex items-center",children:(0,l.jsx)(n.EY,{color:m,weight:"font-bold",fontSize:"text-xs",className:"px-2",letterSpacing:"tracking-tight-1",children:a})},t)})}),t&&(0,l.jsxs)(l.Fragment,{children:[(o==c.g6.Watch||o==c.g6.Read)&&(0,l.jsx)(n.EY,{fontSize:"text-xs",letterSpacing:"tracking-tight-1",color:m,className:"border-l border-grey-100 px-2 flex items-center",children:"Topics:"}),t.filter(e=>e.count>0).map(e=>(0,l.jsx)(n.qh,{onClick:()=>{(0,r.$s)("topic_nav","click",e.name)},href:(0,d.eC)(e,a,o),passHref:!0,className:"flex items-center py-1",children:(0,l.jsx)(n.EY,{weight:"font-bold",fontSize:"text-xs",letterSpacing:"tracking-tight-1",color:f.includes((0,s.z9)(e.name))?g:m,className:"px-2",children:e.name})},e.id))]})]})})})}let m=e=>{let{children:t}=e;return(0,l.jsx)("div",{className:"mt-6 iphonese:-mx-4 -mx-6 xl:mx-0",children:t})}},70428:(e,t,a)=>{"use strict";a.d(t,{Gr:()=>s,Il:()=>i,Y1:()=>r,cg:()=>o,f_:()=>l,fy:()=>n});let i=(e,t)=>!!t.pathname.includes(e),r=(e,t)=>{if(0!=e.idx)return!0;let[a,i]=e.slug.split(".");return!!t.find(e=>{let[t,r]=e.id.split(".");return t===a&&parseInt(i)-parseInt(r)==1})},n=(e,t,a)=>{let i=a.filter(t=>{let{id:a}=t;return a.match(/\d+\.\d+/)&&a.split(".")[0]===e}).map(e=>{let{id:t}=e;return parseInt(t.split(".").pop())}).sort().pop();return i&&t.find(e=>e.idx===i)||null},s=(e,t)=>{var a,i,r;if(!(null!=e&&null!=(a=e.history)&&a.trainings))return(null==t||null==(r=t[0])||null==(r=r.items)?void 0:r[0])||null;let n=e.history.trainings,s=e=>{var t;return e.id===(null==(t=n[n.length-1])?void 0:t.id)};return t.map(e=>e.items.find(s)).filter(Boolean).pop()||(null==t||null==(i=t[0])||null==(i=i.items)?void 0:i[0])||null},l=e=>{let t=e.match(/https?:\/\/vimeo.com\/(\d+)\/[a-z0-9]*/);return t?`https://player.vimeo.com/video/${t[1]}`:e},o=e=>{var t,a;return!e||!((null==(t=e.history)||null==(t=t.trainings)?void 0:t.length)>0||(null==(a=e.kitsHistory)?void 0:a.length)>0)}},71599:(e,t,a)=>{"use strict";a.d(t,{NA:()=>p,JU:()=>m,Uy:()=>j,bC:()=>y,F4:()=>w,Ay:()=>b,lc:()=>x,Fi:()=>S,Qw:()=>f,Fl:()=>i,r:()=>u}),a(5707),a(8421);let i=e=>`/what-islam-says-about/${e}`;var r=a(66284),n=a(24519),s=a.n(n);a(67117);var l=a(32738),o=a(55850);function c(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,i)}return a}function d(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?c(Object(a),!0).forEach(function(t){(0,r.A)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):c(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}let h=e=>"html"===e.type&&e.text?(0,o.bo)(e.text):"",u=(e,t)=>e&&0!==e.length?e.map(e=>((e,t)=>{var a;if(!e.section_title||!(null!=(a=e.content)&&a.length))return null;let i=e.content.map(h).filter(e=>e.trim().length>0);return 0===i.length?null:d({question:e.section_title,answer:i.join(" ")},t&&{url:`${t}#${(0,l.z9)(e.section_title)}`})})(e,t)).filter(e=>null!==e):[],m={"omar-suleiman":["https://en.wikipedia.org/wiki/Omar_Suleiman_(imam)"]},p={"hajj-and-umrah":"2026-04-29","prophet-muhammad":"2026-08-07"},g={"Basics of Islam":"https://www.wikidata.org/wiki/Q432","Prophet Muhammad ï·º":"https://www.wikidata.org/wiki/Q9458","Hajj and Umrah":"https://www.wikidata.org/wiki/Q234915","Mental Health & Wellness":"https://www.wikidata.org/wiki/Q317309","Peace & Violence":"https://www.wikidata.org/wiki/Q6081790",Ramadan:"https://www.wikidata.org/wiki/Q41662",Shariah:"https://www.wikidata.org/wiki/Q482752",Spirituality:"https://www.wikidata.org/wiki/Q168796",Women:"https://www.wikidata.org/wiki/Q622820"},f=e=>{var t;let a=new Set;return e.name&&a.add(e.name),(null==(t=e.sections)?void 0:t.length)>
530&&e.sections.forEach(e=>{e.section_title&&a.add(e.section_title)}),Array.from(a).map(e=>{let t=s().decode(e),a=g[t];return d({type:a?"DefinedTerm":"Thing",name:t},a&&{sameAs:a})})},x=e=>{var t;let a=new Set;return(null==(t=e.explore_more)?void 0:t.length)>0&&e.explore_more.forEach(e=>{var t;null!=(t=e.subtopic)&&t.name&&a.add(e.subtopic.name)}),Array.from(a).map(e=>({type:"Thing",name:e}))},y=(e,t)=>{var a;return null!=(a=e.sections)&&a.length&&t?e.sections.filter(e=>e.section_title).map(e=>({name:e.section_title,url:`${t}#${(0,l.z9)(e.section_title)}`})):[]},b=e=>{var t;let a=new Set;return e.name&&a.add(e.name.toLowerCase()),(null==(t=e.sections)?void 0:t.length)>0&&e.sections.forEach(e=>{e.section_title&&a.add(e.section_title.toLowerCase())}),Array.from(a)},v=/^\d+[).]\s+/,w=(e,t)=>{var a;return null!=(a=e.sections)&&a.length?e.sections.map(e=>{if(!e.section_title)return null;let a=(e=>{var t;let a=[];return null==(t=e.content)||t.forEach(e=>{"html"===e.type&&e.text&&(e.text.match(/<p[^>]*>[\s\S]*?<\/p>/gi)??[]).forEach(e=>{let t=(0,o.bo)(e);v.test(t)&&a.push(t.replace(v,""))})}),a.length>=2?a:null})(e);return a?{name:e.section_title,url:`${t}#${(0,l.z9)(e.section_title)}`,steps:a}:null}).filter(e=>!!e):[]},j=e=>{var t;if(!(null!=(t=e.explore_more)&&t.length))return[];let a=new Set,i=[];return e.explore_more.forEach(e=>{var t;null==(t=e.authors)||t.forEach(e=>{a.has(e.id)||(a.add(e.id),i.push(e))})}),i};function k(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,i)}return a}function N(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?k(Object(a),!0).forEach(function(t){(0,r.A)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):k(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}let _=e=>e.replace(/“|”|\u201c|\u201d/g,'"').replace(/‘|’|\u2018|\u2019/g,"'"),S=e=>{var t;if(!(null!=(t=e.sections)&&t.length))return[];let a=[],i=new Set;return e.sections.forEach(t=>{((e,t)=>{var a;let i=[];return null==(a=e.content)||a.forEach(e=>{if("html"!==e.type||!e.text)return;let a=e.text,r=(e=>{let t=_(e),a=/(?:<(?:em|i)>|<p>\s*<(?:em|i)>)([\s\S]*?)(?:<\/(?:em|i)>)\s*\[(\d+):(\d+)\]/i.exec(t);if(!a)return null;let i=(0,o.QZ)(a[1]).trim().replace(/^["'\s]+|["'\s]+$/g,"").trim();if(i.length<20)return null;let r=a[2],n=a[3];return{text:i,creator:{name:"God (Allah)",type:"Person"},isPartOf:{name:"The Qur'an",type:"Book",url:"https://quran.com"},about:[],position:`${r}:${n}`,inLanguage:"en",sameAs:[`https://quran.com/${r}/${n}`]}})(a);r&&(r.about=[{name:t,type:"Thing"}],i.push(r)),a.split(/<\/p>\s*<p>/i).forEach(e=>{let a=(e=>{let t=_(e),a=/<(?:em|i)>\s*"([\s\S]*?)"\s*<\/(?:em|i)>/i.exec(t);if(!a)return null;let i=(0,o.QZ)(a[1]).trim();if(i.length<20)return null;let r=/\[Sahih al-Bukhari #(\d+)\]/i.exec(t),n=/href="(https?:\/\/sunnah\.com\/[^"]+)"/i.exec(t);if(!r&&!n&&!t.includes("Prophet")&&!t.includes("Messenger"))return null;let s=r?`Sahih al-Bukhari #${r[1]}`:"Prophetic Hadith",l=n?n[1]:void 0;return N({text:i,creator:{name:"Prophet Muhammad",type:"Person"},isPartOf:N({name:s,type:"Book"},l&&{url:l}),about:[],inLanguage:"en"},l&&{sameAs:[l]})})(e);a&&(a.about=[{name:t,type:"Thing"}],i.push(a))})}),i})(t,e.name).forEach(e=>{i.has(e.text)||(i.add(e.text),a.push(e))})}),a}},72117:(e,t,a)=>{"use strict";a.d(t,{Y:()=>i});let i={primary:[{id:"dashboard",name:"My activity",path:"/dashboard"},{id:"donations",name:"Donations",path:"/dashboard/donations"},{id:"compass",name:"Yaqeen Compass",path:"/dashboard/compass"}],secondary:[{id:"settings",name:"Settings",path:"/dashboard/settings"},{id:"logout",name:"Logout",path:"/logout"}]}},72585:(e,t,a)=>{"use strict";let i,r;a.r(t),a.d(t,{getOrCreateSessionId:()=>o,getSessionReference:()=>c,normalizePaymentMethod:()=>f,resetSessionId:()=>d,setDonationContext:()=>l,trackDonationEvent:()=>h,useAbandonmentDetection:()=>p});let n="https://donordb.yaqeeninstitute.org/api/v1/donation-analytics/events",s="donation_session_id";function l(e,t){i=e,r=t}function o(){try{let e=sessionStorage.getItem(s);return e||(e=function(){if("undefined"!=typeof crypto&&"function"==typeof crypto.randomUUID)return crypto.randomUUID();let e=new Uint8Array(16);crypto.getRandomValues(e),e[6]=15&e[6]|64,e[8]=63&e[8]|128;let t=Array.from(e).map(e=>e.toString(16).padStart(2,"0")).join("");return`${t.slice(0,8)}-${t.slice(8,12)}-${t.slice(12,16)}-${t.slice(16,20)}-${t.slice(20)}`}(),sessionStorage.setItem(s,e)),e}catch{return null}}function c(){if(!n)return null;try{let e=sessionStorage.getItem(s);if(!e)return null;return`YQ-${e.substring(0,8).toUpperCase()}`}catch{return null}}
53function d(){try{sessionStorage.removeItem(s),sessionStorage.removeItem("donation_abandoned_sent")}catch{}}function h(e,t){if(!n)return;let a=o();if(a)try{let s={donation_session_id:a,event_name:e,occurred_at:new Date().toISOString(),page_url:window.location.href,donation_path:r||window.location.pathname,donation_type:i,metadata:t??{},client_info:{user_agent:navigator.userAgent,language:navigator.language}};if("donation_flow_abandoned"===e){let e=new Blob([JSON.stringify(s)],{type:"application/json"});navigator.sendBeacon(n,e)}else fetch(n,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s),keepalive:!0}).catch(()=>{})}catch{}}var u=a(14232);let m="donation_abandoned_sent";function p(e,t){let a=(0,u.useRef)(t);a.current=t,(0,u.useEffect)(()=>{if(!e||"undefined"==typeof document||!o())return;let t=()=>{if("hidden"===document.visibilityState){try{if(sessionStorage.getItem(m))return;sessionStorage.setItem(m,"true")}catch{return}h("donation_flow_abandoned",{last_visible_step:a.current})}};return document.addEventListener("visibilitychange",t),()=>document.removeEventListener("visibilitychange",t)},[e])}let g={cc:"card","apple-pay/gpay":"wallet","interac/e-transfer":"interac",us_bank_account:"us_bank_account",paypal:"paypal",card:"card"};function f(e){if(e)return g[e]||e}},74010:(e,t,a)=>{"use strict";a.d(t,{W:()=>l});var i=a(36708),r=a(18125),n=a(69174),s=a(37876);let l=e=>{let{text:t,isFollowing:a,onToggleFollow:l}=e;return a?(0,s.jsxs)(n.$n,{className:"flex items-center gap-x-1.5 bg-carrot-50 border-carrot-50 border rounded py-0.5 px-3",onPress:l,children:[(0,s.jsx)(r.g,{icon:i.EZy,className:"text-carrot-600 text-sm"}),(0,s.jsx)(n.EY,{as:"p",fontSize:"text-sm",weight:"font-bold",letterSpacing:"tracking-tight-1",className:"text-grey-900",lineHeight:"leading-[17.05px]",children:t})]}):(0,s.jsxs)(n.$n,{className:"flex items-center gap-x-1.5 border border-gray-200 rounded py-0.5 px-3 hover:bg-carrot-100 hover:border-carrot-100",onPress:l,children:[(0,s.jsx)(r.g,{icon:i.QLR,className:"text-carrot-600 text-sm"}),(0,s.jsx)(n.EY,{as:"p",fontSize:"text-sm",weight:"font-bold",letterSpacing:"tracking-tight-1",className:"text-gray-900",lineHeight:"leading-[17.05px]",children:t})]})}},74528:(e,t,a)=>{"use strict";a.d(t,{q:()=>i});let i=[{title:"Animation",slug:"animation"},{title:"Khutbahs",slug:"khutbah"},{title:"Lectures",slug:"lecture"},{title:"Series",slug:"series"},{title:"Reflections",slug:"reflection-video"},{title:"Webinars",slug:"webinars"},{title:"Webinar Videos",slug:"webinar-video"}]},74831:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});let i=(0,a(14232).createContext)({handleDownload:()=>void 0,downloadOptions:{manual:!1,url:""}})},75261:(e,t,a)=>{"use strict";a.d(t,{Bx:()=>g,KQ:()=>m,ZL:()=>o,cT:()=>h,ef:()=>x,pN:()=>u,tt:()=>p,vw:()=>f,yY:()=>l});var i=a(35214),r=a(93269),n=a(22938),s=a(89874);let l=e=>{let t=[];for(let[a,i]of Object.entries(e))t.push({qRef:a,aRef:i});return t},o=e=>isNaN(e)?null:e<.6?s.o.Emerging:e<.8?s.o.Growing:s.o.Advanced,c=(e,t)=>e+parseInt(t.aRef),d=["gender","yob","email","userId"],h=e=>{if(!e)return[];let t=[];return Object.keys(s._).forEach(a=>{var i;let r=(null==(i=e[a])?void 0:i.filter(e=>!d.includes(e.qRef)))||[],n=+(r.reduce(c,0)/(5*r.length)).toFixed(2),l=o(n),h={section:a,score:n,grade:l,sectionTitle:s._[a]};t.push(h)}),t},u=e=>{if(!e)return 0;let t=h(e).map(e=>e.score);return Math.round(100*t.reduce((e,t)=>e+t))/t.length/100},m=e=>{var t;return(null==e?void 0:e.length)===0||Math.floor(new Date().getTime()-(null==(t=e.sort((e,t)=>{var a,i;return(null==t||null==(a=t.meta)?void 0:a.timestamp)-(null==e||null==(i=e.meta)?void 0:i.timestamp)})[0].meta)?void 0:t.timestamp))/864e5>i.sI},p=e=>{let t=e[0],a=new Date(t?t.meta.timestamp:null);return a.setDate(a.getDate()+i.sI),a},g=async(e,t)=>{if(!t||!e)return;let a=[{property:"basic_overall_ranking",value:t.toLowerCase()}];try{await fetch("/api/hsUpdateProps",{method:"post",body:JSON.stringify({email:e,properties:a}),headers:{"Content-Type":"application/json"}})}catch(e){n.A.error("BASIC hsUpdateProps failed",e)}},f="compass_cta_variant",x=e=>{for(let t in r.R){let a=r.R[t].find(t=>t.postId==e.toString());if(a)return{post:a,category:t}}return null}},75477:(e,t,a)=>{"use strict";a.d(t,{Zp:()=>p,EJ:()=>x,fo:()=>y,BT:()=>b,wL:()=>v,ZB:()=>w,jw:()=>S,Tr:()=>P,dw:()=>T,xs:()=>D,Fu:()=>q});var i=a(54587),r=a.n(i),n=a(18125),s=a(19641),l=a(18012),o=a(69174),c=a(1678),d=a(86400),h=a(51348),u=a(28734),m=a(37876);let p=e=>{let{imgSrc:t,category:a,title:i,author:p,authors:g,postLink:f="#",categoryLink:j,infographic:k,excerpt:N,duration:_,footerText:S,titleSize:A="text-base",iconSize:C={width:"40",height:"40"},isHighlight:P,isSearch:O,prefetch:E,variant:I="large-card",trackData:D,eventCategory:q,trackSearchCallback:M,analytic:$,isBorder:H,titleLineHeight:R,progress:z=0,hasGrayscaleImg:F,className:Y,categoryLineHeight:L,contentType:B,imageClassName:U}=e,W=(0,u.HH)(),G="mt-4";a&&(G="small-card"===I?"mt-2":"mt-1.5"),P&&!a&&(G="xl:mt-6 mt-4");let Z="small-card"===I?"flex-row":"flex-col",Q="small-card"===I?"w-2/5 mr-5":"w-full",V=O&&c.DB,K=D?{category:q,action:"click",label:`card_title: ${i}, item_clicked: author, device: ${W}`}:{};return(0,m.jsxs)("div",{className:`flex-1 flex ${Z} ${H?"border rounded p-4":""} ${Y}`,children:[(0,m.jsxs)("div",{className:`relative ${Q}`,children:[(0,m.jsx)(o.qh,{target:O&&"_blank",href:f,passHref:!0,onClick:()=>{(0,l.$s)($,"click",`item_name: ${i}, type: Article`),V&&M()},prefetch:E,children:H?(0,m.jsx)(r(),{loader:d.R2,src:t||s.d,alt:i,width:Number(C.width),height:Number(C.height)}):(0,m.jsxs)("div",{className:`${k?"aspect-w-9 aspect-h-16":"aspect-w-16 aspect-h-9"}`,children:[(0,m.jsx)(r(),{loader:d.R2,src:t||s.d,alt:i,layout:"fill",objectFit:"cover",className:`outline-greyish ${F?"grayscale":""} ${U||""}`,sizes:"small-card"===I?"(max-width: 640px) 40vw, (max-width: 1024px) 25vw, 200px":k?"(max-width: 640px) 100v
53w, (max-width: 1024px) 50vw, (max-width: 1280px) 33vw, 256px":"(max-width: 640px) 100vw, (max-width: 1024px) 50vw, (max-width: 1280px) 25vw, 320px"}),(e=>{if(e)return(0,m.jsx)(T,{duration:null})})(_),"video"===B&&(0,m.jsx)("div",{className:"absolute inset-0 flex items-center justify-center",children:(0,m.jsx)(n.g,{icon:"play",className:"w-10 h-10 text-white drop-shadow-lg"})})]})}),z>0&&(0,m.jsx)("span",{className:(0,h.x)({25:"w-1/4",50:"w-1/2",75:"w-3/4",100:"w-full"}[z]||"w-0","absolute left-0 bottom-0 h-1 bg-carrot-600"),"aria-hidden":"true"})]}),(0,m.jsxs)("div",{className:"flex-1 flex flex-col",children:[a&&(0,m.jsx)(o.qh,{href:j||"#",onClick:()=>{(0,l.$s)($,"click",`item_name: ${i}, type: Article`)},passHref:!0,prefetch:E,className:"small-card"===I?"":"mt-4",children:(0,m.jsx)(y,{category:a,size:"text-xss",lineHeight:L,color:"text-blue-500 hover:text-blue-600"})}),(0,m.jsx)("div",{className:G,children:(0,m.jsx)(o.qh,{target:O&&"_blank",href:f,passHref:!0,prefetch:E,onClick:()=>{(0,l.$s)($,"click",`item_name: ${i}, type: Article`),V&&M()},children:(0,m.jsx)(w,{title:i,excerpt:N,level:5,weight:"font-bold",fontSize:A,lineHeight:R})})}),N&&(0,m.jsx)("div",{className:"mt-2",children:(0,m.jsx)(b,{excerpt:N})}),g&&(0,m.jsx)(x,{author:p,authors:g,fontSize:"text-xs",prefetch:E,variant:I,trackingProps:K,color:"text-slate-500 hover:text-slate-600"}),S&&(0,m.jsx)(v,{text:S,fontSize:"text-xs",variant:I}),p&&(0,m.jsx)(x,{author:p,fontSize:"text-xs",prefetch:E,variant:I,trackingProps:K,color:"text-slate-500 hover:text-slate-600"})]})]})};var g=a(24519),f=a.n(g);let x=e=>{let{authors:t,author:a,fontSize:i="text-base",color:r="text-grey-800",isSpacing:n=!0,prefetch:s,variant:c="large-card",trackingProps:d}=e,h=n?"large-card"===c?"mt-1.5":"mt-2":"";return a?a.slug?(0,m.jsx)("div",{className:`inline-block leading-3-s ${h}`,children:(0,m.jsx)(o.qh,{href:`/team/${a.slug}`,prefetch:s,onClick:()=>{d&&(0,l.$s)(d.category,d.action,d.label)},children:(0,m.jsx)(o.EY,{color:r,fontSize:i,children:f().decode(a.name)})})}):(0,m.jsx)("div",{className:`inline-block leading-3-s ${h}`,children:(0,m.jsx)(o.EY,{color:r,fontSize:i,children:f().decode(a.name)})}):(null==t?void 0:t.length)>0&&(0,m.jsx)("div",{className:`inline-block leading-3-s ${h}`,children:t.filter(Boolean).map((e,a)=>{let n=(0,m.jsxs)(m.Fragment,{children:[a>0&&t.length-1===a&&(0,m.jsx)(o.EY,{fontSize:i,color:r,className:"px-1",children:"and"}),(0,m.jsx)(o.EY,{color:r,fontSize:i,children:f().decode(e.name)}),t.length>2&&a<t.length-2&&(0,m.jsx)(o.EY,{fontSize:i,color:r,className:"pr-1",children:","})]});return e.slug?(0,m.jsx)(o.qh,{href:`/team/${e.slug}`,prefetch:s,onClick:()=>{d&&(0,l.$s)(d.category,d.action,d.label)},children:n},a):(0,m.jsx)("span",{className:"inline-block",children:n},a)})})},y=e=>{let{category:t,size:a="text-sm",color:i="text-jordy-700",lineHeight:r="leading-tight-1"}=e;return(0,m.jsx)(o.EY,{as:"p",color:i,weight:"font-bold",fontSize:a,lineHeight:r,letterSpacing:"tracking-wider",className:"uppercase",children:t})},b=e=>{let{excerpt:t,highlight:a=!1}=e;return(0,m.jsx)(o.EY,{color:"text-grey-800",fontSize:a?"text-lg":"text-sm",fontFamily:"font-source-serif-pro",className:`${a?"lg:w-3/4":""} w-full flex-1`,children:(0,m.jsx)("div",{dangerouslySetInnerHTML:{__html:t}})})},v=e=>{let{text:t,fontSize:a="text-base",variant:i="large-card"}=e;return(0,m.jsx)("div",{className:`inline-block leading-3-s ${"large-card"===i?"mt-3":"mt-2"}`,children:(0,m.jsx)(o.EY,{color:"text-grey-800",fontSize:a,children:t})})},w=e=>{let{title:t,excerpt:a,align:i,fontSize:r="text-base",weight:n="font-normal",lineHeight:s="leading-tight"}=e;return(0,m.jsx)(o.DZ,{color:"text-grey-900",weight:n,fontSize:r,lineHeight:s,className:`${!a?"flex-1":""} tracking-tight-1 line-clamp-2`,align:i,children:(0,m.jsx)("span",{dangerouslySetInnerHTML:{__html:t}})})};var j=a(23749),k=a(57002),N=a(67579),_=a(77572);let S=e=>{let{cardItem:t,type:a}=e,{country:i}=(0,j.A)(),r=a===k.g6.Infographics;return a===k.g6.Watch?(0,m.jsx)("div",{className:"mb-4",children:(0,m.jsx)(N.Card,{imgSrc:t.thumbnail,title:t.title,category:t.category,postLink:t.articleLink,categoryLink:t.categoryLink,footerText:`${t.count} items`})},t.id):(0,m.jsx)("div",{className:"mb-4",children:(0,m.jsx)(N.Card,{prefetch:!1,imgSrc:t.thumbnail,title:t.title,category:t.category,postLink:t.articleLink,categoryLink:t.categoryLink,authors:(0,_.S)(t.authors,i),infographic:r})},t.id)};
53var A=a(62255),C=a(71599);let P=e=>{let{cardItems:t,size:a,pillars:i,type:r}=e,n=t.length>a,s=r===k.g6.Infographics?"xl:grid-cols-5 gap-x-6 gap-y-10":"xl:grid-cols-4 gap-6";return i&&n?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(N.MainWebContentLayout,{children:(0,m.jsx)("div",{className:`post-lists grid ${s} mb-10`,children:t.slice(0,a).map((e,t)=>(0,m.jsx)(N.DisplayCard,{cardItem:e,type:r},t))})}),(0,m.jsx)("div",{className:"bg-grey-40 overflow-hidden relative mb-10",children:(0,m.jsxs)(N.MainWebContentLayout,{className:"pt-16",children:[(0,m.jsx)("div",{className:"mb-3",children:(0,m.jsx)(y,{category:"helping you understand better"})}),(0,m.jsx)(A.A,{title:"What Islam Says About...",titleSize:"xl:text-4xl text-2xl",isBorder:!1}),(0,m.jsx)(N.PillarsCarousel,{items:i.length,children:i.map(e=>(0,m.jsxs)("div",{className:"card flex-1 flex flex-col px-6 py-10 mb-24 border border-grey-200 bg-white rounded",children:[(0,m.jsx)(o.qh,{href:(0,C.Fl)(e.slug),children:(0,m.jsx)(o.DZ,{weight:"font-bold",fontSize:"text-2xl",lineHeight:"leading-snug",color:"text-endeavour-500",align:"text-center",children:e.name})}),(0,m.jsx)("div",{className:"border-b-2 border-carrot-500 container w-10 mx-auto mt-6"}),(0,m.jsx)("div",{className:"flex-1 flex mt-5",children:(0,m.jsx)(o.EY,{as:"p",color:"text-grey-700",fontFamily:"font-source-serif-pro",lineHeight:"leading-relaxed",className:"text-center",children:e.description})})]},e.id))})]})}),(0,m.jsx)(N.MainWebContentLayout,{className:"pb-10",children:(0,m.jsx)("div",{className:`post-lists grid ${s}`,children:t.slice(a,t.length-1).map((e,t)=>(0,m.jsx)(N.DisplayCard,{cardItem:e,type:r},t))})})]}):(0,m.jsx)(N.MainWebContentLayout,{children:(0,m.jsx)("div",{className:`post-lists grid ${s} pb-10`,children:t.map((e,t)=>(0,m.jsx)(N.DisplayCard,{cardItem:e,type:r},t))})})},T=e=>{let{duration:t}=e;return(0,m.jsxs)("div",{className:"absolute flex justify-center items-center py-1 px-2 bottom-0 right-0 bg-y-black-1 mb-3 mr-3",children:[(0,m.jsx)(n.g,{icon:"play",className:"text-white mx-1 h-2 w-2",size:"xs"}),(0,m.jsx)(o.EY,{color:"text-white",fontSize:"text-xs",children:t})]})};var O=a(66284);function E(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,i)}return a}function I(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?E(Object(a),!0).forEach(function(t){(0,O.A)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):E(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}let D=e=>{let{highlightTitle:t,category:a,title:i,postLink:s="#",readMoreText:c,readMoreLink:h="#",authors:u,categoryLink:p="#",excerpt:g,isReverse:f=!1,infographic:x=!1,noImageOutline:y=!1,desktopAspectRatio:b,mobileAspectRatio:v,desktopImgProps:w,mobileImgProps:j,analytic:k,titleSize:_="text-3xl xl:text-4xl",cardType:S="Book",section:A="Books",preloadImage:C=!1}=e;return(0,m.jsxs)("div",{id:"spotlight",className:`flex flex-col ${f?"lg:flex-row-reverse":"lg:flex-row"} xl:items-center`,children:[(0,m.jsx)("div",{className:`lg:w-1/2 ${x?"w-1/2":"w-full"} mb-6 xl:mb-0 relative mx-auto`,children:(0,m.jsxs)(o.qh,{href:s,onClick:()=>{(0,l.$s)(k,"click",`item_name: ${i}, type: Spotlight, section: ${A}`)},children:[(0,m.jsx)("div",{className:"hidden xl:block",children:(0,m.jsx)("div",{className:`${b} bg-grey-200`,children:(0,m.jsx)(r(),I(I({priority:C,loader:d.R2},w),{},{className:y?"":"outline-greyish"}))})}),(0,m.jsx)("div",{className:"xl:hidden",children:(0,m.jsx)("div",{className:`${v} bg-grey-200`,children:(0,m.jsx)(r(),I(I({priority:C,loader:d.R2},j),{},{className:y?"":"outline-greyish"}))})})]})}),(0,m.jsxs)("div",{className:`lg:w-1/2 w-full flex flex-col ${f?"lg:pr-12":"lg:pl-12"}`,children:[t&&(0,m.jsxs)("div",{className:"xl:mb-10 mb-6",children:[(0,m.jsx)(o.DZ,{color:"text-endeavour-500",fontSize:"text-xl xl:text-2xl",weight:"font-bold",lineHeight:"leading-3-s",letterSpacing:"tracking-tight",children:t}),(0,m.jsx)("div",{className:"border-b-2 border-carrot-500 w-10 mt-3"})]}),a&&(0,m.jsx)(o.qh,{href:p||"#",onClick:()=>{(0,l.$s)(k,"click",`item_name: ${a}, type: Topic, section: ${A}`)},children:(0,m.jsx)("div",{className:"mb-3",children:(0,m.jsx)(N.CardCategory,{category:a,size:"text-xss xl:text-sm"})})}),i&&(0,m.jsx)(o.qh,{href:s,onClick:()=>{(0,l.$s)(k,"click",`item_name: ${i}, type: ${S}, section: ${A}`)},passHref:!0,children:(0,m.jsx)("div",{className:"mb-2",children:(0,m.jsx)(N.CardTitle,{title:i,fontSize:_,weight:"font-extrabold"})})}),g&&(0,m.jsx)(N.CardDescription,{excerpt:g}),u&&(0,m.jsx)("div",{className:"mt-3",children:(0,m.jsx)(N.CardAuthor,{authors:u,fontSize:"text-sm"})}),c&&h&&(0,m.jsx)("div",{className:"read-more my-6",children:(0,m.jsxs)(o.qh,{href:h,onClick:()=>{(0,l.$s)(k,"click",`item_name: ${i}, type: ${S}, section: ${A}`)},className:"flex items-center py-2",children:[(0,m.jsx)(o.EY,{color:"text-grey-900",weight:"font-bold",className:"mr-3",children:c}),(0,m.jsx)(n.g,{icon:"chevron-right",className:"text-carrot-500"})]})})]})]})},q=e=>{let{title:t,postLink:a="#",imgSrc:i,isReverse:n=!1,desktopAspectRatio:s,mobileAspectRatio:l,infographic:c=!1}=e;return(0,m.jsx)("div",{className:`lg:w-1/2 ${c?"w-1/2":"w-full"} ${n?"lg:ml-4":"lg:mr-4"} mb-6 xl:mb-0`,children:(0,m.jsxs)(o.qh,{href:a,children:[(0,m.jsx)("div",{className:"hidden xl:block",children:(0,m.jsx)("div",{className:s,children:(0,m.jsx)(r(),{loader:d.R2,src:i,alt:t||"highlight card",layout:"fill",objectFit:"cover"})})}),(0,m.jsx)("div",{className:"xl:hidden",children:(0,m.jsx)("div",{className:l,children:(0,m.jsx)(r(),{loader:d.R2,src:i,alt:t||"highlight card",layout:"fill",objectFit:"cover"})})})]})})}},75923:(e,t,a)=>{"use strict";a.d(t,{S:()=>f});var i=a(14232),r=a(89099),n=a(9361),s=a(45999),l=a(18012),o=a(94030),c=a(75625),d=a(65083),h=a(38311),u=a(69174),m=a(4797),p=a(37876);let g=new Map,f=e=>{var t;let{eventName:a,source:f,surface:x,trackDisplay:y=!1}=e,{firebaseAuth:{userInfo:b,initAuth:v}}=(0,d.m9)(),{showNewsletterForm:w,updateState:j}=(0,h.K)(),{asPath:k}
53=(0,r.useRouter)(),{0:N,1:_}=(0,i.useState)(!1),{register:S,handleSubmit:A,errors:C,formState:P,reset:T}=(0,c.mN)({mode:"onChange"}),O=`${a}:${x??""}`;if((0,i.useEffect)(()=>{y&&w&&g.get(O)!==k&&(g.set(O,k),(0,l.$s)(a,"display","",!1,x?{surface:x}:{}))},[y,w,O,a,x,k]),!w)return null;let E=async e=>{_(!0),(0,o.h6)("Subscribe");let[t,i]=await (0,s.r)("/api/v1/hs-forms/newsletter",{email:e.email,yaqeen_subscriber_source:e.yaqeen_subscriber_source,pageUri:window.location.href,pageName:a});if(_(!1),t){let e="paper_subscribe_cta"==a?"Thank you! You're all signed up for paper updates.":"Successfully subscribed to Newsletter";i&&(e="You're already on the list"),(0,m.ge)(e,{closeButton:!0,autoClose:6e3}),j(a.includes("paper")?"paper":"general",!0),(0,l.$s)(a,"subscribe",`loggedIn: ${(null==b?void 0:b.authState)===n.j_.VerifiedAuth} alreadySubmitted: ${i}`,!1,x?{surface:x}:{}),(null==b?void 0:b.authState)!==n.j_.VerifiedAuth&&v()}else _(!1),(0,m.ge)("Error while subscribing. Please try again.",{closeButton:!0,autoClose:6e3});T()};return(0,p.jsxs)("div",{children:[N&&(0,p.jsx)(d.p8,{}),(0,p.jsxs)("div",{className:"subscribe-form xl:mb-0 mb-5",children:[(0,p.jsxs)("form",{method:"post",onSubmit:A(E),children:[(0,p.jsx)("input",{type:"hidden",name:"yaqeen_subscriber_source",value:f,ref:S({required:!1})}),(0,p.jsxs)("div",{className:"flex",children:[(0,p.jsx)("div",{className:"",children:(0,p.jsx)("input",{"aria-label":"Email",className:"grow w-full lg:max-w-[185px] leading-normal border h-10 border-grey-light rounded-none px-3 relative text-grey-800 border-gray-200",placeholder:"Your email",type:"email",name:"email",defaultValue:(null==b||null==(t=b.user)?void 0:t.email)||"",ref:S({required:"Please enter your email",pattern:{value:/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i,message:"Invalid email address"}})})}),(0,p.jsx)("div",{className:"flex-none w-26 h-11",children:(0,p.jsx)(u.$n,{type:"submit",isDisabled:!P.isValid,className:`rounded-tr ${P.isValid?"bg-orange-400 hover:bg-carrot-700 focus:bg-carrot-800":"bg-orange-400"} px-4 font-bold py-2 flex items-center whitespace-nowrap`,children:(0,p.jsx)(u.EY,{color:"text-white",weight:"font-bold",children:"Subscribe"})})})]})]}),C.email&&(0,p.jsx)(u.EY,{color:"text-red-500",children:C.email.message}),(0,p.jsx)("div",{children:(0,p.jsxs)(u.EY,{color:"text-black/75",fontSize:"text-xs",weight:"font-medium",lineHeight:"leading-4",children:["By subscribing, you agree to our"," ",(0,p.jsx)("b",{children:(0,p.jsx)(u.qh,{href:"/privacy-policy",target:"_blank",children:"Privacy Policy"})})]})})]})]})}},76075:(e,t,a)=>{"use strict";a.d(t,{F5:()=>c,dS:()=>h,hG:()=>m,vw:()=>d});var i=a(66284),r=a(99742);function n(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,i)}return a}function s(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?n(Object(a),!0).forEach(function(t){(0,i.A)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):n(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}let l={us:{stripe:{test:{productId:"prod_J31gh3hJW8Q1YR",publishableKey:"pk_test_0CUPCnQCAju6kqGv6FavbeVM"},prod:{productId:"prod_J31dYj1DYNgnb5",publishableKey:"pk_live_tGDwiUeDEcgPGTyb51bqDNG8"}},paypal:{test:{merchantAccount:"[email protected]",clientId:"AXxHh_Q0g0SHtH0ienBMbr5urV8fNQHqiMVV_Zph-T46BR8b_JoiqD6Sdh1Iz6ugQ5nWQ2jeBekeHX_4",productId:"PROD-6WD59153JX620524V"},prod:{merchantAccount:"[email protected]",clientId:"AZ2hbCfcrnATFgNUSuxamhWc8Psck4QExdpYHDplLvmEHrDKgVUjN4n49UuUCQXMKxLojlbEQLMTQ_Bs",productId:"PROD-8SK47441Y15744702"}},secretEnvVars:{stripe:"STRIPE_SECRET_KEY_US",paypal:"PAYPAL_SECRET_US"}},ca:{stripe:{test:{productId:"prod_J31jSneaRjZYEl",publishableKey:"pk_test_opxUCWu4okVnPOVxaPfwTTFI00iCpzo09k"},prod:{productId:"prod_J31iISdMN2hb3L",publishableKey:"pk_live_6qpDjjsm9180A9SX4cMtifTW00NsY1KcBH"}},paypal:{test:{merchantAccount:"[email protected]",clientId:"AXxHh_Q0g0SHtH0ienBMbr5urV8fNQHqiMVV_Zph-T46BR8b_JoiqD6Sdh1Iz6ugQ5nWQ2jeBekeHX_4",productId:"PROD-6WD59153JX620524V"},prod:{merchantAccount:"[email protected]",clientId:"ASfZWVNM7RKLwMKoFvm5c0tXWeLHe62KmrE6GxFN4TMu-bPNsy09P-4KXs99t0_GgLgwTFTMe77LF6ty",productId:"PROD-5FW05677G4694561D"}},secretEnvVars:{stripe:"STRIPE_SECRET_KEY_CA",paypal:"PAYPAL_SECRET_CA"}},my:{stripe:{test:{productId:"prod_IbutH3gvWwPLpY",publishableKey:"pk_test_51HvvOjKGWlrLMmbSGorg1CLiKIpWk3m1ln9nvlbT3HkqPABS3liQCEMYH6yin8ur30EK3gnHdkOlKXIKJyfelqlU006mHLXWMh"},prod:{productId:"prod_IbsiN6UibYNg72",publishableKey:"pk_live_51HvvOjKGWlrLMmbSqLHSFjxl2xjnT1YLLj3eWRJzjQQh8tTpDTwnjvJAXK50G8lradgI8Nc3DNpE5MaZcljitxn700n99MJN0W"}},paypal:{test:{merchantAccount:"[email protected]",clientId:"AVsNW1Y-rDYNVu_4URxnYYwEbf1SpWoO94Pdf3VM9e5qLFl5sLoHeqPmhwSOmMgHw-hBUfDTfzPE5cur",productId:"PROD-85A224492A966713B"},prod:{merchantAccount:"[email protected]",clientId:"AeuGZxAsCe-IUCwEYM1iEbtxhYEZlkRNnHI29YIonnmS-_1MtvqhNfYwlWwopGrs3zVZyvXQAIxqDW3P",productId:"PROD-0R7439615Y4183442"}},secretEnvVars:{stripe:"STRIPE_SECRET_KEY_MY",paypal:"PAYPAL_SECRET_MY"}},endowment:{stripe:{test:{productId:"prod_J31luMoNIbcqpM",publishableKey:"pk_test_PcQJBaIcgefrPcweNUqqm29000jc8UoilJ"},prod:{productId:"prod_J3GX8X199dcquB",publishableKey:"pk_live_QaFCaSdsV8l3SP4M3g7f8lTb00iGH8G1Tf"}},paypal:{test:{merchantAccount:"[email protected]",clientId:"AXxHh_Q0g0SHtH0ienBMbr5urV8fNQHqiMVV_Zph-T46BR8b_JoiqD6Sdh1Iz6ugQ5nWQ2jeBekeHX_4",productId:"PROD-6WD59153JX620524V"},prod:{merchantAccount:"[email protected]",clientId:"AZOQmhHqFyNYZWvnoQSgZ2ccbJOWfG17_mcuTrA3YCBfT
53k3VfrJ0WbVUt3rsUdAqwH9u_mGNpVwU37hc",productId:"PROD-3XT0256463909743G"}},secretEnvVars:{stripe:"STRIPE_SECRET_KEY_ED",paypal:"PAYPAL_SECRET_ED"}},ca_ed:{stripe:{test:{productId:"prod_R0PLE9FZZHmtX9",publishableKey:"pk_test_51Q8AxNF1zMZ5HsICjCpT5wXEzjvxLsaGW59JPPaqTbSzo9c7dqGoOJZPBo1urqfoZjGsmmvQXnpSerhZWF9HpZzC00HGLQyG89"},prod:{productId:"prod_R2o8WdShpsdkju",publishableKey:"pk_live_51Q8AxNF1zMZ5HsICUKH8lPqekkbuCIVyp75p2gXDZvryaotvaAL5YsNtHtevEuWAxQLeZKfhvM6PeWXbE1STiOTh00W2JaGqk9"}},paypal:{test:{merchantAccount:"[email protected]",clientId:"AXxHh_Q0g0SHtH0ienBMbr5urV8fNQHqiMVV_Zph-T46BR8b_JoiqD6Sdh1Iz6ugQ5nWQ2jeBekeHX_4",productId:"PROD-6WD59153JX620524V"},prod:{merchantAccount:"[email protected]",clientId:"Ad4WUseew92m96XEI1EMe1gbAn8qMGxx9KyB5xnEPVWGjq0mLorqRqJy0Z46kkjkbTEyVrul1Xa544V7",productId:"PROD-2ML91519KF767204R"}},secretEnvVars:{stripe:"STRIPE_SECRET_KEY_CA_ED",paypal:"PAYPAL_SECRET_CA_ED"}},uk:{stripe:{test:{productId:"prod_TrjUKnGtMiQSXZ",publishableKey:"pk_test_51Sp8iaDCn53uRkpK6WLTAursvl07jfXrVjMAshhtmF2mAwdMjXR9g6BrqZ7K3biE5srIgXieFj0pXhHur0g4oSYF00AoCOi8gp"},prod:{productId:"prod_Trmkzu7QBzrLfR",publishableKey:"pk_live_51Sp8iRRUNgYRe12voC26bRKjJKwMKtfcU8uJPMggEJb5S3N3tPonxevgULucPBDwdVjnLCYI88DqwS10115qW3wW00fQvHJqSJ"}},paypal:{test:{merchantAccount:"[email protected]",clientId:"AXxHh_Q0g0SHtH0ienBMbr5urV8fNQHqiMVV_Zph-T46BR8b_JoiqD6Sdh1Iz6ugQ5nWQ2jeBekeHX_4",productId:"PROD-6WD59153JX620524V"},prod:{merchantAccount:"",clientId:"",productId:""}},secretEnvVars:{stripe:"STRIPE_SECRET_KEY_UK",paypal:"PAYPAL_SECRET_UK"}}};function o(e){return Object.keys(l).reduce((t,a)=>(t[a]=e(l[a]),t),{})}let c=o(e=>({test:e.stripe.test.productId,live:e.stripe.prod.productId})),d=o(e=>({test:e.stripe.test.publishableKey,live:e.stripe.prod.publishableKey}));o(e=>({test:r.env[`${e.secretEnvVars.stripe}_TEST`]||r.env[e.secretEnvVars.stripe]||"",live:r.env[e.secretEnvVars.stripe]||""}));let h=o(e=>{var t;return s(s({},(t=e.paypal,t.prod)),{},{secret:r.env[e.secretEnvVars.paypal]||""})});function u(e){var t,a;arguments.length>1&&void 0!==arguments[1]&&arguments[1];let i=h[e];if(!i)return!1;let r=(null==(t=i.clientId)?void 0:t.trim().length)>0,n=(null==(a=i.productId)?void 0:a.trim().length)>0;return r&&n&&!0}function m(e){if(!u(e,!1)){let t={uk:"us",endowment:"us",ca_ed:"ca"}[e];if(t){if(!u(t,!1))throw Error(`PayPal account "${e}" not configured and fallback account "${t}" is also not configured. Missing: clientId or productId (client-side).`);return{actualAccount:t,isFallback:!0}}throw Error(`PayPal account "${e}" is not fully configured. Missing: clientId or productId (client-side).`)}return{actualAccount:e,isFallback:!1}}},77572:(e,t,a)=>{"use strict";a.d(t,{S:()=>o,l:()=>l});var i=a(57002);let r=["editor-in-chief","editorial-assistant","associate-editor","manuscript-editor","director-of-content-strategy","advisor","advisor-editor-in-chief","product-manager"],n=e=>["product-manager","manuscript-editor","advisor","advisor-editor-in-chief","associate-editor","editorial-assistant"].includes(e.slug)?1:-1,s=e=>"advisor"===e.slug?-1:1,l=(e,t)=>{let a=(null==t?void 0:t.slug)==="editorial-review-board";return e.filter(a?e=>e&&r.includes(e.slug):()=>!0).sort(n).sort(s).map(e=>e.name).join(", ").replace("&","&")},o=(e,t)=>{let a=null==e?void 0:e.filter(Boolean);return a?a.map(e=>{var a,r,n,s;return(null!=(a=e.country)&&a.includes(t)||null!=(r=e.country)&&r.includes(i.TP.US))&&(e.showLink=!0),e.countryOverrides&&Object.keys(e.countryOverrides).includes(t)&&(e.designation=(null==(n=e.countryOverrides[t])?void 0:n.designation)||e.designation,e.department=(null==(s=e.countryOverrides[t])?void 0:s.department)||e.department),e}).filter(e=>e):[]}},79955:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});let i=(0,a(14232).createContext)(null)},80352:(e,t,a)=>{"use strict";a.d(t,{Og:()=>r,at:()=>i,gN:()=>n});let i="24697",r="anonymous-guest-contributor",n="Anonymous Guest Contributor"},80620:(e,t,a)=>{"use strict";a.d(t,{P2:()=>c,ct:()=>d,jZ:()=>o});var i=a(66284),r=a(24519),n=a.n(r);function s(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,i)}return a}function l(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};
53t%2?s(Object(a),!0).forEach(function(t){(0,i.A)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):s(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}let o=e=>(e||[]).filter(Boolean).map(e=>l(l({},e),{},{name:n().decode(e.name||"")})),c=(e,t)=>e>=t-1?"":e===t-2?t>2?", and ":" and ":", ",d=(e,t)=>({placement:e,author_slug:t})},80738:(e,t,a)=>{"use strict";a.d(t,{$v:()=>i,QV:()=>n,ih:()=>r,md:()=>o,rR:()=>s,rX:()=>l,wN:()=>c});let i="https://share.hsforms.com/1OqV5qzihTGmDFX7UuNYJ3A2t10a",r=[{title:"Sincerity",excerpt:"The primary intention for our work is to gain the pleasure of Allah.",image:"https://cdn.yaqeeninstitute.org/wp-content/uploads/2025/03/careers_sincerity_new.svg"},{title:"Excellence",excerpt:"We conduct our work with accuracy, efficiency, and to the best of our capabilities.",image:"https://cdn.yaqeeninstitute.org/wp-content/uploads/2025/03/careers_excellence.svg"},{title:"Compassion",excerpt:"We treat each other with mercy and assume the best in every situation.",image:"https://cdn.yaqeeninstitute.org/wp-content/uploads/2025/03/careers_compassion.svg"},{title:"Trust",excerpt:"We are reliable in our skills and honest in our speech.",image:"https://cdn.yaqeeninstitute.org/wp-content/uploads/2025/03/careers_trust.svg"},{title:"Steadfastness",excerpt:"We stand firm in our mission, acting with consistency and purpose.",image:"https://cdn.yaqeeninstitute.org/wp-content/uploads/2025/03/careers_steadfastness.svg"},{title:"Collaboration",excerpt:"We work together and rely on each otherâs strengths to meet our common goals.",image:"https://cdn.yaqeeninstitute.org/wp-content/uploads/2025/03/careers_collaboration.svg"}],n=[{title:"Growth",excerpt:"Inhabit a space that encourages continuous learning and personal development as a professional and a believer."},{title:"Collaboration",excerpt:"Work with cross-functional teams and scholars across the world."},{title:"Impact",excerpt:"Change lives and create a lasting legacy by growing faith in peoplesâ hearts."},{title:"Connection",excerpt:"Build brotherhood and sisterhood with talented teammates who share their expertise in pursuit of a greater mission."},{title:"Alignment",excerpt:"Thrive in a workplace where your <i>deen</i> and <i>dunya</i> go hand in hand."},{title:"Professionalism",excerpt:"Know that youâre in a place that operates with a high degree of integrity and organization."}],s=[{image:"https://i.yaqeeninstitute.org/?src=2019%2F01%2FHana-Alharastani-scaled-e1729682602183-1024x1024.jpeg&w=1920&q=70",author:"Hana Alharastani",role:"Creative Copywriter",excerpt:"âYaqeen is a place where I can take part in creative, innovative projects and grow professionally without compromising my Islamic values. What I love most about working here is the opportunity to collaborate with a skilled team of Muslims on products that help so many people globally feel more connected to their faith.â"},{image:"https://i.yaqeeninstitute.org/?src=2020%2F01%2FDr.-Osman-Umarji-scaled-e1697240147334-1024x1024.jpeg&w=1920&q=70",author:"Dr. Osman Umarji",role:"Director of Survey Research and Evaluation, Co-Director of Psychospirituality Department",excerpt:"âI love working at Yaqeen for so many reasons. I am incredibly fortunate and blessed to spend my time working on cutting edge research that benefits the Muslim <i>ummah</i>. However, what makes working at Yaqeen even more special is to work alongside other passionate Muslims who share my values and whom I can be my authentic self around.â"},{image:"https://i.yaqeeninstitute.org/?src=2020%2F04%2FSaarahHeadshot-e1729683630161-1024x1024.jpeg&w=1920&q=70",author:"Saarah Khan",role:"Graphic & Set Designer",excerpt:`âOne of the most enjoyable things about working for Yaqeen is the amazing people here. Everyone gives this job their all and the <i>ihsaan</i> really shows in their work. If anyone is ever struggling with an assignment, there's an entire team ready to jump in and help you with it. Alhamdulillah blessed to work alongside some of the kindest, funniest, most talented people I've ever met.â`}],l=["https://i.yaqeeninstitute.org/?src=2022/02/carousel_career_2.jpeg","https://i.yaqeeninstitute.org/?src=2022/02/carousel_career_3.jpeg","https://i.yaqeeninstitute.org/?src=2022/02/carousel_career_5.jpeg","https://i.yaqeeninstitute.org/?src=2022/02/carousel_career_7.jpeg","https://i.yaqeeninstitute.org/?src=2022/02/carousel_career_10.jpeg","https://i.yaqeeninstitute.org/?src=2022/02/carousel_career_11.jpeg","https://i.yaqeeninstitute.org/?src=2022/02/carousel_career_14.jpeg"],o=[{title:"Healthcare",excerpt:"We offer medical, vision, and dental insurance.",image:"https://cdn.yaqeeninstitute.org/wp-content/uploads/2025/03/careers_healthcare.svg"},{title:"Remote opportunities",excerpt:"Yaqeen provides global employees with remote-work flexibility.",image:"https://cdn.yaqeeninstitute.org/wp-content/uploads/2025/03/careers_remote.svg"},{title:"Paid holidays",excerpt:"Take paid holidays off, with Islamic holidays included.",image:"https://cdn.yaqeeninstitute.org/wp-content/uploads/2025/03/careers_holidays.svg"},{title:"<i>Tarbiyah</i> sessions",excerpt:"Invest in your Islamic development by attending scholar-led <i>tarbiyah</i> sessions.",image:"https://cdn.yaqeeninstitute.org/wp-content/uploads/2025/03/careers_tarbiya.svg"},{title:"Annual retreats",excerpt:"Connect with your teammates at our yearly Dallas retreat.",image:"https://cdn.yaqeeninstitute.org/wp-content/uploads/2025/03/careers_retreat.svg"},{title:"Parental leave",excerpt:"Take the time off you need when a new family member arrives.",image:"https://cdn.yaqeeninstitute.org/wp-content/uploads/2025/03/careers_parentalLeave.svg"}],c="https://docs.google.com/forms/d/e/1FAIpQLSexc6V4e6j2zvDiWHHW4Bqv4pJGnMHJ1NI46kzoNZlk7Yebzg/viewform?usp=sharing"},81475:(e,t,a)=>{"use strict";a.d(t,{CE:()=>f,P7:()=>O,Z1:()=>T,ad:()=>E,tF:()=>P,zw:()=>k}
53);var i=a(66284),r=a(74382),n=a.n(r),s=a(24519),l=a.n(s),o=a(57002),c=a(35744),d=a(57279),h=a(99990),u=a(61300);function m(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,i)}return a}function p(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?m(Object(a),!0).forEach(function(t){(0,i.A)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):m(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}let g=e=>{if(e.tags)return e.tags;if(!e._embedded)return[];let t=(e._embedded["wp:term"]||[]).map(e=>e.map(e=>({id:e.id,name:e.name,type:e.taxonomy,slug:e.slug})));return(0,c.Bq)(t)},f=e=>{var t,a,i;if(!(null!=e&&null!=(t=e._embedded)&&t["wp:featuredmedia"])&&!(null!=e&&e.better_featured_image))return null;let r=(null==e?void 0:e.better_featured_image)||(null==e||null==(a=e._embedded)?void 0:a["wp:featuredmedia"][0])||null;return null!=r&&r.code?null:null!=r&&r.id?{id:r.id,source:(0,u.vu)(r.source_url),title:(null==r||null==(i=r.title)?void 0:i.rendered)||(null==r?void 0:r.caption),width:r.media_details.width,height:r.media_details.height,sizes:Object.assign({},...Object.keys(r.media_details.sizes).filter(e=>["thumbnail","medium","medium_large","large","gridlove-cover"].includes(e)).map(e=>({[e]:p(p({},r.media_details.sizes[e]),{},{source_url:(0,u.vu)(r.media_details.sizes[e].source_url)})})))}:null},x=(e,t,a)=>{let i=n(),r=n().parseHTML(e,null,!1),s=[];return i(r).filter(t).map((e,a)=>{var r,n,l,o,c;let d=[i(a).html().trim()],h=a.nextSibling,u=(null==(r=i.html(h))?void 0:r.trim())||"";for(;h&&![t].includes(h.tagName);){if((null==(n=i(h).html())?void 0:n.length)>0)if(d.length>1&&["i","b","em","strong","sup"].includes(h.tagName)){u=i.html(h)||"";let e=(null==(o=i.html(h.nextSibling))?void 0:o.trim())||"";if(null!=(c=h.prev)&&null!=(c=c.data)&&c.includes("\n\n")&&(u=`<br/><br/>${u}`),d.push(d.pop()+u+e),!(h=h.nextSibling))break}else d.push(u);h=h.nextSibling,u=(null==(l=i.html(h))?void 0:l.trim())||""}s.push(d)}),s},y=e=>{if(!e)return"";let t=e;for(let{regex:e,replacement:a}of[{regex:/<!-- wp:shortcode -->\n\[pillar url="(.*?)" title="(.*?)" description="(.*?)"]\n<!-- \/wp:shortcode -->/g,replacement:'<pillar url="$1" title="$2" description="$3" > </pillar>'},{regex:/\[mks_[^\]]*\]\s*/g,replacement:""}])t=t.replace(e,a);return t},b=["In the name of Allah, the Most Merciful, the Grantor of Mercy. Prelude","In the name of Allah, the Most Merciful, the Grantor of Mercy.","In the name of Allah, the Most Merciful, the Grantor of Mercy","In the name of Allah, Most Compassionate, Most Merciful","In the name of Allah, the Gracious, the Merciful","Bismillah-ir-rahman-ir-rahim[1] Abstract","Introduction[1]","Introduction","Preface","Abstract","Prelude","Note","I. "],v=e=>{if(!e)return"";let t=e.replace(/ /g," ").trim();for(let e of b)if(t.startsWith(e)){t=t.slice(e.length).trim();break}if((t=t.replace(/\[\d+\]/g,"").replace(/\s{2,}/g," ").trim()).length>300){let e=t.slice(0,300),a=e.lastIndexOf(" ");t=(a>0?e.slice(0,a):e)+"..."}return t},w=(e,t)=>{if(e.content_type){let t=e.content_type.filter(e=>0===e.parent).pop();t&&(e.type=t.slug)}if("post"===e.type){let a=t.filter(e=>"category"===e.type),i=t.filter(e=>"post_tag"===e.type);if(a.findIndex(e=>"infographics"===e.name.toLowerCase())>=0||i.findIndex(e=>"infographics"===e.name.toLowerCase())>=0)return o.xj.Infographic;if(a.findIndex(e=>"publication"===e.name.toLowerCase())>=0||i.findIndex(e=>"publication"===e.name.toLowerCase())>=0)return o.xj.Publication;if((null==e?void 0:e.format)==="video")return o.xj.Video}else if("series"===e.type)return o.xj.Series;else if("video"===e.type)return o.xj.Video;else if("infographic"===e.type)return o.xj.Infographic;else if("paper"===e.type)return o.xj.Paper;else if("blog"===e.type)return o.xj.Blog;else if("news"===e.type)return o.xj.News;else if("events"===e.type)return o.xj.Events;else if("talk-toolkit"===e.type)return o.xj.TalkToolkit;else if("turkish"===e.type)return o.xj.Turkish;else if("malay"===e.type)return o.xj.Malay;else if("arabic"===e.type)return o.xj.Arabic;else if("translation"===e.type)return o.xj.Translation;else if("publication"===e.type)return o.xj.Publication;else if("collection"===e.type)return o.xj.Collection;else if("audio"===e.type)return o.xj.Audio;return o.xj.Other},j=e=>Object.values(o.nz).includes(e)?e:o.nz.Unknown,k=e=>{var t,a,i,r,n,s,l;return{mobileHorizontal:(null==e||null==(t=e.images)?void 0:t["image-mobile-horizontal"])||null,mobileSquare:(null==e||null==(a=e.images)?void 0:a["image-mobile-square"])||null,mobileVertical:(null==e||null==(i=e.images)?void 0:i["image-mobile-vertical"])||null,desktopHorizontal:(null==e||null==(r=e.images)?void 0:r["image-horizontal"])||null,desktopSquare:(null==e||null==(n=e.images)?void 0:n["image-square"])||null,desktopVertical:(null==e||null==(s=e.images)?void 0:s["image-vertical"])||null,desktopPost:(null==e||null==(l=e.images)?void 0:l["image-hero"])||null}},N=e=>{if(!e)return null;let t=(null==e?void 0:e.type)??(null==e?void 0:e["@type"])??null,a=(null==e?void 0:e.name)??(null==e?void 0:e.title)??(null==e?void 0:e.label)??(null==e?void 0:e.reference_name)??null,i=(null==e?void 0:e.url)??(null==e?void 0:e.link)??(null==e?void 0:e.reference_url)??null,r={};return t&&(r.type=t),a&&(r.name=a),i&&(r.url=i),Object.keys(r).length?r:null},_=e=>{if(!Array.isArray(e))return null;let t=e.map(e=>(e=>{if(!e)return null;let t=(null==e?void 0:e.type)??(null==e?void 0:e["@type"])??null,a=(null==e?void 0:e.name)??(null==e?void 0:e.title)??(null==e?void 0:e.label)??null,i=(null==e?void 0:e.url)??(null==e?void 0:e.link)??null,r={};return t&&(r.type=t),a&&(r.name=a),i&&(r.url=i),Object.keys(r).length?r:null}
53)(e)).filter(Boolean);return t.length?t:null},S=[o.xj.Paper,o.xj.Publication,o.xj.Translation],A=e=>{let t=(null==e?void 0:e.content_type)||(null==e?void 0:e.contentType)||[];return t.forEach(e=>e.name=l().decode(e.name)),t},C=e=>{let t=(null==e?void 0:e.topic)||[];return t.forEach(e=>e.name=l().decode(e.name)),t},P=e=>{var t,a,i;if(!e)return null;let r=(null==(t=e.url)||null==(t=t.split("/"))?void 0:t.pop())||"";if(!e.url||!r)return null;let n=g(e),s=(null==(a=e.authors)?void 0:a.length)>0?e.authors:null,{thumbnail:o,thumbnailVert:c}=e,d=w(e,n),h=C(e),u=A(e);return{id:parseInt((null==(i=e.distinct_key)||null==(i=i.split("#"))?void 0:i.pop())||"0"),date:e.date,title:l().decode(e.title||""),slug:r,excerpt:v(y(e.excerpt||"").replace(/<\/?p>/g,"")),authors:s,type:d,tags:n,topic:h,contentType:u,thumbnail:o,thumbnailVert:c,contentTypes:e.contentTypes,url:e.url}},T=e=>{var t,a,i,r,n,s,o;if(!e)return null;let c=g(e),d=(null==(t=e.authors)?void 0:t.length)>0?e.authors:null,h=f(e),u=(null==h||null==(a=h.sizes)||null==(a=a.large)?void 0:a.source_url)||(null==h||null==(i=h.sizes)||null==(i=i.medium_large)?void 0:i.source_url)||(null==h||null==(r=h.sizes)||null==(r=r.medium)?void 0:r.source_url)||(null==h||null==(n=h.sizes)||null==(n=n.thumbnail)?void 0:n.source_url)||null,m=k(e),p=w(e,c),x=C(e),b=A(e),N=j(e.status);return{id:e.id,date:e.date_gmt,title:l().decode((null==(s=e.title)?void 0:s.rendered)||""),slug:e.slug,featured:(null==e?void 0:e.featured)||e.sticky||!1,featured_image:(null==h?void 0:h.source)||null,media:h,images:m,excerpt:v(y((null==(o=e.excerpt)?void 0:o.rendered)||"").replace(/<\/?p>/g,"")),authors:d,tags:c,type:p,topic:x,contentType:b,status:N,thumbnail:u,readTime:e.read_time??null}},O=e=>{var t;if(!e)return null;let a=T(e);return a?(!a.thumbnail&&e.thumbnail&&(a.thumbnail=e.thumbnail),!a.featured_image&&e.thumbnail&&(a.featured_image=e.thumbnail),p(p({},a),{},{contentTypes:{lvl0:(null==(t=a.contentType)||null==(t=t.find(e=>0===e.parent))?void 0:t.name)||""},seo:e.seo||null})):null},E=e=>{var t,a,i,r,s,u,m,b;let P;if(!e)return null;let T=g(e),O=(null==(t=e.authors)?void 0:t.length)>0?e.authors:null,E=f(e),I=(null==E||null==(a=E.sizes)||null==(a=a.large)?void 0:a.source_url)||(null==E||null==(i=E.sizes)||null==(i=i.medium_large)?void 0:i.source_url)||(null==E||null==(r=E.sizes)||null==(r=r.medium)?void 0:r.source_url)||(null==E||null==(s=E.sizes)||null==(s=s.thumbnail)?void 0:s.source_url)||null,D=k(e),q=w(e,T),M=C(e),$=A(e),H=j(e.status),R=(null==e||null==(u=e.series)?void 0:u[0])||null,z=(null==e?void 0:e.series_items)||[],F=(e=>Array.isArray(e.related_items)?e.related_items.map(e=>(e.item.type=(0,h.rI)(e.item.type),e.item)):[])(e),Y=e.seo,L=(e=>{var t,a,i,r,n,s,l,o,c,d,h,u,m,p,g,f,x,y,b,v,w,j,k;return{paperAudio:(null==e||null==(t=e.acf)?void 0:t.paper_audio)||null,islamicFigures:(null==e||null==(a=e.acf)?void 0:a.islamic_figures)||null,keyTakeaways:(null==e||null==(i=e.acf)||null==(i=i.key_takeaways)?void 0:i.map(e=>null==e?void 0:e.key_takeaway).filter(Boolean))||null,abstract:(null==e||null==(r=e.acf)?void 0:r.abstract)||null,keywords:Array.isArray(null==e||null==(n=e.acf)?void 0:n.keywords)?(null==(s=e.acf.keywords)?void 0:s.map(e=>"string"==typeof e?e.trim():e).filter(Boolean))||null:(null==e||null==(l=e.acf)||null==(l=l.keywords)||null==(o=l.split)?void 0:o.call(l,",").map(e=>e.trim()).filter(Boolean))||null,citations:(e=>{if(!Array.isArray(e))return null;let t=e.map(e=>"string"==typeof e?e:N(e)).filter(Boolean);return t.length?t:null})(null==e||null==(c=e.acf)?void 0:c.citations)||null,isBasedOn:(e=>{if(!Array.isArray(e))return null;let t=e.map(e=>N(e)).filter(Boolean);return t.length?t:null})(null==e||null==(d=e.acf)?void 0:d.is_based_on)||null,mentions:(e=>{if(!Array.isArray(e))return null;let t=e.map(e=>(e=>{if(!e)return null;let t=(null==e?void 0:e.type)??(null==e?void 0:e["@type"])??null,a=(null==e?void 0:e.name)??(null==e?void 0:e.title)??(null==e?void 0:e.label)??null,i=(null==e?void 0:e.additionalType)??(null==e?void 0:e.additional_type)??null,r=(null==e?void 0:e.url)??(null==e?void 0:e.link)??null,
53n={};return t&&(n.type=t),a&&(n.name=a),i&&(n.additionalType=i),r&&(n.url=r),Object.keys(n).length?n:null})(e)).filter(Boolean);return t.length?t:null})(null==e||null==(h=e.acf)?void 0:h.mentions)||null,about:(e=>{if(!Array.isArray(e))return null;let t=e.map(e=>(e=>{if(!e)return null;let t=(null==e?void 0:e.type)??(null==e?void 0:e["@type"])??null,a=(null==e?void 0:e.name)??(null==e?void 0:e.term)??(null==e?void 0:e.title)??(null==e?void 0:e.label)??null,i=(null==e?void 0:e.termCode)??(null==e?void 0:e.term_code)??null,r={};return t&&(r.type=t),a&&(r.name=a),i&&(r.termCode=i),Object.keys(r).length?r:null})(e)).filter(Boolean);return t.length?t:null})(null==e||null==(u=e.acf)?void 0:u.about)||null,temporalCoverage:(null==e||null==(m=e.acf)?void 0:m.temporal_coverage)||null,spatialCoverage:(e=>{if(!e)return null;let t=(null==e?void 0:e.type)??(null==e?void 0:e["@type"])??null,a=(null==e?void 0:e.name)??(null==e?void 0:e.label)??(null==e?void 0:e.title)??null;return t||a?{type:t||null,name:a||null}:null})(null==e||null==(p=e.acf)?void 0:p.spatial_coverage)||null,variableMeasured:(null==e||null==(g=e.acf)?void 0:g.variable_measured)||null,measurementTechnique:(null==e||null==(f=e.acf)?void 0:f.measurement_technique)||null,audience:(e=>{if(!e)return null;let t=(null==e?void 0:e.type)??(null==e?void 0:e["@type"])??null,a=(null==e?void 0:e.audienceType)??(null==e?void 0:e.audience_type)??null;return("string"==typeof a&&(a=a.split(",").map(e=>e.trim()).filter(Boolean)),Array.isArray(a)&&(a=a.filter(Boolean)),!t&&(!a||Array.isArray(a)&&!a.length))?null:{type:t||null,audienceType:a||null}})(null==e||null==(x=e.acf)?void 0:x.audience)||null,funder:_(null==e||null==(y=e.acf)?void 0:y.funder)||null,sponsor:_(null==e||null==(b=e.acf)?void 0:b.sponsor)||null,license:(null==e||null==(v=e.acf)?void 0:v.license)||null,isPartOf:(e=>{if(!e)return null;let t=(null==e?void 0:e.type)??(null==e?void 0:e["@type"])??null,a=(null==e?void 0:e.name)??(null==e?void 0:e.title)??(null==e?void 0:e.label)??null,i=(null==e?void 0:e.url)??(null==e?void 0:e.link)??null,r=(null==e?void 0:e.identifier)??(null==e?void 0:e.id)??(null==e?void 0:e.slug)??null;return t||a||i||r?{type:t||null,name:a||null,url:i||null,identifier:r||null}:null})(null==e||null==(w=e.acf)?void 0:w.is_part_of)||null,faqs:(e=>{if(!Array.isArray(e))return null;let t=e.map(e=>(e=>{if(!e)return null;let t=(null==e?void 0:e.question)??(null==e?void 0:e.q)??(null==e?void 0:e.title)??null,a=(null==e?void 0:e.answer)??(null==e?void 0:e.a)??(null==e?void 0:e.body)??null;return t||a?{question:t,answer:a}:null})(e)).filter(Boolean);return t.length?t:null})(null==e||null==(j=e.acf)?void 0:j.faqs)||null,digitalObjectIdentifier:(null==e||null==(k=e.acf)?void 0:k.digital_object_identifier)||null}})(e),B=S.includes(q)?(e=>{var t;let a=null==e||null==(t=e.acf)?void 0:t.summary;return null!=a&&a.enabled&&"string"==typeof(null==a?void 0:a.summary)&&a.summary.trim().length>0?a.summary:void 0})(e):void 0;P=q===o.xj.Infographic?(e=>{if(!e.content)return[""];let t=e.content.raw,a=n(),i=a.parseHTML(t,null,!1),r=e=>{var t;return"img"===e.name?a.html(e):(0,c.Bq)((null==(t=e.children)?void 0:t.map(r))||[])};return(0,c.Bq)(i.map(r))})(e):q===o.xj.Video?(e=>{if(!e.content)return[];let t=e.content.rendered.indexOf("</h1>")>0?"h1":"h2";return x(`<${t}></${t}>${y(e.content.rendered)}`,t).map(e=>e.filter(Boolean))})(e):(e=>{var t;if(!e.content)return[];let a=null==(t=e.content.raw??e.content.rendered)?void 0:t.replace(/file:\/\/\/[^#"]*/g,""),i=a.indexOf("</h1>")>0?"h1":"h2",r=x(`<${i}></${i}>${y(a)}`,i,e.id),n=A(e);return 0!==n.length&&"Paper"==n[0].name?(e=>{let t=[{position:e.length<=1?e.length:2,el:"<subscribe-cta> </subscribe-cta>"}];return t.forEach(a=>{let{position:i,el:r}=a;i>=0&&i<=e.length&&(e.splice(i,0,["",r]),t.forEach(e=>{e.position>=i&&e.position++}))}),e=e.filter(e=>e.length>0)})(r):r})(e);let U=null!=e&&e.changelog?e.changelog.map(e=>p(p({},e),{},{date:(0,d.UG)(e.date)})):null,W=null!=e&&e.archive?p(p({},e.archive),{},{date:(0,d.UG)(e.archive.date)}):null;return p(p({content:P,id:e.id,date:e.date_gmt,modified_at:e.modified?e.modified_gmt:null,title:l().decode((null==(m=e.title)?void 0:m.rendered)||""),slug:e.slug,featured:(null==e?void 0:e.featured)||e.sticky||!1,featured_image:null!=e&&e.featuredMedia?null==E?void 0:E.source:null,media:E,images:D,excerpt:v(y((null==(b=e.excerpt)?void 0:b.rendered)||"")),authors:O,tags:T,related:F,type:q,topic:M,contentType:$,status:H,thumbnail:I,seriesId:R,series:z,videoUrl:q===o.xj.Video&&e.video_url||null,seo:Y,changelog:U,archive:W,listen:e.listen||null,acf:L,readTime:e.read_time??null},B?{summary:B}:{}),{},{transcript_summary:e.transcript_summary||null,quiz:(()=>
53{if(!Array.isArray(e.quiz))return null;let t=e.quiz.filter(e=>!!e.id&&!!e.question&&("multichoice"===e.type?Array.isArray(e.options)&&e.options.length>0&&Array.isArray(e.answers)&&e.answers.length>0:"binary"===e.type&&"boolean"==typeof e.answer));return t.length>0?t:null})(),chapters:(()=>{if(!Array.isArray(e.chapters)||0===e.chapters.length)return null;let t=e.chapters.filter(e=>"number"==typeof e.start_time&&!isNaN(e.start_time)).sort((e,t)=>e.start_time-t.start_time);return t.length>0?t:null})(),key_points:Array.isArray(e.key_points)&&0!==e.key_points.length?e.key_points.filter(e=>"string"==typeof e&&e.trim().length>0):null,summary_reviewed:e.summary_reviewed??null,quiz_reviewed:e.quiz_reviewed??null})}},81984:(e,t,a)=>{"use strict";a.d(t,{a:()=>i});let i=[{term:"ḥaqq",gloss:"Our commitment to accuracy and truth."},{term:"iḥsÄn",gloss:"Our commitment to continuous improvement."},{term:"amÄna",gloss:"Our sense of responsibility to Allah, to our readership, and to our supporters."}]},82247:(e,t,a)=>{"use strict";a.d(t,{PX:()=>r,Xq:()=>n,zT:()=>i});let i=[{src:"research",title:"Research",image:"https://cdn.yaqeeninstitute.org/wp-content/uploads/2025/03/volunteer_research.svg"},{src:"marketing",title:"Marketing",image:"https://cdn.yaqeeninstitute.org/wp-content/uploads/2025/03/volunteer_marketing.svg"},{src:"partner_development",title:"Partner Development",image:"https://cdn.yaqeeninstitute.org/wp-content/uploads/2025/03/volunteer_partner_development.svg"},{src:"expanded_learning",title:"Curriculum",image:"https://cdn.yaqeeninstitute.org/wp-content/uploads/2025/03/volunteer_expanded_learning.svg"},{src:"engineering",title:"Engineering",image:"https://cdn.yaqeeninstitute.org/wp-content/uploads/2025/03/volunteer_engineering.svg"},{src:"development",title:"Development",image:"https://cdn.yaqeeninstitute.org/wp-content/uploads/2025/03/volunteer_development.svg"},{src:"creative",title:"Creative",image:"https://cdn.yaqeeninstitute.org/wp-content/uploads/2025/03/volunteer_creative.svg"},{src:"media",title:"Media",image:"https://cdn.yaqeeninstitute.org/wp-content/uploads/2025/03/volunteer_Media-1.svg"}],r=[{image:"https://cdn.yaqeeninstitute.org/wp-content/uploads/2025/03/volunteers_reward.svg",title:"Earn rewards",excerpt:"Participate in the barakah of helping people better understand and connect with Islam."},{image:"https://cdn.yaqeeninstitute.org/wp-content/uploads/2025/03/volunteers_skills.svg",title:"Gain new skills",excerpt:"Learn to edit, code, transcribe...there's a wide range of skills you can develop when you volunteer with us."},{image:"https://cdn.yaqeeninstitute.org/wp-content/uploads/2025/03/volunteers_mentor.svg",title:"Find mentors",excerpt:"Connect with scholars, researchers, and experts in a wide range of fields."},{image:"https://cdn.yaqeeninstitute.org/wp-content/uploads/2025/03/volunteers_know.svg",title:"Be in the know",excerpt:"Preview and assist with upcoming video series, papers, and other products before they're released."}],n=[{title:"Acting",form:"https://share.hsforms.com/1rPTiFyU9SxSEodzCD-Ckgw2t10a"},{title:"General",form:"https://docs.google.com/forms/d/1fMOJ-bkFPRYfh0gLoJRtmB1mxP_d5-9dHl6JcTQKF2U"},{title:"Marketing",form:"https://docs.google.com/forms/d/1YyR3HQIEjjisIXb1QC5Macuc6Fj3Oql8Im2Z8Jepq4Q"}]},82410:(e,t,a)=>{"use strict";a.d(t,{S:()=>d});var i=a(14232),r=a(89099),n=a(18012),s=a(77966),l=a(69174),o=a(28734),c=a(37876);let d=e=>{var t;let{config:a,showSticky:d,dismissed:h=!1,dismissalResolved:u=!0,onDismiss:m}=e,p=(0,o.HH)(),g=(0,s.sf)(),f=(0,r.useRouter)(),x=(0,i.useRef)(null),y=(0,i.useRef)(null),b=null==a||null==(t=a.events)?void 0:t.view,v=null==a?void 0:a.variant,w=f.asPath.split("?")[0].split("#")[0];if((0,i.useEffect)(()=>{if(!b||!u||y.current===w)return;let e=x.current;if(!e||"undefined"==typeof IntersectionObserver)return;let t=new IntersectionObserver(e=>{e.some(e=>e.isIntersecting)&&y.current!==w&&(y.current=w,(0,n.YN)(b,{variant:v}),t.disconnect())});return t.observe(e),()=>t.disconnect()},[b,v,u,w]),!a||!d||h)return null;let j=a.events,k=!!(a.dismissible&&m);return(0,c.jsxs)("div",{ref:x,className:`relative w-full sm:min-h-[48px] bg-yaqeen-primary-500 py-3 px-2 sm:py-2 sm:px-4 flex items-center justify-center ${a.hideOnDesktop?"lg:hidden":""}`,children:[(0,c.jsxs)("div",{className:`flex flex-col sm:flex-row items-center justify-center gap-1 ${k?"pr-12":""}`,children:[(0,c.jsx)("p",{className:"text-sm font-semibold text-white leading-5 text-center",children:a.body}),(0,c.jsx)(l.qh,{href:a.url,scroll:!1,onClick:()=>{j?(0,n.YN)(j.click,{variant:v,destination:a.url}):((0,n.$s)("home_sticky","click",`cta: ${a.cta}, device: ${p}`),g.capture("sticky_banner_clicked"))},className:"inline-flex items-center gap-1 whitespace-nowrap",children:(0,c.jsx)("span",{className:"text-sm font-bold text-white underline",children:a.cta})})]}
53),k&&(0,c.jsx)("button",{type:"button",onClick:()=>{var e;null==(e=x.current)||null==(e=e.closest("header"))||e.focus(),null==m||m()},"aria-label":"Dismiss banner",className:"absolute right-1 top-1/2 -translate-y-1/2 flex h-11 w-11 items-center justify-center text-white focus:outline-none focus-visible:ring-2 focus-visible:ring-white rounded-full",children:(0,c.jsx)("span",{"aria-hidden":"true",className:"text-lg font-bold leading-none",children:"\xd7"})})]})}},82611:(e,t,a)=>{"use strict";a.d(t,{A:()=>d});var i=a(66284),r=a(14232),n=a(45105),s=a.n(n),l=a(37876);function o(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,i)}return a}let c={baseUrl:"https://quran.com/embed/v1",scriptUrl:"https://quran.com/widget/embed-widget.js",defaultParams:{translations:"131",theme:"light",tafsir:"false",reflections:"false",lessons:"false",answers:"false"}},d=e=>{let{verses:t}=e,{0:a,1:n}=(0,r.useState)(!1);if((0,r.useEffect)(()=>{n(!0)},[]),!a)return null;let d=new URLSearchParams(function(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?o(Object(a),!0).forEach(function(t){(0,i.A)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):o(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}({verses:t},c.defaultParams)),h=`${c.baseUrl}?${d.toString()}`;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(s(),{id:"quran-embed-widget-script",src:c.scriptUrl,strategy:"lazyOnload"}),(0,l.jsx)("div",{className:"my-4 w-full",children:(0,l.jsx)("iframe",{src:h,width:"100%","data-quran-embed":"true",allow:"clipboard-write",style:{border:"none"},title:`Quran ${t}`,className:"min-h-[200px]"})})]})}},83858:(e,t,a)=>{"use strict";a.d(t,{A:()=>u});var i=a(54587),r=a.n(i),n=a(18125),s=a(17199),l=a(56409),o=a(69174),c=a(86400),d=a(58508),h=a(37876);let u=e=>{let{resources:t,unit:a}=e,{handleDownload:i}=(0,d.A)();return(0,h.jsx)(h.Fragment,{children:t&&t.sort((e,t)=>e.order-t.order).map(e=>{let{name:t,url:d,type:u,thumbnail:m,order:p}=e;return(0,h.jsxs)("div",{className:"flex flex-col items-start justify-start bg-grey-50 w-full rounded-lg box-border border border-grey-200",children:[(0,h.jsx)("div",{className:"hidden lg:block relative h-[384px] w-full",children:(0,h.jsx)(r(),{src:m,loader:c.R2,alt:t,className:"rounded-t-lg object-right-top",layout:"fill"})}),(0,h.jsx)("div",{className:"block lg:hidden relative h-[92px] w-full",children:(0,h.jsx)(r(),{src:m,loader:c.R2,alt:t,className:"rounded-t-lg object-cover w-full",layout:"fill",sizes:"100vw"})}),(0,h.jsx)("div",{className:"flex flex-col grow items-start justify-start gap-6 h-[52px] lg:h-[60px] w-full py-2 px-3 lg:py-3 lg:px-4 box-border border-t border-grey-200",children:(0,h.jsxs)("div",{className:"flex flex-row items-center justify-between w-full gap-2",children:[(0,h.jsx)(o.EY,{as:"div",color:"text-grey-900",weight:"font-semibold",fontSize:"text-sm lg:text-lg",lineHeight:"lg:leading-7 leading-5",className:"flex-1 -tracking-[0.012em] whitespace-normal",children:(0,s.Ay)(t)}),u===l.vt.PDF&&(0,h.jsx)("div",{id:"resources-download",className:"flex-shrink-0",children:(0,h.jsx)(o.$n,{"aria-label":"Download all resources",className:"flex justify-center items-center h-[36px] w-[36px] bg-white hover:bg-grey-100 rounded border border-gray-200 p-2",onPress:()=>{i({type:l.X2.DownloadResource,resourceType:l.ES.LessonPlan,url:d,log:{category:"curriculum-unit",action:"download-resource",label:`item_name: ${a.name} - ${t}`},unit:a})},children:(0,h.jsx)(n.g,{icon:"download",className:"h-4 w-4 p-[2px]"})})}),u===l.vt.Video&&(0,h.jsx)("div",{id:"resources-watch",className:"flex-shrink-0",children:(0,h.jsxs)(o.$n,{"aria-label":`Watch ${t}`,className:"flex justify-center lg:space-x-2 items-center bg-white hover:bg-grey-100 rounded border border-grey-200 lg:px-4 lg:py-2 p-3",onPress:()=>{i({type:l.X2.WatchResource,resourceType:l.ES.LessonPlan,url:d,log:{category:"curriculum-unit",action:"watch-resource",label:`item_name: ${a.name} - ${t}`},unit:a})},children:[(0,h.jsx)(n.g,{icon:["far","play-circle"]}),(0,h.jsx)(o.EY,{as:"p",weight:"font-bold",className:"lg:block hidden",children:"Watch"})]})})]})})]},`resource-${p}`)})})}},84957:(e,t,a)=>{"use strict";a.d(t,{S:()=>g,K:()=>p});var i=a(14232),r=a(18125),n=a(69174),s=a(29431),l=a(66284);function o(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,i)}return a}function c(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};
53t%2?o(Object(a),!0).forEach(function(t){(0,l.A)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):o(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}let d=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:15;if(!(null!=e&&e.length))return[];let a=[c({},e[0])];for(let i=1;i<e.length;i++){let r=a[a.length-1],n=e[i];n.end-r.start<t?(r.end=n.end,r.text+=" "+n.text):a.push(c({},n))}return a},h=(e,t)=>{if(!e.length||t<0)return -1;let a=0,i=e.length-1;for(;a<=i;){let r=Math.floor((a+i)/2),n=e[r];if(t<n.start)i=r-1;else if(t>=n.end&&r<e.length-1)a=r+1;else{if(!(t>n.end))return n.id;a=r+1}}return i>=0&&i<e.length?e[i].id:-1};var u=a(37876);let m="Transcript is unavailable right now. Reload the page to try again.",p=(0,i.memo)(function(e){let{segment:t,onClick:a,highlight:i}=e,r=new Date(0);r.setSeconds(t.start);let s=t.start>=3600,l=r.toISOString().substring(s?11:14,19);return(0,u.jsxs)("div",{id:`segment-${t.id}`,"aria-current":i?"true":void 0,className:`p-4 rounded-xl transition-colors duration-300 ${i?"bg-endeavour-50":""}`,children:[(0,u.jsx)("a",{href:"#",onClick:e=>{e.preventDefault(),a&&a(t.start)},className:"float-left mr-2 px-1.5 rounded bg-[rgba(76,154,255,0.15)] text-[#155dfc] font-proxima-nova font-bold text-sm leading-6 hover:bg-[rgba(76,154,255,0.3)] transition-colors",children:l}),(0,u.jsx)(n.EY,{color:"text-[#1D293D]",fontFamily:"font-proxima-nova",fontSize:"text-sm",lineHeight:"leading-6",as:"span",children:t.text})]})}),g=e=>{let{videoId:t,player:a,postId:l,videoTitle:o,isVisible:c=!0,initialSegments:g}=e,f=!!(null!=g&&g.length),{0:x,1:y}=(0,i.useState)(()=>(g??[]).map(e=>e.text).join(" ")),{0:b,1:v}=(0,i.useState)(()=>f),{0:w,1:j}=(0,i.useState)(()=>g??[]),{0:k,1:N}=(0,i.useState)(-1),{0:_,1:S}=(0,i.useState)(!0),A=(0,i.useRef)(!1),C=(0,i.useRef)(),P=(0,i.useRef)(null),T=(0,i.useRef)(!1),O=(0,i.useRef)(!1),E=(0,i.useRef)(c),I=(0,i.useRef)(0),D=(0,i.useRef)([]),q=(0,i.useRef)(!1),M=(0,i.useRef)(0);(0,i.useEffect)(()=>{D.current=w},[w]),(0,i.useEffect)(()=>{E.current=c},[c]);let $=(0,i.useCallback)(e=>{let t=P.current,a=document.getElementById(`segment-${e}`);if(!a||!t)return;clearTimeout(C.current),A.current=!0;let i=a.getBoundingClientRect(),r=t.getBoundingClientRect(),n=t.clientHeight,s=a.clientHeight,l=i.top-r.top+t.scrollTop;t.scrollTo({top:l-n/2+s/2,behavior:"smooth"});let o=()=>{A.current=!1,t.removeEventListener("scrollend",c),clearTimeout(C.current)},c=()=>o();t.addEventListener("scrollend",c,{once:!0}),C.current=setTimeout(o,1e3)},[]),H=(0,i.useCallback)(e=>{try{if(a&&"function"==typeof a.seekTo&&"function"==typeof a.playVideo){a.seekTo(e,!0),a.playVideo();let t=h(D.current,e);t>=0&&N(t),S(!0)}}catch(e){console.error("Error seeking to time:",e)}},[a]);(0,i.useEffect)(()=>{g&&g.length>0?(j(g),v(!0),y(g.map(e=>e.text).join(" "))):(j([]),v(!1),y(""))},[g,t]),(0,i.useEffect)(()=>{let e,a=!1,i=0,r=async()=>{try{let n=await fetch(`https://webhooks.yaqeeninstitute.org/transcript/video/${t}`);if(a)return;if(404===n.status||202===n.status){e=setTimeout(r,9e4),x||y("Transcript is being generated. It could take several minutes and will be loaded once ready.");return}if(429===n.status){let a=(e=>{let t=Number(e);return!Number.isFinite(t)||t<=0?6e4:Math.min(Math.max(1e3*t,1e3),3e5)})(n.headers.get("retry-after"));if(i>=3){console.warn(`[TranscriptSection] Refused for ${t}: HTTP 429 from the transcript edge. Giving up after 3 retries.`),y(m);return}i+=1,console.warn(`[TranscriptSection] Refused for ${t}: HTTP 429 from the transcript edge. Retry ${i} of 3 in ${Math.round(a/1e3)}s.`),e=setTimeout(r,a),y("Transcript is taking longer than usual to load. Retrying shortly.");return}if(!n.ok){console.error(`[TranscriptSection] Transcript request for ${t} failed: HTTP ${n.status}`),y(m);return}let s=await n.json();if(a)return;y(s.text);let l=s.segments??[],o=d((e=>e.map((t,a)=>({id:"number"==typeof t.id?t.id:a,start:t.start,end:((e,t)=>"number"==typeof e.end?e.end:"number"==typeof(null==t?void 0:t.start)?t.start:e.start+5)(t,e[a+1]),text:t.text})))(l),15);j(o),v(l.length>0)}catch(e){console.error(e)}};return g&&g.length>0||r(),()=>{a=!0,clearTimeout(e),N(-1),O.current=!1,T.current=!1,cancelAnimationFrame(I.current),q.current=!1,M.current+=1,clearTimeout(C.current)}},[t,g]);let R=(0,i.useCallback)(()=>
53{if(O.current&&a){if(!E.current){I.current=requestAnimationFrame(R);return}if(!q.current){q.current=!0;let e=M.current;try{let t=a.getCurrentTime();if(t&&"function"==typeof t.then)return void t.then(e=>{let t=h(D.current,e);N(e=>e!==t?t:e)}).catch(()=>{}).finally(()=>{q.current=!1,O.current&&M.current===e&&(I.current=requestAnimationFrame(R))});{let e=h(D.current,t);N(t=>t!==e?e:t),q.current=!1}}catch{q.current=!1}}O.current&&(I.current=requestAnimationFrame(R))}},[a]);return(0,i.useEffect)(()=>{if(!a)return;let e=!0,t=()=>{cancelAnimationFrame(I.current),q.current=!1,M.current+=1,I.current=requestAnimationFrame(R)},i=e=>{1===e.data?(O.current=!0,T.current=!0,t()):(O.current=!1,cancelAnimationFrame(I.current))},r=()=>{"visible"===document.visibilityState&&O.current&&t()};a.addEventListener("onStateChange",i),document.addEventListener("visibilitychange",r);try{if("function"==typeof a.getPlayerState){let i=a.getPlayerState();i&&"function"==typeof i.then?i.then(a=>{e&&1===a&&(O.current=!0,T.current=!0,t())}).catch(()=>{}):1===i&&(O.current=!0,T.current=!0,t())}}catch{}return()=>{e=!1,O.current=!1,cancelAnimationFrame(I.current),a.removeEventListener("onStateChange",i),document.removeEventListener("visibilitychange",r)}},[a,R]),(0,i.useEffect)(()=>{!(k<0)&&_&&T.current&&$(k)},[k,_,$]),(0,i.useEffect)(()=>{let e=P.current;if(!e)return;let t=()=>{A.current||S(!1)};return e.addEventListener("scroll",t,{passive:!0}),()=>e.removeEventListener("scroll",t)},[]),(0,u.jsxs)("div",{className:"bg-y-black",children:[(0,u.jsxs)("div",{className:"flex items-center justify-end gap-3",children:[(0,u.jsx)(n.EY,{color:"text-slate-500",fontFamily:"font-proxima-nova",fontSize:"text-xs px-1 lg:px-0",children:"This transcript was auto-generated using AI and may contain misspellings."}),l&&o&&(0,u.jsx)(s.F,{videoId:l,videoTitle:o,section:"transcript"})]}),(0,u.jsxs)("div",{className:"relative",children:[(0,u.jsx)("div",{ref:P,id:"transcript",className:"mt-4 mb-6 max-h-96 overflow-auto scroll-smooth",children:(0,u.jsxs)(n.EY,{color:"text-grey-200",fontFamily:"font-proxima-nova",fontSize:"text-sm xl:text-sm",children:[!b&&!x&&(0,u.jsx)("div",{className:"p-4 space-y-4",children:[void 0,void 0,void 0,void 0].map((e,t)=>(0,u.jsxs)("div",{className:"flex flex-col lg:flex-row gap-3",children:[(0,u.jsx)("div",{className:"animate-pulse h-5 w-14 bg-gray-500/10 rounded flex-shrink-0"}),(0,u.jsxs)("div",{className:"flex-1 space-y-2",children:[(0,u.jsx)("div",{className:"animate-pulse h-4 bg-gray-500/10 rounded w-full"}),(0,u.jsx)("div",{className:"animate-pulse h-4 bg-gray-500/10 rounded",style:{width:`${65+8*t}%`}})]})]},t))}),!b&&x&&x,b&&(0,u.jsx)("div",{children:w.map(e=>(0,u.jsx)(p,{segment:e,onClick:H,highlight:e.id===k},e.id))})]})}),b&&!_&&k>=0&&(0,u.jsxs)("button",{onClick:()=>{S(!0),$(k)},className:"absolute bottom-8 left-1/2 -translate-x-1/2 z-10 flex items-center gap-2 px-4 py-2 bg-endeavour-500 text-white text-xs font-semibold rounded-full shadow-lg hover:bg-endeavour-600 transition-colors","aria-label":"Resume auto-scroll to follow the video",children:[(0,u.jsx)(r.g,{icon:"arrow-down",className:"text-[10px]"}),"Follow along"]})]})]})}},85271:(e,t,a)=>{"use strict";a.d(t,{X:()=>l});var i=a(18012),r=a(69174),n=a(55850),s=a(37876);let l=e=>{let{postId:t,isDarkMode:a,title:l,url:o}=e,c=a?"text-white":"text-black/75",d="Open in App",h=(0,n.Lo)([`group rounded h-[38px] relative inline-flex space-x-2 items-center justify-center ${a?"bg-slate-700 border-transparent":"bg-white border"} px-[17px] py-[9px]`,c]);return(0,s.jsx)("div",{className:"flex flex-col xl:hidden",children:(0,s.jsxs)(r.$n,{"aria-label":d,className:h,onPress:()=>{(0,i.$s)("open_in_app","click",`Open in App: ${l} - ${o}`);let e=`https://links.yqn.io/mj4a/p05fdtb0?post=${t}&af_channel=web`;window.open(e,"_blank","noopener,noreferrer")},children:[(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512",width:"16",height:"16",fill:"currentColor","aria-hidden":"true",className:c,children:(0,s.jsx)("path",{d:"M272 0H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h224c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zM112 24h96c4.4 0 8 3.6 8 8s-3.6 8-8 8h-96c-4.4 0-8-3.6-8-8s3.6-8 8-8zm48 472c-13.3 0-24-10.7-24-24s10.7-24 24-24 24 10.7 24 24-10.7 24-24 24zm136-72H24V64h272v360z"})}),(0,s.jsx)(r.EY,{as:"p",color:c,weight:"font-bold",lineHeight:"leading-none",fontSize:"text-base",className:"tracking-[-0.192px]",children:d})]})})}},85669:(e,t,a)=>{"use strict";a.d(t,{C:()=>r});var i=a(14232);let r=()=>{let{0:e,1:t}=(0,i.useState)(0);return(0,i.useEffect)(()=>{let e=document.querySelector("header[data-fixed-header]");if(!e)return;let a=()=>t(e.offsetHeight);a();let i=new ResizeObserver(a);return i.observe(e),()=>i.disconnect()},[]),e}},85766:(e,t,a)=>{"use strict";let i;a.d(t,{xj:()=>l,KF:()=>o,HB:()=>s});var r=a(52495),n=a.n(r);a(63426),a(26497);let s=e=>{i=e},l=(e,t)=>
53n()(e/i.data.rates[t]).value,o=(e,t)=>n()(e*i.data.rates[t.toUpperCase()]).value},87002:(e,t,a)=>{"use strict";a.d(t,{A:()=>eH});var i=a(66284),r=a(19641),n=a(11677),s=a(43445);let l=(0,s.li)()?"ramadanLinks":"compass";var o=a(67579),c=a(61300),d=a(18998),h=a(54587),u=a.n(h),m=a(18012),p=a(69174),g=a(86400),f=a(12013);let x=e=>"subtopic"in e&&"string"==typeof e.subtopic,y=e=>{var t;return"subtopic"in e&&"string"==typeof(null==(t=e.subtopic)?void 0:t.name)};var b=a(50598),v=a(37876);let w=e=>{var t;let{trendingPapersData:a,title:i,ga_category:r}=e;return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(b.d,{title:i||"Trending papers",href:"/read"}),(0,v.jsxs)("div",{id:"trending-papers",className:"flex gap-4 overflow-x-auto snap-x -mr-4 xl:justify-center",children:[null==a||null==(t=a.slice(0,5))?void 0:t.map(e=>{var t,a,i;return(0,v.jsxs)("div",{className:"relative bg-gray-50 p-4 xl:pt-4 xl:px-4 xl:pb-6 rounded-lg snap-center xl:shrink shrink-0 w-64",children:[f.A.find(e=>"paper"===e.type)&&(0,v.jsx)("div",{className:"xl:mb-3 mb-4",children:(0,v.jsx)(u(),{src:f.A.find(e=>"paper"===e.type).src,alt:f.A.find(e=>"paper"===e.type).title,height:24,width:24,loader:g.R2})}),(0,v.jsx)("div",{id:"post-tag-b",className:"mb-1.5 relative z-10",children:(0,v.jsx)(p.qh,{target:"_blank",prefetch:!1,onClick:()=>{var t;return(0,m.$s)(`${r}_subtopic`,"click",`item_name: ${x(e)?e.subtopic:null==e||null==(t=e.subtopic)?void 0:t.name}`)},href:x(e)?e.subtopicLink:null==e||null==(t=e.subtopic)?void 0:t.slug,className:"flex items-start shrink-0",children:(0,v.jsx)(p.EY,{as:"p",weight:"font-bold",color:"text-jordy-700",fontSize:"text-xss",letterSpacing:"tracking-[0.03rem]",className:"uppercase",lineHeight:"leading-3",children:x(e)?e.subtopic:null==e||null==(a=e.subtopic)?void 0:a.name})})}),(0,v.jsx)("div",{id:"post-title",children:(0,v.jsx)(p.qh,{target:"_blank",onClick:()=>(0,m.$s)(r,"click",`item_name: ${null==e?void 0:e.title}`),href:x(e)?e.link:null==e?void 0:e.slug,className:"before:absolute before:inset-0 before:rounded-lg before:content-['']",children:(0,v.jsx)(p.EY,{as:"p",weight:"font-bold",color:"text-grey-900",lineHeight:"leading-5",letterSpacing:"tracking-tight-1",children:e.title})})}),(0,v.jsx)("div",{id:"description",children:(0,v.jsx)(p.EY,{as:"p",fontFamily:"font-source-serif-pro",color:"text-gray-600",lineHeight:"leading-[1.4rem]",fontSize:"text-sm",className:"line-clamp-6 pt-2",children:x(e)?e.description:null==e||null==(i=e.seo)?void 0:i.desc})})]},e.title)}),(0,v.jsx)("div",{id:"placeholder",className:"xl:hidden w-4"})]})]})},j=e=>{var t;let{trendingVideosData:a,title:i,ga_category:n}=e;return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(b.d,{title:i||"Trending videos",href:"/watch"}),(0,v.jsxs)("div",{id:"trending-videos",className:"flex gap-4 xl:overflow-visible overflow-x-auto snap-x xl:justify-center -mx-4 xl:-mx-0",children:[(0,v.jsx)("div",{id:"placeholder",className:"xl:hidden w-4"}),null==a||null==(t=a.slice(0,5))?void 0:t.map(e=>(0,v.jsx)("div",{className:"w-64 snap-center xl:shrink shrink-0",children:(0,v.jsxs)(p.qh,{target:"_blank",onClick:()=>(0,m.$s)(n,"click",`item_name: ${null==e?void 0:e.title}`),href:y(e)?e.slug:e.link||e.slug,children:[(0,v.jsxs)("div",{className:"image-box relative h-38 xs:h-32",children:[(0,v.jsx)("div",{className:"absolute inset-0",children:(0,v.jsx)(u(),{src:(0,g.Qp)(e)||e.image||r.d,alt:e.title,layout:"fill",objectFit:"cover",loader:g.R2})}),(0,v.jsx)("div",{className:" z-10 absolute top-0 left-0 xs:mt-12 mt-14 ml-20 iphonese:ml-20 iphonese:mt-10 ",children:(0,v.jsx)(u(),{src:"/static/images/icons/youtube-logo.svg",alt:"",width:66,height:46})})]}),(0,v.jsx)("div",{id:"post-title",className:"pt-4 ",children:(0,v.jsx)(p.EY,{as:"p",weight:"font-bold",color:"text-grey-900",lineHeight:"leading-snug",letterSpacing:"tracking-tight-1",children:e.title})})]},y(e)?e.id:e.title)},e.title)),(0,v.jsx)("div",{id:"placeholder",className:"xl:hidden w-4"})]})]})};var k=a(14232),N=a(48879),_=a(9361),S=a(45999),A=a(94030),C=a(75625),P=a(64141),T=a(65083),O=a(38311),E=a(4797),I=a(28450);let D=e=>{let{perks:t,heading:a,CTA:i}=e;return(0,v.jsxs)("div",{className:"flex flex-col bg-white/50 py-5 xl:px-7 px-4 roun
53ded-lg",children:[(0,v.jsx)(p.EY,{as:"p",color:"text-endeavour-500",weight:"font-extrabold",fontSize:"text-2xl",lineHeight:"leading-5",letterSpacing:"xl:tracking-tight-4 tracking-tight-3",className:"xl:pb-6 pb-3.5",children:a}),(0,v.jsx)("div",{className:"xl:mb-6 mb-4 flex flex-col gap-y-1",children:null==t?void 0:t.map((e,t)=>(0,v.jsxs)("div",{className:"flex flex-row gap-x-3 items-center",children:[(0,v.jsx)("div",{className:"xl:flex hidden",children:(0,v.jsx)(u(),{loader:g.R2,src:"/static/images/icons/tick.svg",alt:"",height:24,width:24,layout:"fixed"})}),(0,v.jsx)("div",{className:"flex xl:hidden items-center",children:(0,v.jsx)(u(),{loader:g.R2,src:"/static/images/icons/tick.svg",alt:"",height:20,width:20,layout:"fixed"})}),(0,v.jsx)(p.EY,{as:"p",weight:"font-semibold",color:"text-black",className:"text-opacity-75",lineHeight:"xl:leading-6 leading-5",children:e})]},t))}),i]})};var q=a(18125),M=a(38369);let $=()=>(0,v.jsxs)("div",{className:"grid grid-cols-5 flex-col bg-white/50 py-5 xl:px-7 px-4 rounded-lg",children:[(0,v.jsx)("div",{className:"col-span-1",children:(0,v.jsx)("div",{className:"rounded bg-[#EFD9C1] w-[42px] h-[42px] flex justify-center items-center",children:(0,v.jsx)(q.g,{icon:["fas","bookmark"],className:"text-carrot-600 text-xl"})})}),(0,v.jsxs)("div",{className:"col-span-4 relative",children:[(0,v.jsx)("span",{className:"hidden xl:block",children:(0,v.jsx)(p.EY,{as:"p",color:"text-endeavour-500",weight:"font-extrabold",fontSize:"text-2xl",letterSpacing:"tracking-tight-4",className:"pb-6",lineHeight:"leading-5",children:"Pick up where you left off"})}),(0,v.jsxs)("span",{className:"xl:hidden",children:[(0,v.jsx)(p.EY,{as:"p",color:"text-endeavour-500",weight:"font-extrabold",fontSize:"text-2xl",lineHeight:"leading-none",letterSpacing:"tracking-tight-4",children:"Pick up where you"}),(0,v.jsx)(p.EY,{as:"p",color:"text-endeavour-500",weight:"font-extrabold",fontSize:"text-2xl",className:"pb-1",letterSpacing:"tracking-tight-4",children:"left off"})]}),(0,v.jsxs)("div",{className:"mb-12 xl:mb-6 flex flex-col gap-y-1",children:[(0,v.jsx)(p.EY,{as:"p",color:"text-black",className:"text-opacity-75",lineHeight:"leading-5",letterSpacing:"tracking-tight-1",fontSize:"text-sm",children:"Try out this new feature! Your bookmarks can be found in your dashboard."}),(0,v.jsx)(p.$n,{onPress:()=>{(0,m.$s)("home_bookmarks_cta","click","see_my_bookmarks"),M.A.push("/dashboard")},className:"absolute bottom-0 border rounded bg-white w-full",children:(0,v.jsx)(p.EY,{as:"p",weight:"font-bold",color:"text-grey-900",lineHeight:"leading-5",className:"py-2",children:"See my bookmarks"})})]})]})]}),H=e=>{let{userInfo:t,subscribeForm:a,subscribePerks:i,becomeMemberButton:r,becomeMemberPerks:n}=e;return(0,v.jsxs)("div",{className:"grid xl:grid-cols-3 grid-cols-1 gap-x-6 xl:gap-y-0 gap-y-6",children:[(0,v.jsx)("div",{className:"xl:flex hidden xl:pr-4 items-center",children:(0,v.jsx)(u(),{src:"https://i.yaqeeninstitute.org/?src=2025/03/volunteer-hero.svg&w=360",objectFit:"cover",width:360,height:195,loader:g.R2,alt:"team work image"})}),(0,v.jsx)("div",{className:"xl:hidden flex justify-center",children:(0,v.jsx)(u(),{src:"https://i.yaqeeninstitute.org/?src=2025/03/volunteer-hero.svg&w=200",objectFit:"cover",width:200,height:140,loader:g.R2,alt:"team work image"})}),(0,v.jsx)(D,{perks:i,heading:(0,v.jsxs)(v.Fragment,{children:["Subscribe to ",(0,v.jsx)("span",{className:"text-carrot-500",children:"newsletter"})]}),CTA:a}),!(null!=t&&t.user)&&(0,v.jsx)(D,{perks:n,heading:(0,v.jsxs)(v.Fragment,{children:["Become a ",(0,v.jsx)("span",{className:"text-carrot-500",children:"member"})]}),CTA:r}),(null==t?void 0:t.user)&&(0,v.jsx)($,{})]})},R=e=>{let{userInfo:t,becomeMemberButton:a,becomeMemberPerks:i}=e;return(0,v.jsxs)("div",{className:"grid xl:grid-cols-12 grid-cols-1 gap-x-6 xl:gap-y-0 gap-y-6 w-full",children:[(0,v.jsx)("div",{className:"xl:flex col-start-3 col-span-4 hidden items-center xl:pr-4",children:(0,v.jsx)(u(),{src:"https://i.yaqeeninstitute.org/?src=2025/03/volunteer-hero.svg&w=360",objectFit:"cover",width:360,height:195,loader:g.R2,alt:"team work image"})}),(0,v.jsx)("div",{className:"xl:hidden flex justify-center col-span-4",children:(0,v.jsx)(u(),{src:"https://i.yaqeeninstitute.org/?src=2025/03/volunteer-hero.svg&w=360",objectFit:"cover",width:200,height:140,loader:g.R2,alt:"team work image"})}),!(null!=t&&t.user)&&(0,v.jsx)("div",{className:"col-span-4",children:(0,v.jsx)(D,{perks:i,heading:(0,v.jsxs)(v.Fragment,{children:["Become a ",(0,v.jsx)("span",{className:"text-carrot-500",children:"member"})]}),CTA:a})}),(null==t?void 0:t.user)&&(0,v.jsx)("div",{className:"flex col-span-4",children:(0,v.jsx)($,{})})]})},z=e=>{var t,a;let{}=e,{firebaseAuth:i}=(0,T.m9)(),{initAuth:r,userInfo:n}=i,{showNewsletterForm:s,updateState:l}=(0,O.K)(),{register:o,handleSubmit:c,formState:d,reset:h,errors:u}=(0,C.mN)({mode:"onChange"}),{0:g,1:f}=(0,k.useState)(!1),x="home_newsletter",y=P.xY.HOME_PAGE_2024,b=async e=>{f(!0),(0,m.$s)(x,"subscribe",`state: init, loggedIn: ${n.authState===_.j_.VerifiedAuth}`),(0,A.h6)("Subscribe");
53let[t,a]=await (0,S.r)("/api/v1/hs-forms/newsletter",{email:e.email,yaqeen_subscriber_source:y,pageUri:window.location.href,pageName:x});f(!1),t?((0,m.$s)(x,"subscribe",`state: success, loggedIn: ${n.authState===_.j_.VerifiedAuth} alreadySubmitted: ${a}`),(0,E.ge)(a?"You're already on the list":"Successfully subscribed to Newsletter",{closeButton:!0,autoClose:6e3}),l("general",!0),n.authState!==_.j_.VerifiedAuth&&r()):((0,m.$s)(x,"subscribe",`state: failure, loggedIn: ${n.authState===_.j_.VerifiedAuth}`),(0,E.ge)("Error while subscribing. Please try again.",{closeButton:!0,autoClose:6e3})),h()},w=(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("form",{method:"post",className:"w-full",onSubmit:c(b),children:(0,v.jsxs)("div",{id:"subscribe-form",className:"flex items-center w-full",children:[(null==n||null==(t=n.user)?void 0:t.email)&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(p.$n,{type:"submit",className:"w-full bg-carrot-500 hover:bg-carrot-700 text-white px-4 py-2 rounded rounded-l-none border border-transparent",children:(0,v.jsx)(p.EY,{as:"p",color:"text-white",weight:"font-bold",letterSpacing:"tracking-tight-1",className:"text-center",children:g?"Processing...":"Subscribe"})}),(0,v.jsx)("input",{type:"hidden",name:"email",value:n.user.email,ref:o({required:!1})})]}),!(null!=n&&null!=(a=n.user)&&a.email)&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("div",{className:"w-full",children:(0,v.jsx)(p.A_,{type:"email",name:"email",placeholder:"Email",inputClassName:"bg-white border border-grey-200 rounded rounded-r-none px-3 py-2 flex w-full",ref:o({required:"Please enter your email",pattern:{value:/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i,message:"Invalid email address"}})})}),(0,v.jsx)(p.$n,{type:"submit",isDisabled:!d.isValid||g,className:"shrink-0 inline-flex items-center bg-carrot-500 hover:bg-carrot-700 text-white px-4 py-2 rounded rounded-l-none border border-transparent",children:(0,v.jsx)(p.EY,{as:"p",color:"text-white",weight:"font-bold",letterSpacing:"tracking-tight-1",children:g?"Processing...":"Subscribe"})})]})]})}),u.email&&(0,v.jsx)(p.EY,{color:"text-red-500",children:u.email.message})]}),j=(0,v.jsx)(v.Fragment,{children:(0,v.jsx)("div",{id:"login-form",className:"flex justify-center w-full",children:(0,v.jsx)(p.$n,{onPress:()=>{(0,m.$s)("home_membership","click","become_member"),r()},className:"bg-carrot-500 hover:bg-carrot-700 xl:px-5 px-4 font-bold py-2 flex whitespace-nowrap rounded justify-center items-center w-full",children:(0,v.jsx)(p.EY,{as:"p",color:"text-white",weight:"font-bold",letterSpacing:"tracking-tight-1",children:"Sign up"})})})});return(0,v.jsx)("div",{id:"membership-row",className:"bg-endeavour-50 xl:mt-4",children:(0,v.jsx)(I.pO,{className:"w-full",maxWidth:"max-w-7xl",padding:"xl:px-0 px-4 py-6",children:s?(0,v.jsx)(H,{subscribeForm:w,subscribePerks:N.gd,userInfo:n,becomeMemberButton:j,becomeMemberPerks:N.h5}):(0,v.jsx)(R,{becomeMemberButton:j,userInfo:n,becomeMemberPerks:N.h5})})})};var F=a(35744);let Y=e=>{var t,a,i,r,n,s,l,o,c;let{featuredCollection:d,hideMoreOnLink:h=!1}=e,f=["Infographic","Lecture","Paper","Series","Animation","Blog","Webinar"],x=(0,F.Ji)(null==(t=d.posts)?void 0:t.map(e=>e.contentType).filter(e=>!!e).sort((e,t)=>"Trauma"===d.title?f.indexOf(e.name)-f.indexOf(t.name):e.name.localeCompare(t.name))),{0:y,1:b}=(0,k.useState)(null==x?void 0:x[0]),w=null==d||null==(a=d.posts)?void 0:a.filter(e=>{var t;return(null==e||null==(t=e.contentType)?void 0:t.slug)===(null==y?void 0:y.slug)});return(0,v.jsxs)("div",{id:"home-collection",className:"flex xl:flex-row flex-col bg-gray-50 rounded-lg border border-gray-300 xl:my-14 mb-10 overflow-hidden",children:[(0,v.jsx)("div",{className:"xl:flex hidden shrink-0",children:(0,v.jsx)(u(),{loader:g.R2,alt:null==d?void 0:d.title,src:(null==d||null==(i=d.images)?void 0:i.desktop)||(null==d||null==(r=d.images)?void 0:r.mobile),width:465,height:510,priority:!0,className:"object-cover"})}),(0,v.jsxs)("div",{className:"xl:hidden flex shrink-0",children:[(0,v.jsx)("div",{className:"md:hidden block",children:(0,v.jsx)(u(),{loader:g.R2,alt:null==d?void 0:d.title,src:(null==d||null==(n=d.images)?void 0:n.mobile)||(null==d||null==(s=d.images)?void 0:s.desktop),width:430,height:292,priority:!0,className:"object-cover aspect-w-16 aspect-h-9"})}),(0,v.jsx)("div",{className:"md:block hidden",children:(0,v.jsx)(u(),{loader:g.R2,alt:null==d?void 0:d.title,src:(null==d||null==(l=d.images)?void 0:l.mobile)||(null==d||null==(o=d.images)?void 0:o.desktop),width:830,height:392,priority:!0,className:"object-cover aspect-w-16 aspect-h-9"})})]}),(0,v.jsxs)("div",{className:"xl:p-10 px-4 py-6 w-full",children:[(0,v.jsx)("div",{id:"post-tag-c",className:"mb-2",children:(0,v.jsx)(p.EY,{as:"p",weight:"font-bold",color:"text-jordy-700",fontSize:"text-xss",letterSpacing:"tracking-[0.03rem]",className:"uppercase",lineHeight:"leading-3",children:"Collection"})}),(0,v.jsx)("div",{id:"post-title",className:"mb-5",children:(0,v.jsx)(p.EY,{as:"p",weight:"font-extrabold",color:"text-gray-900",lineHeight:"xl:leading-10 leading-7.5",letterSpacing:"tracking-[-0.056rem]",fontSize:"xl:text-4xl text-3xl",children:null==d?void 0:d.title})}),(0,v.jsx)("div",{id:"latest-categories",className:"flex items-center gap-x-2 mb-4 overflow-x-auto snap-x justify-start snap-mandatory",children:null==x?void 0:x.map(e=>(0,v.jsx)(p.$n,{onPress:()=>((0,m.$s)("home_collection_filter","click",`item_name: ${null==e?void 0:e.name}
53, collection: ${null==d?void 0:d.title}`),b(e)),className:"inline-flex snap-center",children:(0,v.jsx)("div",{className:`group inline-flex items-center rounded-full px-4 py-3 ${(null==y?void 0:y.slug)===e.slug?"bg-carrot-500 ":"bg-gray-200 "}hover:bg-carrot-600 whitespace-nowrap`,children:(0,v.jsx)(p.EY,{as:"p",fontSize:"text-sm",weight:"font-bold",color:`${(null==y?void 0:y.slug)===e.slug?"text-white":"text-black/50"} group-hover:text-white`,lineHeight:"leading-3",children:null==e?void 0:e.name})})},null==e?void 0:e.slug))}),(0,v.jsx)("div",{id:"latest-collections",className:"mb-6",children:null==w||null==(c=w.slice(0,5))?void 0:c.map(e=>(0,v.jsx)(p.qh,{onClick:()=>(0,m.$s)("home_collection_post","click",`item_name: ${null==e?void 0:e.title}`),href:e.slug,className:"inline-flex xl:py-5 py-4 w-full border-b border-gray-300",children:(0,v.jsx)(p.EY,{as:"p",weight:"font-bold",color:"text-gray-900",lineHeight:"leading-tight",letterSpacing:"tracking-[-0.0135rem]",fontSize:"xl:text-lg text-base",children:e.title})},null==e?void 0:e.id))}),d.slug&&!h&&(0,v.jsx)("div",{id:"more-collections",className:"xl:mb-6 flex justify-end w-full",children:(0,v.jsxs)(p.qh,{onClick:()=>(0,m.$s)("home_collection_more","click",`item_name: ${null==d?void 0:d.title}`),href:null==d?void 0:d.slug,className:"inline-flex items-center gap-x-1 px-2 w-auto xl:pr-10",children:[(0,v.jsxs)(p.EY,{as:"p",weight:"font-bold",color:"text-grey-900",letterSpacing:"tracking-[-0.0105rem]",fontSize:"text-sm",className:"truncate",children:["More on ",null==d?void 0:d.title]}),(0,v.jsx)("svg",{className:"w-3.5 h-3.5 text-carrot-600 shrink-0 ml-1",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:(0,v.jsx)("path",{d:"M7 4l6 6-6 6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})]})})]})]})};var L=a(74382),B=a.n(L);let U=e=>{let{latestCurriculumUnits:t}=e;return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(b.d,{title:"Curriculum",href:"/curriculum"}),(0,v.jsx)("div",{className:"xl:mx-0 -mx-4",children:(0,v.jsxs)("div",{id:"home-curriculum",className:"flex xl:gap-x-6 gap-x-4 overflow-x-auto xl:mb-14 mb-5",children:[(0,v.jsx)("div",{id:"placeholder",className:"xl:hidden w-4"}),null==t?void 0:t.map(e=>{let t=B().load(e.description)("html body").text();return(0,v.jsxs)(p.qh,{onClick:()=>(0,m.$s)("home_curriculum","click",`item_name: ${null==e?void 0:e.name}`),href:e.slug,className:"w-55 xl:shrink shrink-0",children:[(0,v.jsx)("div",{className:" items-start shrink-0 xl:mb-2 mb-3",children:(0,v.jsx)(u(),{loader:g.R2,alt:e.name,src:null==e?void 0:e.thumbnail,width:210,height:280,className:"aspect-w-1 aspect-h-1 object-cover"})}),(0,v.jsxs)("div",{children:[(0,v.jsx)("div",{id:"post-title",className:"xl:mb-4 mb-4",children:(0,v.jsx)(p.EY,{as:"p",weight:"font-bold",color:"text-grey-900",lineHeight:"leading-4-s-2",letterSpacing:"tracking-tight-1",fontSize:"text-sm",children:e.name})}),(0,v.jsx)("div",{id:"border",className:"xl:mb-2 mb-2 border-b-2 border-carrot-500 w-10"}),(0,v.jsx)("div",{id:"description",children:(0,v.jsx)(p.EY,{as:"p",fontFamily:"font-source-serif-pro",color:"text-gray-600",lineHeight:"leading-[1.4rem]",fontSize:"text-sm",className:"line-clamp-3",children:t})})]})]},e.slug)}),(0,v.jsx)("div",{id:"placeholder",className:"xl:hidden w-4"})]})})]})},W=e=>{var t;let{books:a}=e;return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(b.d,{title:"eBooks",href:"/read/books"}),(0,v.jsx)("div",{className:"xl:mx-0 -mx-4",children:(0,v.jsxs)("div",{id:"home-ebooks",className:"flex gap-x-6 overflow-x-auto snap-x pb-0.5",children:[(0,v.jsx)("div",{id:"placeholder",className:"xl:hidden w-4"}),null==a||null==(t=a.filter(e=>!!e.homepage_order))||null==(t=t.sort((e,t)=>e.homepage_order-t.homepage_order))||null==(t=t.slice(0,6))?void 0:t.map(e=>{var t;return(0,v.jsxs)(p.qh,{onClick:()=>(0,m.$s)("home_ebooks","click",`item_name: ${null==e?void 0:e.title}`),href:`/read/books/${e.slug}`,className:"w-55 snap-center xl:shrink shrink-0",children:[(0,v.jsx)("div",{className:"flex items-start justify-center shrink-0 mb-2",children:(0,v.jsx)(u(),{loader:g.R2,alt:e.title,src:null==(t=e.images)?void 0:t.highlight,width:193,height:193,className:"aspect-w-1 aspect-h-1"})}),(0,v.jsx)("div",{id:"post-title",className:"mb-0",children:(0,v.jsx)(p.EY,{as:"p",weight:"font-bold",color:"text-grey-900",lineHeight:"leading-tight",letterSpacing:"tracking-[-0.0105rem]",fontSize:"text-sm",children:(0,v.jsx)("span",{dangerouslySetInnerHTML:{__html:e.title}}
53)})})]},e.title)}),(0,v.jsx)("div",{id:"placeholder",className:"xl:hidden w-4"})]})})]})};var G=a(63435),Z=a.n(G),Q=a(6862),V=a(1678),K=a(59860),J=a(50629),X=a(47575),ee=a(65300),et=a(78814),ea=a(98477),ei=a(64454),er=a(76042);a(56245);let en=["searchClient","className","searchTrendingKeywords"];function es(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,i)}return a}function el(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?es(Object(a),!0).forEach(function(t){(0,i.A)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):es(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}function eo(e){let t,{searchClient:a,className:i,searchTrendingKeywords:r}=e,n=(0,K.A)(e,en),s=(0,k.useRef)(null),l=(0,k.useRef)(null),{query:o,refine:d}=(0,ei.V)(),{refine:h}=(0,er.W)(),{0:u,1:g}=(0,k.useState)({query:o}),f=function(){for(var e=arguments.length,a=Array(e),i=0;i<e;i++)a[i]=arguments[i];t&&clearTimeout(t),t=setTimeout(()=>g(...a),500)},x=e=>{""!==e&&((0,m.$s)("home_search","click",`search_keyword: ${e}`),l.current&&(l.current.setQuery(e),l.current.refresh()),window.location.href=`/search?q=${(0,c.OR)(e)}`)},y=n.insights||!0,b=(0,k.useMemo)(()=>{let e=(0,ee.L)({key:"instantsearch",limit:5,transformSource(e){let{source:t}=e;return el(el({},t),{},{onSelect(e){let{item:t}=e;g({query:t.label}),x(t.label)}})}}),t=(0,X.D)({searchClient:a,indexName:V.w3,getSearchParams(){var t;return null==(t=e.data)?void 0:t.getAlgoliaSearchParams({hitsPerPage:6})},transformSource(e){let{source:t}=e;return el(el({},t),{},{sourceId:"querySuggestionsPlugin",templates:{item:()=>null,header(e){let{items:t}=e;return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(p.EY,{weight:"font-semibold",fontSize:"text-xs",color:"text-jordy-900",className:"ml-2",children:t.length>0?"Suggested search":"Trending"}),0===t.length&&(0,v.jsx)("div",{className:"flex flex-wrap gap-2 pr-2 mt-2 ml-2",children:null==r?void 0:r.map(e=>(0,v.jsxs)(p.$n,{onPress:()=>{g({query:e}),x(e)},className:"bg-gray-100 rounded-md flex items-center gap-2",children:[(0,v.jsx)(q.g,{icon:et.Mj,size:"sm"}),(0,v.jsx)(p.EY,{className:"text-sm",children:e})]},e))}),t.length>0&&(0,v.jsx)("div",{className:"flex flex-wrap gap-2 pr-2 mt-2 ml-2",children:t.map(e=>(0,v.jsxs)(p.$n,{onPress:()=>{g({query:e.query}),x(e.query)},className:"bg-gray-100 rounded-md p-2 flex items-center gap-2",children:[(0,v.jsx)(q.g,{icon:et.Mj,size:"sm"}),(0,v.jsx)(p.EY,{className:"text-sm",children:e.query})]},e.query))})]})},noResults:()=>null},onSelect(e){let{item:t}=e;g({query:t.query})},getItems:e=>e.state.query?t.getItems(e):[]})}});return[e,t]},[]);return(0,k.useEffect)(()=>{d(u.query),h(0)},[u]),(0,k.useEffect)(()=>{if(!s.current)return;let e=(0,J.n)(el(el({},n),{},{insights:y,container:s.current,initialState:{query:o},onReset(){g({query:""})},onSubmit(e){let{state:t}=e;g({query:t.query}),x(t.query)},onStateChange(e){let{prevState:t,state:a}=e;t.query!==a.query&&f({query:a.query})},renderer:{createElement:k.createElement,Fragment:k.Fragment,render:ea.render},plugins:b}));return l.current=e,()=>e.destroy()},[b]),(0,v.jsx)("div",{className:i,ref:s})}let ec=e=>{let{searchTrendingKeywords:t}=e,a=Z()(V.sZ,V.zK);return(0,v.jsxs)(T.tH,{children:[(0,v.jsx)(Q.pi,{}),(0,v.jsx)(Q.C4,{}),(0,v.jsx)("div",{className:"relative w-full",children:(0,v.jsx)("div",{className:"flex flex-col xl:flex-row w-full xl:items-center",children:(0,v.jsx)("div",{className:"home-search w-full flex xl:mb-0",children:(0,v.jsx)(eo,{searchClient:a,placeholder:"What are you looking for?",detachedMediaQuery:"none",openOnFocus:!0,className:"appearance-none placeholder-grey-700 w-full text-grey-900 leading-tight focus:outline-none",searchTrendingKeywords:t})})})})]})},ed=e=>{let{searchTrendingKeywords:t}=e,a=Z()(V.sZ,V.zK);return(0,v.jsxs)("div",{className:"bg-endeavour-500 w-full",children:[(0,v.jsxs)(I.pO,{className:"pt-10 w-full",maxWidth:"max-w-7xl",padding:"xl:px-0 px-4",children:[(0,v.jsxs)("div",{className:"mx-auto xl:mb-16 mb-10",children:[(0,v.jsx)("div",{className:"xl:block hidden xl:mb-10",children:(0,v.jsxs)(p.DZ,{level:1,weight:"font-extrabold",color:"text-white",fontSize:"xl:text-6xl",lineHeight:"leading-none",letterSpacing:"tracking-tight-6",children:["Your ",(0,v.jsx)("span",{className:"text-carrot-500",children:"credible source"})," on ",(0,v.jsx)("br",{})," contemporary Islamic topics."]})}),(0,v.jsx)("div",{className:"xl:block hidden max-w-[600px]",children:(0,v.jsx)(p.EY,{as:"p",weight:"font-semibold",color:"text-white",fontSize:"xl:text-xl",lineHeight:"xl:leading-7",letterSpacing:"tracking-tight",children:"In an increasingly skeptical world rife with confusion and Islamophobia, we give a home to well-researched truths, inspiring a world of faithful changemakers by reviving the essence of orthodoxy."})}),(0,v.jsx)("div",{className:"xl:hidden block",children:(0,v.jsxs)(p.DZ,{level:1,weight:"font-extrabold",color:"text-white",fontSize:"text-3xl",lineHeight:"leading-7.5 iphonese:leading-9",letterSpacing:"tracking-tight-6",children:["Your ",(0,v.jsx)("span",{className:"text-carrot-500",children:"credible source"})," on contemporary Islamic topics."]})})]}),(0,v.jsx)("div",{className:"search-box mb-6 w-full flex",children:(0,v.jsx)(Q.GT,{indexName:V.VX,searchClient:a,children:(0,v.jsx)(ec,{searchTrendingKeywords:t})})})]}),(0,v.jsxs)("div",{className:"trending pb-10 pl-4 xl:pl-0 max-w-7xl mx-auto",children:[(0,v.jsx)("div",{className:"mb-4 xl:hidden block",children:(0,v.jsx)(p.EY,{as:"p",weight:"font-semibold",fontSize:"xl:text-lg text-base",color:"text-white",className:"opacity-50",letterSpacing:"tracking-tight-1.5",lineHeight:"xl:leading-7 leading-6",children:"Trending:"})}),(0,v.jsxs)("div",{className:"flex items-center flex-row gap-2 xl:flex-wrap overflow-x-auto snap-x",children:[(0,v.jsx)(p.EY,{as:"p",weight:"font-semibold",fontSize:"xl:text-lg text-base",color:"text-white",className:"opacity-50 pr-2 hidden xl:block",letterSpacing:"tracking-tight-1.5",lineHeight:"xl:leading-7 leading-6",children:"Trending:"}),N.Bp.map(e=>(0,v.jsx)("div",{className:"text-center border border-grey-200 xl:py-2.25 py-1.5 px-4 roun
53ded-full",children:(0,v.jsx)(p.qh,{href:e.link,onClick:()=>{(0,m.$s)("home_hero_trending","click",`item_name: ${e.title}`)},children:(0,v.jsx)(p.EY,{as:"p",weight:"font-bold",color:"text-grey-40",letterSpacing:"tracking-tight-1 whitespace-nowrap",children:e.title})})},e.title))]})]})]})};var eh=a(22463);let eu=()=>(0,v.jsx)("div",{className:"flex gap-x-5",children:N.lj.map(e=>(0,v.jsx)(p.qh,{href:e.link,onClick:()=>{(0,m.$s)("home_quick_links","click",`category: Do More, item_name: ${e.type}`)},target:"_blank",className:"flex justify-center items-center rounded-full bg-white",children:(e=>{let{platform:t}=e;switch(t){case"facebook":return(0,v.jsx)(u(),{loader:g.R2,alt:"facebook_social",src:"/static/images/posts/icons/social/facebook.svg",height:28,width:8});case"twitter":return(0,v.jsx)(u(),{loader:g.R2,alt:"twitter_social",src:"/static/images/posts/icons/social/twitter.svg",height:28,width:8});case"youtube":return(0,v.jsx)(u(),{loader:g.R2,alt:"youtube_social",src:"/static/images/posts/icons/social/youtube.svg",height:28,width:8});case"instagram":return(0,v.jsx)(u(),{loader:g.R2,alt:"instagram_social",src:"/static/images/posts/icons/social/instagram.svg",height:28,width:8});case"apple":return(0,v.jsx)(u(),{loader:g.R2,alt:"apple_social",src:"/static/images/posts/icons/social/apple.svg",height:28,width:8});case"tiktok":return(0,v.jsx)(u(),{loader:g.R2,alt:"tiktok_social",src:"/static/images/posts/icons/social/tiktok.svg",height:28,width:8});case"linkedin":return(0,v.jsx)(q.g,{icon:["fab","linkedin"],color:"#0A66C2",className:"h-7 w-7",size:"xl",fixedWidth:!0});case"spotify":return(0,v.jsx)(u(),{loader:g.R2,alt:"spotify_social",src:"/static/images/posts/icons/social/spotify.svg",height:28,width:8})}})({platform:e.type})},e.type))}),em=e=>{let{quickLinks:t}=e,{firebaseAuth:a}=(0,T.m9)(),{initAuth:i,userInfo:r}=a,{0:n,1:s}=(0,k.useState)("yaqeeninstitute.org");(0,k.useEffect)(()=>{s((0,E.EW)())},[]);let l=e=>e?e.split("__INT_SOURCE__").join(n):e;return(0,v.jsx)("div",{id:"quick-links",className:"grid xl:grid-cols-3 gap-6 xl:mb-14 mb-10",children:(0,v.jsxs)(v.Fragment,{children:[t.map(e=>{var t;return(0,v.jsxs)("div",{className:"border border-gray-300 xl:p-6 py-5 px-4 rounded-lg",children:[(0,v.jsx)("div",{id:"category-title",className:"mb-3 xl:mb-2",children:(0,v.jsx)(p.EY,{as:"p",weight:"font-bold",color:"text-endeavour-500",lineHeight:"xl:leading-tight leading-3",letterSpacing:"tracking-tight-1",children:e.title})}),(0,v.jsx)("div",{id:"hr-divider",className:"border-b-4 border-carrot-500 mb-3"}),(0,v.jsx)("div",{id:"category-links",children:null==e||null==(t=e.data)?void 0:t.map((t,a)=>(0,v.jsx)(p.qh,{onClick:()=>{(0,m.$s)("home_quick_links","click",`category: ${null==e?void 0:e.title}, item_name: ${t.title}`),(0,m.hy)("home_quick_links",t.slug)},href:l(t.slug)||t.link,className:"inline-flex border-b border-gray-200 xl:py-4 py-3 w-full",children:(0,v.jsx)(p.EY,{as:"p",weight:"font-extrabold",color:"text-grey-900",letterSpacing:"tracking-[-0.04688rem]",fontSize:"text-2xl",lineHeight:"leading-none",children:t.title})},a))})]},e.title)}),(0,v.jsxs)("div",{className:"border border-gray-300 xl:p-6 py-5 px-4 rounded-lg",children:[(0,v.jsx)("div",{id:"category-title",className:"mb-3 xl:mb-2",children:(0,v.jsx)(p.EY,{as:"p",weight:"font-bold",color:"text-endeavour-500",lineHeight:"xl:leading-tight leading-3",letterSpacing:"tracking-tight-1",children:"Do more"})}),(0,v.jsx)("div",{id:"hr-divider",className:"border-b-4 border-carrot-500 mb-3"}),(0,v.jsx)("div",{id:"category-links",children:null===N.EU||void 0===N.EU?void 0:N.EU.map((e,t)=>"link"===e.type?(0,v.jsx)(p.qh,{onClick:()=>{(0,m.$s)("home_quick_links","click",`category: Do More, item_name: ${e.title}`),(0,m.hy)("home_quick_links",e.slug)},href:l(e.slug)||e.link,className:"inline-flex border-b border-gray-200 xl:py-4 py-3 w-full",children:(0,v.jsx)(p.EY,{as:"p",weight:"font-extrabold",color:"text-grey-900",letterSpacing:"tracking-[-0.04688rem]",fontSize:" text-2xl",lineHeight:"leading-none",children:e.title})},t):"login"!==e.type||r.user?"social_media"===e.type?(0,v.jsxs)("div",{className:"xl:pt-4 pt-3 w-full",children:[(0,v.jsx)(p.EY,{as:"p",weight:"font-extrabold",color:"text-grey-900",letterSpacing:"tracking-[-0.04688rem]",fontSize:" text-2xl",lineHeight:"leading-none",children:e.title}),(0,v.jsx)("div",{id:"social-media",className:"mt-5",children:(0,v.jsx)(eu,{})})]},e.title):void 0:(0,v.jsx)(p.$n,{onPress:()=>{(0,m.$s)("home_quick_links","click",`category: Do More, item_name: ${e.title}`),(0,m.hy)("home_quick_links",e.slug),i()},className:"inline-flex border-b border-gray-200 xl:py-4 py-3 w-full",children:(0,v.jsx)(p.EY,{as:"p",weight:"font-extrabold",color:"text-grey-900",letterSpacing:"tracking-[-0.04688rem]",fontSize:" text-2xl",lineHeight:"leading-none",children:e.title})},t))})]})]})})};var ep=a(43270);let eg=()=>(0,v.jsxs)("div",{children:[(0,v.jsx)(b.d,{title:"Ramadan"}),(0,v.jsx)("div",{className:"grid grid-cols-2 xl:grid-cols-4 gap-4",children:ep.LE.map(e=>(0,v.jsx)(p.qh,{href:e.link,className:"group",children:(0,v.jsxs)("div",{className:"relative overflow-hidden rounded-lg",style:{aspectRatio:"192 / 243"},children:[(0,v.jsx)(u(),{loader:g.R2,src:e.image,alt:e.title,layout:"fill",objectFit:"cover"}),(0,v.jsx)("div",{className:"absolute inset-0 bg-gradient-to-b from-transparent via-trans
53parent to-black/40 rounded-lg"}),(0,v.jsx)("div",{className:"absolute inset-x-0 bottom-0 flex items-end justify-center px-4 pb-4",children:(0,v.jsxs)("div",{className:"text-center",children:[(0,v.jsx)("span",{className:"text-white font-extrabold text-xl leading-7 tracking-tight drop-shadow-sm",children:e.title}),e.subtitle&&(0,v.jsx)("p",{className:"text-white/80 font-semibold text-sm leading-tight drop-shadow-sm",children:e.subtitle})]})})]})},e.title))})]}),ef=()=>(0,v.jsxs)("div",{id:"title-hr",className:"relative xl:flex hidden xl:pt-6 py-10 items-center",children:[(0,v.jsx)("div",{className:"flex-grow border-t border-gray-300"}),(0,v.jsxs)("div",{id:"latest-categories",className:"mx-6 inline-flex items-center gap-x-2",children:[(0,v.jsx)(p.EY,{as:"p",fontSize:"text-sm",weight:"font-semibold",color:"text-gray-500",children:"See latest:"}),N.Np.categories.map(e=>(0,v.jsx)(p.qh,{onClick:()=>{(0,m.$s)("home_see_latest","click",`item_name: ${null==e?void 0:e.title}`)},href:e.link,className:"inline-flex",children:(0,v.jsx)("div",{className:"inline-flex items-center rounded-full px-3 py-2 h-6 bg-white hover:bg-gray-50 border border-grey-200",children:(0,v.jsx)(p.EY,{as:"p",fontSize:"text-sm",weight:"font-bold",color:"text-gray-900",children:e.title})})},e.title))]}),(0,v.jsx)("div",{className:"flex-grow border-t border-gray-300"})]}),ex=()=>(0,v.jsxs)("div",{className:"xl:hidden xl:py-10 py-6",children:[(0,v.jsx)("div",{id:"title-hr",className:"relative flex xl:flex-row flex-col items-center",children:(0,v.jsx)(p.EY,{as:"p",fontSize:"text-sm",weight:"font-semibold",color:"text-gray-500",className:"mb-4",children:"See latest:"})}),(0,v.jsxs)("div",{id:"latest-categories",className:"flex items-center gap-x-2 overflow-x-auto snap-x snap-mandatory",children:[(0,v.jsx)("div",{id:"placeholder",className:"w-4"}),N.Np.categories.map(e=>(0,v.jsx)(p.qh,{onClick:()=>{(0,m.$s)("home_see_latest","click",`item_name: ${null==e?void 0:e.title}`)},href:e.link,className:"inline-flex snap-center",children:(0,v.jsx)("div",{className:"inline-flex items-center rounded-full px-3 py-2 h-6 bg-white hover:bg-gray-50 border border-grey-200 mb-2 xl:mb-0",children:(0,v.jsx)(p.EY,{as:"p",fontSize:"text-sm",weight:"font-bold",color:"text-gray-900",className:"whitespace-nowrap",children:e.title})})},e.title)),(0,v.jsx)("div",{id:"placeholder",className:"w-4"})]})]});var ey=a(24519),eb=a.n(ey),ev=a(54231),ew=a(32738);let ej=e=>{let{posts:t}=e;return(0,v.jsx)(v.Fragment,{children:null==t?void 0:t.map(e=>{var t,a,i;return(0,v.jsxs)("div",{className:"flex gap-x-4 py-6",children:[(0,v.jsx)(p.qh,{onClick:()=>(0,m.$s)("home_spotlight_post_image","click",`item_name: ${null==e?void 0:e.title}`),href:(0,ew.lr)(e),className:"flex items-start shrink-0",children:(0,v.jsx)(u(),{loader:g.R2,alt:e.title,src:(0,g.Qp)(e)||r.d,width:160,height:90,className:"aspect-w-16 aspect-h-9 object-cover"})}),(0,v.jsxs)("div",{children:[(0,v.jsx)("div",{className:"mb-1",children:(0,v.jsx)(p.qh,{onClick:()=>{var t;return(0,m.$s)("home_spotlight_post_content_type","click",`item_name: ${null==(t=(0,ew.gt)(e))?void 0:t.name}`)},href:ew.PC[null==(t=(0,ew.gt)(e))?void 0:t.slug],className:"flex",children:(0,v.jsx)(p.EY,{as:"p",weight:"font-bold",color:"text-jordy-700",fontSize:"text-xss",letterSpacing:"tracking-[0.03rem]",className:"uppercase",lineHeight:"leading-3",children:null==(a=(0,ew.gt)(e))?void 0:a.name})})}),(0,v.jsx)("div",{id:"post-title",className:"mb-3",children:(0,v.jsx)(p.qh,{onClick:()=>(0,m.$s)("home_spotlight_post_title","click",`item_name: ${null==e?void 0:e.title}`),href:(0,ew.lr)(e),className:"flex items-start shrink-0",children:(0,v.jsx)(p.EY,{as:"p",weight:"font-bold",color:"text-grey-900",lineHeight:"leading-snug",letterSpacing:"tracking-tight-1",children:e.title})})}),(0,v.jsx)("div",{id:"border",className:"mb-2 border-b-2 border-carrot-500 w-10"}),(0,v.jsx)("div",{id:"description",children:(0,v.jsx)(p.EY,{as:"p",fontFamily:"font-source-serif-pro",color:"text-gray-600",lineHeight:"leading-[1.4rem]",fontSize:"text-sm",className:"line-clamp-3",children:(null==(i=e.seo)?void 0:i.desc)||e.excerpt})})]})]},e.title)})})};var ek=a(42484),eN=a(11511);let e_=e=>{var t;let{posts:a}=e,{eventTracker:i}=(0,eN.OF)(),{isVerified:n}=(0,ek.l)();return(0,v.jsx)(v.Fragment,{children:null==(t=a.slice(1,5))?void 0:t.map(e=>{var t,a,s,l;return(0,v.jsxs)("div",{className:"flex gap-x-4 py-6",children:[(0,v.jsx)(p.qh,{onClick:()=>{(0,m.$s)("home_recommendation_post_image","click",`item_name: ${null==e?void 0:e.title}`),(0,m.hy)("home_recommendation_post_image",(0,ew.e0)(e)),n&&i("click",e.id.toString())},href:(0,ew.e0)(e),className:"flex items-start shrink-0",children:(0,v.jsx)(u(),{loader:g.R2,alt:e.title,src:(null==(t=e.images)?void 0:t.desktopHorizontal)||e.thumbnail||(null==(a=e.images)?void 0:a.desktopSquare)||(null==(s=e.images)?void 0:s.desktopVertical)||r.d,width:160,height:90,className:"aspect-w-16 aspect-h-9 object-cover"})}),(0,v.jsxs)("div",{children:[(0,v.jsx)("div",{className:"mb-1",children:(0,v.jsx)(p.qh,{onClick:()=>{(0,m.$s)("home_recommendation_post_content_type","click",`item_name: ${e.contentType.find(e=>0===e.parent).name}`),(0,m.hy)("home_recommendation_post_content_type",ew.PC[e.contentType.find(e=>0===e.parent).slug])},href:ew.PC[e.contentType.find(e=>0===e.parent).slug],className:"flex",children:(0,v.jsx)(p.EY,{as:"p",weight:"font-bold",color:"text-jordy-700",fontSize:"text-xss",letterSpacing:"tracking-[0.03rem]",className:"uppercase",lineHeight:"leading-3",children:e.contentType.find(e=>0===e.parent).name})})}),(0,v.jsx)("div",{id:"post-title",className:"mb-3",children:(0,v.jsx)(p.qh,{onClick:()=>{(0,m.$s)("home_recommendation_post_title","click",`item_name: ${null==e?void 0:e.title}`),(0,m.hy)("home_recommendation_post_title",(0,ew.e0)(e))},href:(0,ew.e0)(e),className:"flex items-start shrink-0",children:(0,v.jsx)(p.EY,{as:"p",weight:"font-bold",color:"text-grey-900",lineHeight:"leading-snug",letterSpacing:"tracking-tight-1",children:e.title})})}),(0,v.jsx)("div",{id:"border",className:"mb-2 border-b-2 border-carrot-500 w-10"}),(0,v.jsx)("div",{id:"description",children:(0,v.jsx)(p.EY,{as:"p",fontFamily:"font-source-serif-pro",color:"text-gray-600",lineHeight:"leading-[1.4rem]",fontSize:"text-sm",className:"line-clamp-3",children:null==(l=e.seo)?void 0:l.desc})})]})]},e.title)})})},eS=()=>(0,v.jsxs)("div",{className:"space-x-6 hidden xl:flex xl:block",children:[(0,v.jsx)("div",{className:"h-[163px] w-[290px] bg-gray-200 animate-pulse"}),(0,v.jsxs)("div",{className:"lg:w-1/2",children:[(0,v.jsx)("div",{className:"w-32 h-5 bg-gray-200 animate-pulse mb-4 mt-1"}),(0,v.jsx)("div",{className:"w-32 h-4 bg-gray-200 animate-pulse mb-5"}),(0,v.jsx)("div",{className:"h-[5.45rem] bg-gray-200 animate-pulse"})]})]}),eA=()=>(0,v.jsxs)("div",{className:"space-x-6 hidden xl:flex xl:block border-t py-6",children:[(0,v.jsx)("div",{className:"h-[125px] w-[125px] bg-gray-200 animate-pulse"}),(0,v.jsxs)("div",{className:"lg:w-1/2",children:[(0,v.jsx)("div",{className:"w-32 h-3 bg-gray-200 animate-pulse mb-4 mt-1"}),(0,v.jsx)("div",{className:"w-32 h-4 bg-gray-200 animate-pulse mb-5"}),(0,v.jsx)("div",{className:"h-[3.6rem] bg-gray-200 animate-pulse"})]})]}),eC=()=>(0,v.jsxs)("div",{className:"flex xl:hidden flex-col",children:[(0,v.jsx)("div",{id:"border-hr",className:"border-b border-grey-100 mb-5"}),(0,v.jsx)("div",{id:"loading-image-mobile",className:"h-[300px] w-full bg-gray-200 animate-pulse"}),(0,v.jsx)("div",{className:"w-18 h-5 bg-gray-200 animate-pulse mt-8"}),(0,v.jsx)("div",{className:"w-12 h-3 bg-gray-200 animate-pulse mt-3"}),(0,v.jsx)("div",{className:"w-48 h-4 bg-gray-200 animate-pulse mt-3 mb-4"}),(0,v.jsx)("div",{id:"border",className:"mb-3 border-b-2 border-carrot-500 w-10"}),(0,v.jsx)("div",{className:"h-[4rem] bg-gray-200 animate-pulse mt-2"})]}),eP=()=>(0,v.jsxs)("div",{className:"flex xl:hidden flex-row space-x-6 py-6",children:[(0,v.jsx)("div",{className:"h-[125px] w-[125px] bg-gray-200 animate-pulse"}),(0,v.jsxs)("div",{className:"w-6/12",children:[(0,v.jsx)("div",{className:"w-32 h-3 bg-gray-200 animate-pulse mb-4 mt-1"}),(0,v.jsx)("div",{className:"w-32 h-4 bg-gray-200 animate-pulse mb-5"}),(0,v.jsx)("div",{className:"h-[3.6rem] bg-gray-200 animate-pulse"})]})]}),eT=e=>{let{posts:t,spotlightPosts:a,latestPost:i}=e;if(!t||0===t.length)return(0,v.jsxs)(v.Fragment,{children:[[1,2].map(e=>(0,v.jsx)(eA,{},e)),(0,v.jsx)(eP,{})]});if((0,s.li)()){let e=a.filter(e=>e.slug!==(null==i?void 0:i.slug)),r=new Set(e.map(e=>e.id.toString())),n=5-e.length,s=n>0?t.filter(e=>!r.has(e.id.toString())).slice(0,n):[];return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(ej,{posts:e}),s.length>0&&(0,v.jsx)(ej,{posts:s})]})}return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(e_,{posts:t}),t.length<5&&(0,v.jsx)(ej,{posts:(()=>{let e={},r=[],n=t.map(e=>e.id.toString());t.forEach(t=>{var a;let i=null==t||null==(a=t.contentType)||null==(a=a.find(e=>0===e.parent))?void 0:a.slug;i&&(e[i]?e[i]+=1:e[i]=1)});let s=a.filter(e=>e.slug!=(null==i?void 0:i.slug)).filter(e=>!n.includes(e.id.toString()));return(s.forEach(t=>{var a;let i=null==t||null==(a=t.contentType)||null==(a=a[0])?void 0:a.slug;i&&e[i]<=2&&(e[i]+=1,r.push(t.id.toString()))}),r.length+t.length===5)?s.filter(e=>{let t=e.id.toString();return r.includes(t)}):s.slice(1,5-(t.length-1))})()})]})};var eO=a(11304);let eE=()=>{let{0:e,1:t}=(0,k.useState)("yaqeeninstitute.org");return(0,k.useEffect)(()=>{t((0,E.EW)())},[]),(0,v.jsx)("div",{id:"donation",children:(0,v.jsxs)("div",{className:"bg-carrot-50 rounded-lg xl:px-4 px-5 xl:py-8 py-4 flex flex-col justify-center items-center",children:[(0,v.jsx)("div",{id:"donate-title",className:"mb-6",children:(0,v.jsx)(p.EY,{as:"p",weight:"font-extrabold",color:"text-black/75",fontSize:"text-xl",lineHeight:"xl:leading-7 leading-5",letterSpacing:"tracking-[-0.03rem]",className:"text-center",children:"With your contribution, we can make clarity a reality."})}),(0,v.jsx)(p.qh,{onClick:()=>(0,m.$s)("spotlight_donate_cta","click"),href:`/dhul-hijjah-donate?int_source=${e}&int_campaign=general&int_content=dhul-hijjah-landing-page_spotlight_donate_btn`,target:"_blank",className:"inline-flex items-center bg-carrot-600 hover:bg-carrot-700 px-4 py-3 rounded mb-2",children:(0,v.jsx)(p.EY,{as:"p",color:"text-white",weight:"font-bold",letterSpacing:"tracking-tight-1",lineHeight:"leading-tight",children:"Make a donation"})}),(0,v.jsxs)("div",{id:"donate-description",className:"inline-flex items-center gap-1",children:[(0,v.jsx)(q.g,{icon:"lock",className:"text-black/50",size:"xs",fixedWidth:!0}),(0,v.jsx)(p.EY,{as:"p",color:"text-black/50",fontSize:"text-xs",children:"Safe and secure."})]})]})})},eI={ramadan:[{title:"What Islam says about Ramadan",href:"/what-islam-says-about/ramadan"},{title:"Explore Ramadan.day",href:"https://ramadan.day"},{title:"See Eid.day",href:"https://eid.day"}],"dhul-hijjah":[{title:"Learn more about Hajj and Umrah",href:"/what-islam-says-about/hajj-and-umrah"},{title:"See Eid.day",href:"https://eid.day"}]},eD={"dhul-hijjah":"Dhul Hijjah",ramadan:"Ramadan"},eq=e=>{var t;let{hideImageOnMobile:a,campaign:i="ramadan"}=e;return(0,v.jsx)("div",{id:"ramadan-links",children:(0,v.jsxs)("div",{className:"bg-water h-full rounded-lg px-4 xl:py-8 py-7 flex flex-row xl:gap-x-4 gap-x-1 items-center",children:[!a&&(0,v.jsx)("div",{className:"xl:hidden block",children:(0,v.jsx)(u(),{loader:g.R2,alt:"Spotlight Ramadan",src:"/static/images/hiring.png",width:160,height:160})}),(0,v.jsx)("div",{className:"xl:block hidden",children:(0,v.jsx)(u(),{loader:g.R2,alt:"Spotlight Ramadan",src:"/static/images/hiring.png",width:120,height:120})}),(0,v.jsxs)("div",{className:"links",children:[(0,v.jsxs)(p.EY,{as:"p",fontSize:"text-xl",color:"text-endeavour-500",weight:"font-extrabold",className:"xl:pb-2 pb-3",lineHeight:"xl:leading-7 leading-5",children:["Get started with ",(0,v.jsx)("span",{className:"text-carrot-500",children:eD[i]})]}),(0,v.jsx)("div",{className:"pl-4",children:(0,v.jsx)("ul",{className:"list-disc ",children:null==(t=eI[i])?void 0:t.map(e=>(0,v.jsx)("li",{className:"url",children:(0,v.jsx)(p.qh,{target:"_blank",onClick:()=>(0,m.$s)("home_spotlight_ramadan_links","click",`item_name: ${e.title}`),href:e.href,children:(0,v.jsx)(p.EY,{lineHeight:"leading-6",weight:"font-semibold",children:e.title})})}
53,e.title))})})]})]})})},eM=e=>{var t,a,i,n;let{spotlightPrimaryPosts:l,cta:o="donate",personalizedPosts:c=[],compassCtaVariant:d="control",audiblePostForSpotlight:h}=e,{0:f,1:x}=(0,k.useState)(null),y=c.length>0?{contentTypeName:c[0].contentType[0].name,contentTypeSlug:c[0].contentType.find(e=>0===e.parent).slug,excerpt:null==(t=c[0].seo)?void 0:t.desc,imageHorizontal:c[0].images.desktopHorizontal||c[0].thumbnail,mobileHorizontal:c[0].images.mobileHorizontal||null,imageSquare:c[0].thumbnail,imageVertical:c[0].images.desktopHorizontal,slug:(0,ew.e0)(c[0]),title:c[0].title}:null,w=l.filter(e=>!(null!=c&&c.some(t=>e.slug===t.slug)))??(null==l?void 0:l.slice(0,1));return(0,k.useEffect)(()=>{(async()=>{if((null==c?void 0:c.length)==0)return;let e=[...w,...h?[h]:[]];0!==e.length&&x((0,s.li)()?e[0]:e[Math.floor(Math.random()*e.length)])})()},[c.length]),(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(b.d,{title:"Spotlight"}),(0,v.jsxs)("div",{id:"spotlight-section",className:"grid xl:grid-cols-8 xl:gap-10",children:[(0,v.jsxs)("div",{className:"xl:col-span-5",children:[f?(0,v.jsxs)("div",{id:"spotlight-post",children:[(0,v.jsx)(p.qh,{onClick:()=>(0,m.$s)("home_spotlight_latest_image","click",`item_name: ${null==f?void 0:f.title}`),href:(0,ev.Zd)(f)?f.slug:(0,ew.lr)(f),className:"flex",children:(0,v.jsx)(u(),{priority:!0,loader:g.R2,alt:"Spotlight Latest Post",src:(0,g.Qp)(f)||r.d,width:785,height:441,sizes:"(min-width: 1280px) 785px, 100vw"})}),(0,v.jsx)("div",{className:"my-5",children:(0,v.jsx)(p.ab,{pillColor:"bg-supernova",fontColor:"text-black/50",text:"Latest",fontSize:"text-xss",fontWeight:"font-bold",letterSpacing:"tracking-wide",radius:"rounded"})}),(0,v.jsx)("div",{className:"mb-1.5",children:(0,v.jsx)(p.qh,{onClick:()=>{var e;return(0,m.$s)("home_spotlight_latest_content_type","click",`item_name: ${null==f||null==(e=f.contentType)||null==(e=e.slice(-1))||null==(e=e[0])?void 0:e.name}`)},href:ew.PC[null==f||null==(a=f.contentType)||null==(a=a.slice(-1))||null==(a=a[0])?void 0:a.slug],className:"flex",children:(0,v.jsx)(p.EY,{as:"p",weight:"font-bold",color:"text-jordy-700",fontSize:"xl:text-sm text-xss",lineHeight:"xl:leading-4 leading-3",letterSpacing:"tracking-[0.04rem]",className:"uppercase",children:null==f||null==(i=f.contentType)||null==(i=i.slice(-1))||null==(i=i[0])?void 0:i.name})})}),(0,v.jsx)("div",{id:"post-title",className:"mb-4 xl:mb-5",children:(0,v.jsx)(p.qh,{onClick:()=>(0,m.$s)("home_spotlight_latest_title","click",`item_name: ${null==f?void 0:f.title}`),href:(0,ev.Zd)(f)?f.slug:(0,ew.lr)(f),className:"flex",children:(0,v.jsx)(p.EY,{as:"p",weight:"font-extrabold",color:"text-grey-900",fontSize:"xl:text-3xl text-2xl",lineHeight:"xl:leading-8 leading-[1.875rem]",letterSpacing:"xl:tracking-[-0.04rem] tracking-[-0.0375rem]",children:eb().decode((null==f?void 0:f.title)||"")})})}),(0,v.jsx)("div",{id:"border",className:"mb-3 border-b-2 border-carrot-500 w-10"}),(0,v.jsx)("div",{id:"description",children:(0,v.jsx)(p.EY,{as:"p",fontFamily:"font-source-serif-pro",fontSize:"xl:text-base text-sm",color:"text-gray-600",lineHeight:"leading-relaxed",letterSpacing:"tracking-[0.01rem]",className:"line-clamp-3",children:(0,ev.Zd)(f)?f.description:null==f||null==(n=f.seo)?void 0:n.desc})})]}):(0,v.jsx)("div",{children:(0,v.jsx)(eS,{})}),(0,v.jsx)("div",{id:"border-hr",className:"xl:my-10 my-5 border-b border-grey-100"}),!y&&(0,v.jsx)(eS,{}),y&&(0,v.jsxs)("div",{id:"popular-post",className:"xl:flex hidden xl:flex-row flex-col gap-6",children:[(0,v.jsxs)(p.qh,{onClick:()=>(0,m.$s)("home_recommendation_popular_image","click",`item_name: ${y.title}`),href:y.slug,className:"flex items-start shrink-0",children:[(0,v.jsx)("div",{id:"desktop-image",className:"xl:block hidden",children:(0,v.jsx)(u(),{loader:g.R2,alt:"Spotlight Popular Post",src:(0,ev.Zd)(y)?y.featured_image||r.d:y.imageHorizontal||y.imageVertical||y.imageSquare||r.d,width:290,height:163})}),(0,v.jsx)("div",{id:"mobile-image",className:"xl:hidden",children:(0,v.jsx)(u(),{loader:g.R2,alt:"Spotlight Popular Post",src:(0,ev.Zd)(y)?y.featured_image||r.d:y.imageHorizontal||y.imageVertical||y.imageSquare||r.d,width:585,height:441,className:" object-cover"})})]}),(0,v.jsxs)("div",{children:[(0,v.jsx)("div",{className:"mb-5 xl:mb-4",children:(0,v.jsx)(p.ab,{pillColor:"bg-supernova",fontColor:"text-black/50",text:"Just for you",fontSize:"text-xss",fontWeight:"font-bold",letterSpacing:"tracking-wide",radiu
53s:"rounded"})}),(0,v.jsx)("div",{id:"post-tag-d",className:"mb-3 xl:mb-0.6",children:(0,v.jsx)(p.qh,{onClick:()=>(0,m.$s)("home_recommendation_popular_content_type","click",`item_name: ${null==y?void 0:y.contentTypeName}`),href:ew.PC[y.contentTypeSlug],className:"flex",children:(0,v.jsx)(p.EY,{as:"p",weight:"font-bold",color:"text-jordy-700",fontSize:"text-xss",lineHeight:"leading-3",letterSpacing:"tracking-[0.04rem]",className:"uppercase",children:null==y?void 0:y.contentTypeName})})}),(0,v.jsx)("div",{id:"post-title",className:"mb-5 xl:mb-3",children:(0,v.jsx)(p.qh,{onClick:()=>(0,m.$s)("home_recommendation_popular_title","click",`item_name: ${null==y?void 0:y.title}`),href:null==y?void 0:y.slug,className:"flex",children:(0,v.jsx)(p.EY,{as:"p",weight:"font-bold",color:"text-grey-900",lineHeight:"leading-5",letterSpacing:"tracking-tight-1",children:null==y?void 0:y.title})})}),(0,v.jsx)("div",{id:"border",className:"mb-3 border-b-2 border-carrot-500 w-10"}),(0,v.jsx)("div",{id:"description",children:(0,v.jsx)(p.EY,{as:"p",fontFamily:"font-source-serif-pro",color:"text-gray-600",lineHeight:"leading-[1.4rem]",fontSize:"text-sm",className:"line-clamp-3",children:null==y?void 0:y.excerpt})})]})]})]}),(0,v.jsxs)("div",{className:"xl:col-span-3 xl:mb-0 mb-8",children:[(e=>{switch(e){case"ramadanLinks":return(0,v.jsx)(eq,{campaign:"ramadan"});case"donate":default:return(0,v.jsx)(eE,{});case"compass":return(0,v.jsx)(eO.j,{variant:d})}})(o),(0,v.jsx)("div",{id:"border-hr",className:"mt-6 border-b border-grey-100"}),(0,v.jsx)("div",{id:"recent-posts",className:"flex flex-col divide-y",children:(0,v.jsx)(eT,{posts:c,spotlightPosts:l,latestPost:f})})]}),!y&&(0,v.jsx)(eC,{}),y&&(0,v.jsxs)("div",{id:"popular-post",className:"xl:hidden flex xl:flex-row flex-col gap-5 mt-6",children:[(0,v.jsx)("div",{id:"border-hr",className:"border-b border-grey-100"}),(0,v.jsxs)(p.qh,{onClick:()=>(0,m.$s)("home_recommendation_popular_image","click",`item_name: ${null==y?void 0:y.title}`),href:null==y?void 0:y.slug,className:"flex items-start shrink-0",children:[(0,v.jsx)("div",{id:"desktop-image",className:"xl:block hidden",children:(0,v.jsx)(u(),{loader:g.R2,alt:"Popular post",src:(null==y?void 0:y.imageHorizontal)||(null==y?void 0:y.imageSquare)||(null==y?void 0:y.imageVertical)||r.d,width:290,height:163})}),(0,v.jsx)("div",{id:"mobile-image",className:"xl:hidden",children:(0,v.jsx)(u(),{loader:g.R2,alt:"Popular post",src:(null==y?void 0:y.imageSquare)||(null==y?void 0:y.imageHorizontal)||(null==y?void 0:y.imageVertical)||r.d,width:525,height:380,className:"bg-center object-cover"})})]}),(0,v.jsxs)("div",{children:[(0,v.jsx)("div",{className:"mb-3",children:(0,v.jsx)(p.ab,{pillColor:"bg-supernova",fontColor:"text-black/50",text:"Just for you",fontSize:"text-xss",fontWeight:"font-bold",letterSpacing:"tracking-wide",radius:"rounded"})}),(0,v.jsx)("div",{id:"post-tag-a",className:"mb-2",children:(0,v.jsx)(p.qh,{onClick:()=>(0,m.$s)("home_recommendation_popular_content_type","click",`item_name: ${null==y?void 0:y.contentTypeName}`),href:ew.PC[null==y?void 0:y.contentTypeSlug],className:"flex",children:(0,v.jsx)(p.EY,{as:"p",weight:"font-bold",color:"text-jordy-700",fontSize:"xl:text-sm text-xss",lineHeight:"xl:leading-7 leading-3",letterSpacing:"tracking-[0.04rem]",className:"uppercase",children:null==y?void 0:y.contentTypeName})})}),(0,v.jsx)("div",{id:"post-title",className:"mb-4",children:(0,v.jsx)(p.qh,{onClick:()=>(0,m.$s)("home_recommendation_popular_title","click",`item_name: ${null==y?void 0:y.title}`),href:null==y?void 0:y.slug,className:"flex",children:(0,v.jsx)(p.EY,{as:"p",weight:"font-bold",color:"text-grey-900",lineHeight:"leading-5",letterSpacing:"tracking-tight-1",children:null==y?void 0:y.title})})}),(0,v.jsx)("div",{id:"border",className:"mb-3 border-b-2 border-carrot-500 w-10"}),(0,v.jsx)("div",{id:"description",children:(0,v.jsx)(p.EY,{as:"p",fontFamily:"font-source-serif-pro",color:"text-gray-600",lineHeight:"leading-[1.4rem]",fontSize:"text-sm",className:"line-clamp-3",children:null==y?void 0:y.excerpt})})]})]})]})]})};function e$(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,i)}return a}let eH=e=>{let{spotlightPrimaryPosts:t,trendingPapersData:a,trendingVideosData:h,quickLinks:u,latestCurriculumUnits:m,featuredCollection:p,personalizedPosts:g,compassCtaVariant:f,audiblePostForSpotlight:x,books:y,searchTrendingKeywords:b}=e,k=(0,s.Mn)(),N=(null==k?void 0:k.campaign)===s.Hu.DhulHijjah?k.content:null,_=(0,c.$_)(),S={url:_,titleTemplate:"%s",title:(null==N?void 0:N.metaTitle)??"Yaqeen Institute for Islam
53ic Research",description:(null==N?void 0:N.metaDescription)??"An Islamic research institution dedicated to dismantling doubts and nurturing conviction by addressing relevant topics affecting today's society.",image:(null==N?void 0:N.metaImage)??r.d,imageAlt:null==N?void 0:N.imageAlt,addOrganizationSchema:!0,addWebSiteSchema:!0,webPage:{pageType:"CollectionPage",speakable:!0,hasPart:[{name:"Research papers and articles",url:`${_}/read`},{name:"Watch â videos and series",url:`${_}/watch`},{name:"Infographics",url:`${_}/infographics`},{name:"Books and ebooks",url:`${_}/read/books`},{name:"Curriculum",url:`${_}/curriculum`},{name:"What Islam Says Aboutâ¦",url:`${_}/what-islam-says-about`},{name:"Dhul Hijjah 2026 Resources",url:`${_}/dhul-hijjah`},{name:"Ramadan 2026 Resources",url:`${_}/ramadan`},{name:"Islamophobia Research Hub",url:`${_}/islamophobia`}],keywords:["Islamic research","Yaqeen Institute","Muslim scholarship","peer-reviewed Islamic research","Quran","Sunnah","Islamic theology","Hajj","Ramadan","Dhul Hijjah"],isPartOf:{type:"WebSite",id:`${_.replace(/\/$/,"")}/#website`,name:"Yaqeen Institute for Islamic Research",url:_}}},A=(0,n.a)("home_hero_");return(0,v.jsxs)(o.MainWebLayout,{metatag:S,children:[A?(0,v.jsx)(eh._,function(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?e$(Object(a),!0).forEach(function(t){(0,i.A)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):e$(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}({},A)):(0,v.jsx)(ed,{searchTrendingKeywords:b}),(0,s.li)()&&(0,v.jsx)(o.MainWebContentLayout,{className:"w-full",maxWidth:"max-w-7xl",padding:"xl:px-0 px-4",children:(0,v.jsx)(eg,{})}),(0,v.jsxs)("div",{className:"xl:block hidden",children:[(0,v.jsxs)(o.MainWebContentLayout,{className:"w-full",maxWidth:"max-w-7xl",padding:"xl:px-0 px-4",children:[(0,v.jsx)(eM,{compassCtaVariant:f,spotlightPrimaryPosts:t,cta:l,personalizedPosts:g,audiblePostForSpotlight:x}),(0,v.jsx)(ef,{}),(0,v.jsx)("div",{className:"mb-10",children:(0,v.jsx)(d.S,{})})]}),(0,v.jsx)(z,{}),(0,v.jsxs)(o.MainWebContentLayout,{className:"w-full",maxWidth:"max-w-7xl",padding:"xl:px-0 px-4",children:[(0,v.jsx)(Y,{featuredCollection:p}),(0,v.jsx)(w,{trendingPapersData:a,ga_category:"home_trending_papers"}),(0,v.jsx)(j,{trendingVideosData:h,ga_category:"home_trending_videos"}),(0,v.jsx)(W,{books:y}),(0,v.jsx)(U,{latestCurriculumUnits:m}),(0,v.jsx)(em,{quickLinks:u})]})]}),(0,v.jsxs)("div",{className:"xl:hidden block",children:[(0,v.jsxs)(o.MainWebContentLayout,{className:"w-full",maxWidth:"max-w-7xl",padding:"xl:px-0 px-4",children:[(0,v.jsx)(eM,{compassCtaVariant:f,spotlightPrimaryPosts:t,cta:l,personalizedPosts:g,audiblePostForSpotlight:x}),(0,v.jsx)(ex,{}),(0,v.jsx)("div",{className:"mb-10",children:(0,v.jsx)(d.S,{})}),(0,v.jsx)(Y,{featuredCollection:p})]}),(0,v.jsx)(z,{}),(0,v.jsxs)(o.MainWebContentLayout,{className:"w-full",maxWidth:"max-w-7xl",padding:"xl:px-0 px-4",children:[(0,v.jsx)(w,{trendingPapersData:a,ga_category:"home_trending_papers"}),(0,v.jsx)(j,{trendingVideosData:h,ga_category:"home_trending_videos"}),(0,v.jsx)(W,{books:y}),(0,v.jsx)(U,{latestCurriculumUnits:m}),(0,v.jsx)(em,{quickLinks:u})]})]})]})}},87071:(e,t,a)=>{"use strict";a.d(t,{e:()=>i});let i=[{name:"Arabic",slug:"arabic"},{name:"Malay",slug:"malay"},{name:"Turkish",slug:"turkish"}]},87194:(e,t,a)=>{"use strict";a.d(t,{SN:()=>n,jT:()=>i,tL:()=>r});let i=["Article","Behind the Scenes","Contribution","Featured - Infographic","Featured - Read","Featured - Series","Featured - Talk Toolkits","Featured - Watch","Featured â Events","Featured â News","News","No-Tag","Paper","Publication","Q&A","ramadan news","Series","Staff Pick","Talk Toolkit","Video","No-Tag","Infographic"],r=e=>e.toLowerCase().trim().replace(" ","-"),n=e=>{let t=`/tag/${e.slug}`;return`${window.location.protocol}//${window.location.host}${t}`}},87415:(e,t,a)=>{"use strict";a.d(t,{M:()=>f});var i=a(14232),r=a(89099),n=a(9361),s=a(45999),l=a(18012),o=a(94030),c=a(75625),d=a(65083),h=a(38311),u=a(69174),m=a(4797),p=a(37876);let g=new Map,f=e=>{var t,a,f;let{eventName:x,source:y,surface:b}=e,{updateState:v}=(0,h.K)(),{asPath:w}=(0,r.useRouter)(),{firebaseAuth:j}=(0,d.m9)(),{initAuth:k,userInfo:N}=j,{0:_,1:S}=(0,i.useState)(!1),{register:A,handleSubmit:C,errors:P,formState:T,reset:O}=(0,c.mN)({mode:"onChange"});(0,i.useEffect)(()=>{g.get(x)!==w&&(g.set(x,w),(0,l.$s)(x,"display","",!1,b?{surface:b}:{}))},[x,b,w]);let E=async e=>{S(!0),(0,l.$s)(x,"subscribe","",!1,b?{surface:b}:{}),(0,o.h6)("Subscribe");
53let[t,a]=await (0,s.r)("/api/v1/hs-forms/newsletter",{email:e.email,yaqeen_subscriber_source:e.yaqeen_subscriber_source,pageUri:window.location.href,pageName:x});if(S(!1),t){let e="paper_subscribe_cta"==x?"Thank you! You're all signed up for paper updates.":"Successfully subscribed to Newsletter";a&&(e="You're already on the list"),v(x.includes("paper")?"paper":"general",!0),(0,m.ge)(e,{closeButton:!0,autoClose:6e3}),N.authState!==n.j_.VerifiedAuth&&k()}else S(!1),(0,m.ge)("Error while subscribing. Please try again.",{closeButton:!0,autoClose:6e3});O()};return(0,p.jsxs)("div",{children:[_&&(0,p.jsx)(d.p8,{}),(0,p.jsxs)("div",{className:"subscribe-form",children:[(0,p.jsx)("form",{method:"post",onSubmit:C(E),children:(0,p.jsxs)("div",{className:"flex flex-col space-y-2",children:[(0,p.jsxs)("div",{className:`flex h-[${null!=N&&null!=(t=N.user)&&t.email?"2.3":"3.2"}rem]`,children:[!(null!=N&&null!=(a=N.user)&&a.email)&&(0,p.jsx)("input",{"aria-label":"Email",className:"w-full rounded leading-normal border h-[2.6rem] border-grey-light px-3 relative text-grey-800 border-gray-200",placeholder:"Email",type:"email",name:"email",ref:A({required:"Please enter your email",pattern:{value:/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i,message:"Invalid email address"}})}),(null==N||null==(f=N.user)?void 0:f.email)&&(0,p.jsx)("input",{type:"hidden",name:"email",value:N.user.email,ref:A({required:!1})}),(0,p.jsx)("input",{type:"hidden",name:"yaqeen_subscriber_source",value:y,ref:A({required:!1})})]}),(0,p.jsx)("div",{className:"flex",children:(0,p.jsx)(u.$n,{type:"submit",isDisabled:!T.isValid,className:`${T.isValid?"bg-carrot-500 hover:bg-carrot-600":"bg-carrot-800"} px-4 font-bold py-1.5 text-center w-full rounded caret-transparent`,children:(0,p.jsx)(u.EY,{as:"p",color:"text-white",weight:"font-semibold",className:"caret-transparent",children:"Subscribe"})})})]})}),P.email&&(0,p.jsx)(u.EY,{color:"text-red-500",children:P.email.message}),(0,p.jsx)("div",{className:"mt-3",children:(0,p.jsxs)(u.EY,{as:"p",color:"text-grey-800",fontSize:"text-xs",lineHeight:"leading-4",children:["By subscribing, you agree to our"," ",(0,p.jsx)("b",{children:(0,p.jsx)(u.qh,{href:"/privacy-policy",target:"_blank",children:"Privacy Policy"})})]})})]})]})}},88122:(e,t,a)=>{"use strict";a.d(t,{N:()=>i});let i=[{name:"United States",dial_code:"+1",code:"US"},{name:"Afghanistan",dial_code:"+93",code:"AF"},{name:"\xc5land Islands",dial_code:"+358",code:"AX"},{name:"Albania",dial_code:"+355",code:"AL"},{name:"Algeria",dial_code:"+213",code:"DZ"},{name:"American Samoa",dial_code:"+1684",code:"AS"},{name:"Andorra",dial_code:"+376",code:"AD"},{name:"Angola",dial_code:"+244",code:"AO"},{name:"Anguilla",dial_code:"+1264",code:"AI"},{name:"Antarctica",dial_code:"+672",code:"AQ"},{name:"Antigua and Barbuda",dial_code:"+1268",code:"AG"},{name:"Argentina",dial_code:"+54",code:"AR"},{name:"Armenia",dial_code:"+374",code:"AM"},{name:"Aruba",dial_code:"+297",code:"AW"},{name:"Australia",dial_code:"+61",code:"AU"},{name:"Austria",dial_code:"+43",code:"AT"},{name:"Azerbaijan",dial_code:"+994",code:"AZ"},{name:"Bahamas",dial_code:"+1242",code:"BS"},{name:"Bahrain",dial_code:"+973",code:"BH"},{name:"Bangladesh",dial_code:"+880",code:"BD"},{name:"Barbados",dial_code:"+1246",code:"BB"},{name:"Belarus",dial_code:"+375",code:"BY"},{name:"Belgium",dial_code:"+32",code:"BE"},{name:"Belize",dial_code:"+501",code:"BZ"},{name:"Benin",dial_code:"+229",code:"BJ"},{name:"Bermuda",dial_code:"+1441",code:"BM"},{name:"Bhutan",dial_code:"+975",code:"BT"},{name:"Bolivia",dial_code:"+591",code:"BO"},{name:"Bosnia and Herzegovina",dial_code:"+387",code:"BA"},{name:"Botswana",dial_code:"+267",code:"BW"},{name:"Brazil",dial_code:"+55",code:"BR"},{name:"British Indian Ocean Territory",dial_code:"+246",code:"IO"},{name:"Brunei Darussalam",dial_code:"+673",code:"BN"},{name:"Bulgaria",dial_code:"+359",code:"BG"},{name:"Burkina Faso",dial_code:"+226",code:"BF"},{name:"Burundi",dial_code:"+257",code:"BI"},{name:"Cambodia",dial_code:"+855",code:"KH"},{name:"Cameroon",dial_code:"+237",code:"CM"},{name:"Canada",dial_code:"+1",code:"CA"},{name:"Cape Verde",dial_code:"+238",code:"CV"},{name:"Cayman Islands",dial_code:"+ 345",code:"KY"},{name:"Central African Republic",dial_code:"+236",code:"CF"},{name:"Chad",dial_code:"+235",code:"TD"},{name:"Chile",dial_code:"+56",code:"CL"},{name:"China",dial_code:"+86",code:"CN"},{name:"Christmas Island",dial_code:"+61",code:"CX"},{name:"Cocos (Keeling) Islands",dial_code:"+61",code:"CC"},{name:"Colombia",dial_code:"+57",code:"CO"},{name:"Comoros",dial_code:"+269",code:"KM"},{name:"Congo, Republic of the Congo",dial_code:"+242",code:"CG"},{name:"Congo, The Democratic Republic of the Congo",dial_code:"+243",code:"CD"},{name:"Cura\xe7ao",dial_code:"+599",code:"CW"},{name:"Cook Islands",dial_code:"+682",code:"CK"},{name:"Costa Rica",dial_code:"+506",code:"CR"},{name:"C\xf4te d'Ivoire",dial_code:"+225",code:"CI"},{name:"Croatia",dial_code:"+385",code:"HR"},{name:"Cuba",dial_code:"+53",code:"CU"},{name:"Cyprus",dial_code:"+357",code:"CY"},{name:"Czech Republic",dial_code:"+420",code:"CZ"},{name:"Denmark",dial_code:"+45",code:"DK"},{name:"Djibouti",dial_code:"+253",code:"DJ"}
53,{name:"Dominica",dial_code:"+1767",code:"DM"},{name:"Dominican Republic",dial_code:"+1849",code:"DO"},{name:"Ecuador",dial_code:"+593",code:"EC"},{name:"Egypt",dial_code:"+20",code:"EG"},{name:"El Salvador",dial_code:"+503",code:"SV"},{name:"Equatorial Guinea",dial_code:"+240",code:"GQ"},{name:"Eritrea",dial_code:"+291",code:"ER"},{name:"Estonia",dial_code:"+372",code:"EE"},{name:"Ethiopia",dial_code:"+251",code:"ET"},{name:"Falkland Islands (Malvinas)",dial_code:"+500",code:"FK"},{name:"Faroe Islands",dial_code:"+298",code:"FO"},{name:"Fiji",dial_code:"+679",code:"FJ"},{name:"Finland",dial_code:"+358",code:"FI"},{name:"France",dial_code:"+33",code:"FR"},{name:"French Guiana",dial_code:"+594",code:"GF"},{name:"French Polynesia",dial_code:"+689",code:"PF"},{name:"Gabon",dial_code:"+241",code:"GA"},{name:"Gambia",dial_code:"+220",code:"GM"},{name:"Georgia",dial_code:"+995",code:"GE"},{name:"Germany",dial_code:"+49",code:"DE"},{name:"Ghana",dial_code:"+233",code:"GH"},{name:"Gibraltar",dial_code:"+350",code:"GI"},{name:"Greece",dial_code:"+30",code:"GR"},{name:"Greenland",dial_code:"+299",code:"GL"},{name:"Grenada",dial_code:"+1473",code:"GD"},{name:"Guadeloupe",dial_code:"+590",code:"GP"},{name:"Guam",dial_code:"+1671",code:"GU"},{name:"Guatemala",dial_code:"+502",code:"GT"},{name:"Guernsey",dial_code:"+44",code:"GG"},{name:"Guinea",dial_code:"+224",code:"GN"},{name:"Guinea-Bissau",dial_code:"+245",code:"GW"},{name:"Guyana",dial_code:"+595",code:"GY"},{name:"Haiti",dial_code:"+509",code:"HT"},{name:"Holy See (Vatican City State)",dial_code:"+379",code:"VA"},{name:"Honduras",dial_code:"+504",code:"HN"},{name:"Hong Kong",dial_code:"+852",code:"HK"},{name:"Hungary",dial_code:"+36",code:"HU"},{name:"Iceland",dial_code:"+354",code:"IS"},{name:"India",dial_code:"+91",code:"IN"},{name:"Indonesia",dial_code:"+62",code:"ID"},{name:"Iran, Islamic Republic of Persian Gulf",dial_code:"+98",code:"IR"},{name:"Iraq",dial_code:"+964",code:"IQ"},{name:"Ireland",dial_code:"+353",code:"IE"},{name:"Isle of Man",dial_code:"+44",code:"IM"},{name:"Israel",dial_code:"+972",code:"IL"},{name:"Italy",dial_code:"+39",code:"IT"},{name:"Jamaica",dial_code:"+1876",code:"JM"},{name:"Japan",dial_code:"+81",code:"JP"},{name:"Jersey",dial_code:"+44",code:"JE"},{name:"Jordan",dial_code:"+962",code:"JO"},{name:"Kazakhstan",dial_code:"+77",code:"KZ"},{name:"Kenya",dial_code:"+254",code:"KE"},{name:"Kiribati",dial_code:"+686",code:"KI"},{name:"Korea, Democratic People's Republic of Korea",dial_code:"+850",code:"KP"},{name:"Korea, Republic of South Korea",dial_code:"+82",code:"KR"},{name:"Kuwait",dial_code:"+965",code:"KW"},{name:"Kyrgyzstan",dial_code:"+996",code:"KG"},{name:"Laos",dial_code:"+856",code:"LA"},{name:"Latvia",dial_code:"+371",code:"LV"},{name:"Lebanon",dial_code:"+961",code:"LB"},{name:"Lesotho",dial_code:"+266",code:"LS"},{name:"Liberia",dial_code:"+231",code:"LR"},{name:"Libyan Arab Jamahiriya",dial_code:"+218",code:"LY"},{name:"Liechtenstein",dial_code:"+423",code:"LI"},{name:"Lithuania",dial_code:"+370",code:"LT"},{name:"Luxembourg",dial_code:"+352",code:"LU"},{name:"Macao",dial_code:"+853",code:"MO"},{name:"Macedonia",dial_code:"+389",code:"MK"},{name:"Madagascar",dial_code:"+261",code:"MG"},{name:"Malawi",dial_code:"+265",code:"MW"},{name:"Malaysia",dial_code:"+60",code:"MY"},{name:"Maldives",dial_code:"+960",code:"MV"},{name:"Mali",dial_code:"+223",code:"ML"},{name:"Malta",dial_code:"+356",code:"MT"},{name:"Marshall Islands",dial_code:"+692",code:"MH"},{name:"Martinique",dial_code:"+596",code:"MQ"},{name:"Mauritania",dial_code:"+222",code:"MR"},{name:"Mauritius",dial_code:"+230",code:"MU"},{name:"Mayotte",dial_code:"+262",code:"YT"},{name:"Mexico",dial_code:"+52",code:"MX"},{name:"Micronesia, Federated States of Micronesia",dial_code:"+691",code:"FM"},{name:"Moldova",dial_code:"+373",code:"MD"},{name:"Monaco",dial_code:"+377",code:"MC"},{name:"Mongolia",dial_code:"+976",code:"MN"},{name:"Montenegro",dial_code:"+382",code:"ME"},{name:"Montserrat",dial_code:"+1664",code:"MS"},{name:"Morocco",dial_code:"+212",code:"MA"},{name:"Mozambique",dial_code:"+258",code:"MZ"},{name:"Myanmar",dial_code:"+95",code:"MM"},{name:"Namibia",dial_code:"+264",code:"NA"},{name:"Nauru",dial_code:"+674",code:"NR"},{name:"Nepal",dial_code:"+977",code:"NP"},{name:"Netherlands",dial_code:"+31",code:"NL"},{name:"Netherlands Antilles",dial_code:"+599",code:"AN"},{name:"New Caledonia",dial_code:"+687",code:"NC"},{name:"New Zealand",dial_code:"+64",code:"NZ"},{name:"Nicaragua",dial_code:"+505",code:"NI"},{name:"Niger",dial_code:"+227",code:"NE"},{name:"Nigeria",dial_code:"+234",code:"NG"},{name:"Niue",dial_code:"+683",code:"NU"},{name:"Norfolk Island",dial_code:"+672",code:"NF"},{name:"Northern Mariana Islands",dial_code:"+1670",code:"MP"},{name:"Norway",dial_code:"+47",code:"NO"},{name:"Oman",dial_code:"+968",code:"OM"},{name:"Pakistan",dial_code:"+92",code:"PK"},{name:"Palau",dial_code:"+680",code:"PW"},{name:"Palestine",dial_code:"+970",code:"PS"},{name:"Panama",dial_code:"+507",code:"PA"},{name:"Papua New Guinea",dial_code:"+675",code:"PG"},{name:"Paraguay",dial_code:"+595",code:"PY"},{name:"Peru",dial_code:"+51",code:"PE"},{name:"Philippines",dial_code:"+63",code:"PH"},{name:"Pitcairn",dial_code:"+872",code:"PN"},{name:"Poland",dial_code:"+48",code:"PL"},{name:"Portugal",dial_code:"+351",code:"PT"},{name:"Puerto Rico",dial_code:"+1939",code:"PR"},{name:"Qatar",dial_code:"+974",code:"QA"},{name:"Romania",dial_code:"+40",code:"RO"},{name:"Russia",dial_code:"+7",code:"RU"},{name:"Rwanda",dial_code:"+250",code:"RW"},{name:"R\xe9union",dial_code:"+262",code:"RE"},{name:"Saint Barthelemy",dial_code:"+590",code:"BL"},{name:"Saint Helena, Ascension and Tristan Da Cunha",dial_code:"+290",code:"SH"},{name:"Saint Kitts and Nevis",dial_code:"+1869",code:"KN"}
53,{name:"Saint Lucia",dial_code:"+1758",code:"LC"},{name:"Saint Martin",dial_code:"+590",code:"MF"},{name:"Saint Pierre and Miquelon",dial_code:"+508",code:"PM"},{name:"Saint Vincent and the Grenadines",dial_code:"+1784",code:"VC"},{name:"Samoa",dial_code:"+685",code:"WS"},{name:"San Marino",dial_code:"+378",code:"SM"},{name:"Sao Tome and Principe",dial_code:"+239",code:"ST"},{name:"Saudi Arabia",dial_code:"+966",code:"SA"},{name:"Senegal",dial_code:"+221",code:"SN"},{name:"Serbia",dial_code:"+381",code:"RS"},{name:"Seychelles",dial_code:"+248",code:"SC"},{name:"Sierra Leone",dial_code:"+232",code:"SL"},{name:"Singapore",dial_code:"+65",code:"SG"},{name:"Slovakia",dial_code:"+421",code:"SK"},{name:"Slovenia",dial_code:"+386",code:"SI"},{name:"Solomon Islands",dial_code:"+677",code:"SB"},{name:"Somalia",dial_code:"+252",code:"SO"},{name:"South Africa",dial_code:"+27",code:"ZA"},{name:"South Sudan",dial_code:"+211",code:"SS"},{name:"South Georgia and the South Sandwich Islands",dial_code:"+500",code:"GS"},{name:"Spain",dial_code:"+34",code:"ES"},{name:"Sri Lanka",dial_code:"+94",code:"LK"},{name:"Sudan",dial_code:"+249",code:"SD"},{name:"Suriname",dial_code:"+597",code:"SR"},{name:"Svalbard and Jan Mayen",dial_code:"+47",code:"SJ"},{name:"Swaziland",dial_code:"+268",code:"SZ"},{name:"Sweden",dial_code:"+46",code:"SE"},{name:"Switzerland",dial_code:"+41",code:"CH"},{name:"Syrian Arab Republic",dial_code:"+963",code:"SY"},{name:"Taiwan",dial_code:"+886",code:"TW"},{name:"Tajikistan",dial_code:"+992",code:"TJ"},{name:"Tanzania, United Republic of Tanzania",dial_code:"+255",code:"TZ"},{name:"Thailand",dial_code:"+66",code:"TH"},{name:"Timor-Leste",dial_code:"+670",code:"TL"},{name:"Togo",dial_code:"+228",code:"TG"},{name:"Tokelau",dial_code:"+690",code:"TK"},{name:"Tonga",dial_code:"+676",code:"TO"},{name:"Trinidad and Tobago",dial_code:"+1868",code:"TT"},{name:"Tunisia",dial_code:"+216",code:"TN"},{name:"Turkey",dial_code:"+90",code:"TR"},{name:"Turkmenistan",dial_code:"+993",code:"TM"},{name:"Turks and Caicos Islands",dial_code:"+1649",code:"TC"},{name:"Tuvalu",dial_code:"+688",code:"TV"},{name:"Uganda",dial_code:"+256",code:"UG"},{name:"Ukraine",dial_code:"+380",code:"UA"},{name:"United Arab Emirates",dial_code:"+971",code:"AE"},{name:"United Kingdom",dial_code:"+44",code:"GB"},{name:"Uruguay",dial_code:"+598",code:"UY"},{name:"Uzbekistan",dial_code:"+998",code:"UZ"},{name:"Vanuatu",dial_code:"+678",code:"VU"},{name:"Venezuela, Bolivarian Republic of Venezuela",dial_code:"+58",code:"VE"},{name:"Vietnam",dial_code:"+84",code:"VN"},{name:"Virgin Islands, British",dial_code:"+1284",code:"VG"},{name:"Virgin Islands, U.S.",dial_code:"+1340",code:"VI"},{name:"Wallis and Futuna",dial_code:"+681",code:"WF"},{name:"Western Sahara",dial_code:"+212",code:"EH"},{name:"Yemen",dial_code:"+967",code:"YE"},{name:"Zambia",dial_code:"+260",code:"ZM"},{name:"Zimbabwe",dial_code:"+263",code:"ZW"}]},88564:(e,t,a)=>{"use strict";a.d(t,{A:()=>n}),a(14232);var i=a(17199),r=a(37876);let n=e=>{let{html:t}=e,a={replace:e=>{switch(e.name){case"ul":return(0,r.jsx)("ul",{className:"list-disc mt-4 ml-8 space-y-1 mb-5",children:(0,i.zd)(e.children||[],a)});case"ol":return(0,r.jsx)("ol",{className:"list-decimal ml-8 space-y-2 mb-5 list-outside marker:text-gray-600",children:(0,i.zd)(e.children||[],a)});case"li":return(0,r.jsx)("li",{className:"pl-1",children:(0,i.zd)(e.children||[],a)});case"p":return(0,r.jsx)("p",{className:"mb-4",children:(0,i.zd)(e.children||[],a)})}return e}};return(0,r.jsx)(r.Fragment,{children:(0,i.Ay)(t,a)})}},89610:(e,t,a)=>{"use strict";a.r(t),a.d(t,{DownloadFormatButton:()=>_});var i=a(66284),r=a(14232),n=a(18125),s=a(97114),l=a(95311),o=a(14742),c=a(52916),d=a(69158),h=a(9361),u=a(42484),m=a(71829),p=a(18012),g=a(56189),f=a(65083),x=a(69174),y=a(6143),b=a(55850),v=a(27365),w=a(37876);function j(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,i)}return a}function k(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};
53t%2?j(Object(a),!0).forEach(function(t){(0,i.A)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):j(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}let N=e=>{let{state:t,onPDFClick:a,onMarkdownClick:i,buttonWidth:n}=e,{0:o,1:d}=(0,r.useState)(n),h=(0,r.useRef)(null),{overlayProps:u}=(0,l.e)({onClose:()=>t.close(),shouldCloseOnBlur:!0,isOpen:t.isOpen,isDismissable:!0},h);return(0,r.useEffect)(()=>{t.isOpen&&d(n)},[t.isOpen,n]),(0,w.jsx)(s.n1,{restoreFocus:!0,children:(0,w.jsx)(c.m.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:10},className:"absolute z-50 top-full left-0 mt-2",style:{width:o?`${o}px`:"100%"},children:(0,w.jsxs)("div",k(k({ref:h},u),{},{children:[(0,w.jsx)(l.Rz,{onDismiss:()=>t.close()}),(0,w.jsx)("div",{className:"bg-white shadow-lg border rounded-md overflow-hidden w-full",children:(0,w.jsxs)("div",{className:"py-1",children:[(0,w.jsx)(x.$n,{onPress:()=>{a(),t.close()},className:"w-full text-left","aria-label":"Download PDF",children:(0,w.jsx)("div",{className:"py-2 px-4 hover:bg-carrot-50",children:(0,w.jsx)(x.EY,{fontSize:"text-sm",color:"text-gray-900",lineHeight:"leading-5",children:"PDF"})})}),(0,w.jsx)(x.$n,{onPress:()=>{i(),t.close()},className:"w-full text-left","aria-label":"Download Markdown",children:(0,w.jsx)("div",{className:"py-2 px-4 hover:bg-carrot-50",children:(0,w.jsx)(x.EY,{fontSize:"text-sm",color:"text-gray-900",lineHeight:"leading-5",children:"Markdown"})})})]})}),(0,w.jsx)(l.Rz,{onDismiss:()=>t.close()})]}))})})},_=e=>{let{handleDownloadClick:t,slug:a,backgroundColor:i,onFormatSelect:s,downloadLink:l}=e,c="text-white",j="Download",{0:k,1:_}=(0,r.useState)(!1),S=(0,r.useRef)(null),{firebaseAuth:A}=(0,f.m9)(),{userInfo:C,initAuth:P,appendItemToAuthParams:T}=A,{isVerified:O,overlay:E}=(0,u.l)(),{hasURLParam:I,removeURLParam:D}=(0,m.W)(),q=(0,o.T)({}),M=(0,o.T)({}),{0:$,1:H}=(0,r.useState)(void 0);(0,r.useEffect)(()=>{M.isOpen&&S.current&&H(S.current.offsetWidth)},[M.isOpen]);let R=()=>{M.isOpen?M.close():M.open()},z=(0,r.useCallback)(async()=>{_(!0),(0,p.$s)("read_detail","download",`md-link: /api/v1/md-gen/${a}`);try{let e=await fetch(`/api/v1/md-gen/${a}`);if(!e.ok)throw Error("Failed to download markdown");let t=await e.blob(),i=window.URL.createObjectURL(t),r=document.createElement("a");r.href=i,r.download=`${a}.md`,document.body.appendChild(r),r.click(),window.URL.revokeObjectURL(i),document.body.removeChild(r)}catch(e){console.error("Error downloading markdown:",e),g.toast.error("Failed to download markdown. Please try again.")}finally{_(!1)}},[a]),F=(0,r.useCallback)(()=>{t(),y.Cj.getItem(y.UT.PaperPopupDismissed)||q.open()},[t,q]),Y=e=>(C.authState!==h.j_.VerifiedAuth||!O)&&(C.authState!==h.j_.VerifiedAuth||O?(T({downloadFormat:e}),P()):E.open(),!0);return(0,r.useEffect)(()=>{if(I("downloadFormat")){if(C.authState===h.j_.VerifiedAuth&&O){let e=new URL(window.location.href).searchParams.get("downloadFormat");D("downloadFormat"),"markdown"===e?z():"pdf"===e&&F()}(C.authState===h.j_.AuthError||C.authState===h.j_.AuthDismissed)&&(D("downloadFormat"),C.authState===h.j_.AuthError&&g.toast.error("Login failed. Please try again to download."))}},[C.authState,O,I,D,z,F]),(0,w.jsxs)("div",{className:"flex flex-col",children:[(0,w.jsx)(v.$,{isOpen:q.isOpen,onClose:()=>q.close(),onDismiss:()=>{y.Cj.setItem(y.UT.PaperPopupDismissed,!0,y.fI.OneWeek),q.close()}}),(0,w.jsxs)("div",{ref:S,className:"relative inline-flex",children:[(0,w.jsxs)(x.qh,{href:l||"#",role:"button","aria-haspopup":"true","aria-expanded":M.isOpen,"aria-disabled":k||void 0,"aria-label":j,className:(0,b.Lo)([`rounded inline-flex items-center border-transparent ${i??"bg-carrot-600"} h-[38px]`,c,k?"opacity-60 cursor-not-allowed":""]),onClick:e=>{e.preventDefault(),k||R()},onKeyDown:e=>{" "===e.key&&(e.preventDefault(),k||R())},children:[(0,w.jsx)("span",{className:"flex-1 py-[9px] px-4 text-center",children:(0,w.jsx)(x.EY,{as:"p",color:c,weight:"font-bold",lineHeight:"leading-none",className:"tracking-[-0.192px]",children:j})}),(0,w.jsx)("span",{className:"self-stretch px-[14px] inline-flex items-center border-l border-white",children:(0,w.jsx)(n.g,{icon:"chevron-down",className:`${c} text-xs transition-transform ${M.isOpen?"rotate-180":""}`})})]}),(0,w.jsx)(d.N,{children:M.isOpen&&(0,w.jsx)(N,{state:M,onPDFClick:()=>{null==s||s("pdf"),Y("pdf")||F()},onMarkdownClick:()=>{null==s||s("markdown"),Y("markdown")||z()},buttonWidth:$})})]})]})}},89874:(e,t,a)=>{"use strict";a.d(t,{_:()=>i,o:()=>r});let i=function(e){return e.belief="Belief",e.attitude="Attitude",e.spiritual_behavior="Spiritual Behavior",e.spiritual_connection="Spiritual Connection",e.institution="Institution",e.contribution="Contribution",e}({}),r=function(e){return e.Emerging="Emerging",e.Growing="Growing",e.Advanced="Advanced",e}({})},91055:(e,t,a)=>{"use strict";a.d(t,{B:()=>o});var i=a(14232),r=a(22998),n=a(22242),s=a(69174),l=a(37876);let o=e=>{var t;let{amount:a,color:o="text-endeavour-500",weight:c="font-bold",fontCurrencySize:d="text-base",fontAmountSize:h="text-base",currency:u}=e,m=(0,r.JY)({style:"currency",currency:null==(t=n.$i.find(e=>
53e.code===u))?void 0:t.title,currencyDisplay:"narrowSymbol"}).formatToParts(a).map((e,t)=>{let{type:a,value:i}=e;return"currency"===a?(0,l.jsx)(s.EY,{fontSize:d,weight:c,color:o,children:i},`currency-${t}`):(0,l.jsx)(s.EY,{fontSize:h,color:o,weight:c,children:i},`${a}-${t}`)});return(0,l.jsx)(i.Fragment,{children:m})}},91275:(e,t,a)=>{"use strict";a.d(t,{I:()=>s});var i=a(14232),r=a(69174),n=a(37876);function s(e){let{tabs:t,activeKey:a,onSelect:s,ariaLabel:l,className:o=""}=e,{0:c,1:d}=(0,i.useState)(!1);return((0,i.useEffect)(()=>d(!0),[]),c)?(0,n.jsx)("div",{className:`hide-scrollbar flex whitespace-nowrap overflow-x-auto overflow-y-hidden bg-blue-50 rounded-lg px-3 py-2 gap-3 ${o}`,role:"tablist","aria-label":l,children:t.map(e=>{let t=e.key===a;return(0,n.jsx)("button",{id:`tab-${e.key}`,role:"tab","aria-selected":t,"aria-controls":`tabpanel-${e.key}`,tabIndex:t?0:-1,onClick:()=>s(e.key),className:`flex items-center justify-center h-[34px] px-[13px] py-[9px] rounded ${t?"bg-[#0052ff] shadow-sm":"hover:bg-white/50"}`,children:(0,n.jsx)(r.EY,{fontSize:"text-sm",weight:"font-bold",color:t?"text-white":"text-[#314158]",className:"whitespace-nowrap tracking-[-0.168px]",children:e.label})},e.key)})}):(0,n.jsx)("div",{className:`bg-blue-50 rounded-lg px-3 py-2 h-[50px] ${o}`})}},93269:(e,t,a)=>{"use strict";a.d(t,{R:()=>i});let i={Belief:[{title:"Living by Judgement Day's Promise",type:"VIEW INFOGRAPHIC",summary:"One day, weâll stand before our Creator and be held accountable. Thinking about this day can help shape our daily lives.",link:"/infographics/living-by-judgment-days-promise-infographic",postId:"23902",postSlug:"living-by-judgment-days-promise-infographic",postTitle:"Living by Judgment Day’s Promise | Infographic",imgSrc:"https://i.yaqeeninstitute.org/wp-content/uploads/2023/06/doj-Infographic.jpg"},{title:"Why Ethics Needs Islam",type:"READ PAPER",summary:"How do we know right from wrong? Is Islam the only religion that offers the true answer?",link:"/read/paper/being-a-good-person-is-not-enough-why-ethics-need-islam",postId:"23006",postSlug:"being-a-good-person-is-not-enough-why-ethics-need-islam",postTitle:"Being a “Good Person” is Not Enough: Why Ethics Need Islam",imgSrc:"https://i.yaqeeninstitute.org/wp-content/uploads/2023/06/papers-without-overlay__why-ethics-needs-islam.jpg"},{title:"Fortified and Fulfilled",type:"READ PAPER",summary:"Life often whispers to us, and sometimes screams at us, that we have a Master upon the Throne and that all we seek rests with Him.",link:"/read/paper/allahs-name-as-samad",postId:"12604",postSlug:"allahs-name-as-samad",postTitle:"Fortified and Fulfilled: Allah’s Name as-Samad",imgSrc:"https://i.yaqeeninstitute.org/wp-content/uploads/2023/06/papers-without-overlay__fortified-and-fulfilled.jpg"},{title:"Why Islam?",type:"PODCAST",summary:"How certain can we be that Islam is correct? What are people missing when they choose to follow other religions?",link:"/mohammad-elshinawy/why-islam-with-sh-mohammad-elshinawy-doubletake-s4-e2",postId:"25922",postSlug:"why-islam-with-sh-mohammad-elshinawy-doubletake-s4-e2",postTitle:"Why Islam? with Sh. Mohammad Elshinawy | DoubleTake S4 E2",imgSrc:"https://i.yaqeeninstitute.org/wp-content/uploads/2023/06/doubletake-without-overlay__why-islam.jpg"},{title:"The Alchemy of Divine Love",type:"READ PAPER",summary:"People sometimes have distorted perceptions of God. But having a healthy perception of God is essential for thriving.",link:"/read/paper/the-alchemy-of-divine-love-how-our-view-of-god-affects-our-faith-and-happiness",postId:"25941",postSlug:"the-alchemy-of-divine-love-how-our-view-of-god-affects-our-faith-and-happiness",postTitle:"The Alchemy of Divine Love: How Our View of God Affects Our Faith and Happiness",imgSrc:"https://i.yaqeeninstitute.org/wp-content/uploads/2023/06/papers-without-overlay__the-alchemy-of-divine-love.jpg"},{title:"In Pursuit of Conviction: Proving God's Existence",type:"READ PAPER",summary:"Without God, life is meaningless. Find your purpose, value, and worth by seeking God.",link:"/read/paper/in-pursuit-of-conviction-ii-proving-gods-existence",postId:"12652",postSlug:"in-pursuit-of-conviction-ii-proving-gods-existence",postTitle:"Proving Godâs Existence | In Pursuit of Conviction II",imgSrc:"https://i.yaqeeninstitute.org/wp-content/uploads/2023/06/in-pursuit-of-conviction-proving-gods-existence.jpg"},{title:"Do you really believe in angels?",type:"READ PAPER",summary:"Faith in angels provides us with immense psychological and spiritual support that enables us to strive for excellence on our journey to Allah.",link:"/read/paper/in-pursuit-of-conviction-iii-do-you-really-believe-in-angels",postId:"19715",postSlug:"in-pursuit-of-conviction-iii-do-you-really-believe-in-angels",postTitle:"Do You Really Believe in Angels? | In Pursuit of Conviction",imgSrc:"https://i.yaqeeninstitute.org/wp-content/uploads/2023/06/do-you-really-believe-in-angels.jpg"},{title:"The Case for Allah's Existence",type:"VIEW INFOGRAPHIC",summary:"Belief in God and the question for existential truth is not always easy. But the Qurâan inspires certainty in faith by appealing to our hearts and minds.",link:"/infographics/the-case-for-allahs-existence-infographic",postId:"1346",postSlug:"the-case-for-allahs-existence-infographic",postTitle:"The Case for Allahâs Existence",imgSrc:"https://i.yaqeeninstitute.org/wp-content/uploads/2023/06/infographics__case-for-allah-existence.jpg"},{title:"Why do we need hadith?",type:"PODCAST",summary:"The most authentic texts, after the Qurâan, are the books of Hadith. Theyâre foundational to how we understand and practice our religion.",link:"/jonathan-brown/why-do-we-need-
53hadith-with-dr-jonathan-brown-doubletake-podcast",postId:"26167",postSlug:"why-do-we-need-hadith-with-dr-jonathan-brown-doubletake-podcast",postTitle:"Why Do We Need Hadith? with Dr. Jonathan Brown | DoubleTake S4 E6",imgSrc:"https://i.yaqeeninstitute.org/wp-content/uploads/2023/06/doubletake-without-overlay__why-do-we-need-hadith.jpg"},{title:"The Final Prophet",type:"READ BOOK",summary:"There are countless proofs that lead to one certain conclusion: Muhammad ï·º was indeed the final messenger of God to this world.",link:"/read/books/proofs-of-prophethood",imgSrc:"https://i.yaqeeninstitute.org/wp-content/uploads/2023/06/books-without-overlay__pop-book.jpg"},{title:"Jannah",type:"WATCH VIDEO",summary:"Every second of discomfort you faced and every one of your sacrificesâall will be accounted for, returned manifold with sights and rewards unimaginable.",link:"/omar-suleiman/jannah-is-waiting-for-you-episode-1",postId:"26548",postSlug:"jannah-is-waiting-for-you-episode-1",postTitle:"Jannah Is Waiting for You | Episode 1",imgSrc:"https://i.yaqeeninstitute.org/wp-content/uploads/2023/06/videos-without-overlay__jannah.jpg"},{title:"Why does God allow evil to exist?",type:"VIEW INFOGRAPHIC",summary:"A life of trials helps perfect us as humans by pushing us to increase in righteousness and value Allah and our ultimate home.",link:"/infographics/why-does-god-allow-evil-to-exist-infographic",postId:"12527",postSlug:"why-does-god-allow-evil-to-exist-infographic",postTitle:"Why Does God Allow Evil to Exist?",imgSrc:"https://i.yaqeeninstitute.org/wp-content/uploads/2023/06/infographics__why-does-god-allow-evil-to-exist.jpg"}],Attitude:[{title:"Healing the soul",type:"READ BLOG",summary:"Did you know that being religious can strengthen your mental health? Learn more in our blog post.",link:"/yaqeen-institute/healing-the-soul-religion-and-mental-health",postId:"24895",postSlug:"healing-the-soul-religion-and-mental-health",postTitle:"Healing the Soul: Religion and Mental Health | Blog",imgSrc:"https://i.yaqeeninstitute.org/wp-content/uploads/2023/06/blog-healingsoul-featureimage.jpg"},{title:"Can faith make me happy?",type:"PODCAST",summary:"What does the journey to attaining happiness look like? Find out more in our DoubleTake episode.",link:"/yasienmohamed/can-faith-make-me-happy-doubletake-podcast",postId:"22387",postSlug:"can-faith-make-me-happy-doubletake-podcast",postTitle:"S2E6 – Can faith make me happy? | DoubleTake",imgSrc:"https://i.yaqeeninstitute.org/wp-content/uploads/2023/06/doubletake-without-overlay__can-faith-make-me-happy.jpg"},{title:"A Voyage Through Tawakkul",type:"VIEW INFOGRAPHIC",summary:"When we nurture reliance on God, our hearts can find ease. Embark on a voyage of discovery, and learn 10 ways to grow tawakkul.",link:"/infographics/a-voyage-through-tawakkul-infographic",postId:"19417",postSlug:"a-voyage-through-tawakkul-infographic",postTitle:"A Voyage Through Tawakkul",imgSrc:"https://i.yaqeeninstitute.org/wp-content/uploads/2023/06/infographics__tawkkul.
53jpg"},{title:"What does it mean to trust God?",type:"PODCAST",summary:"God has promised us that with every hardship comes ease. Why, then, do we sometimes struggle to trust His plan?",link:"/roohi-tahir/what-does-it-mean-to-trust-god-doubletake-podcast",postId:"22244",postSlug:"what-does-it-mean-to-trust-god-doubletake-podcast",postTitle:"S2E3 – What does it mean to trust God? | DoubleTake",imgSrc:"https://i.yaqeeninstitute.org/wp-content/uploads/2023/06/doubletake-without-overlay__what-does-it-mean-to-trust-god.jpg"},{title:"Trauma",type:"READ BOOK",summary:"Through all the numbness or pain you may feel, and all the hardships you experience, Allah is still there for you.",link:"/read/books/your-lord-has-not-forsaken-you",imgSrc:"https://i.yaqeeninstitute.org/wp-content/uploads/2023/06/books-without-overlay__trauma-book.jpg"},{title:"Why Does God Ask People to Worship Him?",type:"VIEW INFOGRAPHIC",summary:"Why does God ask us to worship Him, when He has no need for our worship?",link:"/infographics/why-does-god-ask-people-to-worship-him-infographic",postId:"12112",postSlug:"why-does-god-ask-people-to-worship-him-infographic",postTitle:"Why Does God Ask People to Worship Him?",imgSrc:"https://i.yaqeeninstitute.org/wp-content/uploads/2023/06/infographics__why-worship.jpg"},{title:"Overcoming pessimism with faith",type:"READ PAPER",summary:"Every life experience occurs in accordance with Allah's will and contains good that will far outweigh the evil that seems more apparent at the time.",link:"/read/paper/overcoming-pessimism-with-faith",postId:"1017",postSlug:"overcoming-pessimism-with-faith",postTitle:"Overcoming Pessimism with Faith",imgSrc:"https://i.yaqeeninstitute.org/wp-content/uploads/2023/06/papers-without-overlay__overcoming-pessimism-with-faith.jpg"},{title:"Reconciling divine decree and free will",type:"READ PAPER",summary:"How can we reconcile the facts that Allah has absolute power and that we are also responsible for our actions? Are we forced to do what we do, or are our choices meaningful?",link:"/read/paper/reconciling-the-divine-decree-and-free-will-in-islam",postId:"2285",postSlug:"reconciling-the-divine-decree-and-free-will-in-islam",postTitle:"Reconciling the Divine Decree and Free Will in Islam",imgSrc:"https://i.yaqeeninstitute.org/wp-content/uploads/2023/06/papers-without-overlay__reconciling-divine-decree-and-free-will.jpg"},{title:"Islam and the LGBT Question",type:"READ PAPER",summary:"LGBT discourse often makes Muslims feel embarrassed by Islamic teachings on sexual ethics. Islamâs sexual ethics are not the problem, however. They are the only solution.",link:"/read/paper/islam-and-the-lgbt-question-reframing-the-narrative",postId:"25385",postSlug:"islam-and-the-lgbt-question-reframing-the-narrative",postTitle:"Islam and the LGBT Question: Reframing the Narrative",imgSrc:"https://i.yaqeeninstitute.org/wp-content/uploads/2023/06/papers-without-overlay__islam-and-the-lgbt.jpg"},{title:"How can I bring peace to my heart?",type:"PODCAST",summary:"How can our understanding of God transform our hearts? What does it look like to be in a state of peace?",link:"/jinan-yousef/how-can-i-bring-peace-to-my-heart-doubletake-podcast",postId:"22195",postSlug:"how-can-i-bring-peace-to-my-heart-doubletake-podcast",postTitle:"S2E2 – How can I bring peace to my heart? | DoubleTake",imgSrc:"https://i.yaqeeninstitute.org/wp-content/uploads/2023/06/doubletake-without-overlay__how-can-i-bring-peace-to-my-heart.jpg"},{title:"Building Resilience in Children",type:"READ PAPER",summary:"Resilience and trauma mitigation are protective factors that help preserve both oneâs mental and spiritual health, and thus imperative to integrate in parenting Muslim children.",link:"/read/paper/building-resilience-in-children-an-islamic-model-of-parenting",postId:"25583",postSlug:"building-resilience-in-children-an-islamic-model-of-parenting",postTitle:"Building Resilience in Children: An Islamic Model of Parenting",imgSrc:"https://i.yaqeeninstitute.org/wp-content/uploads/2023/06/papers-without-overlay__building-resilience-in-children.jpg"},{title:"Raising doubt",type:"VIEW INFOGRAPHIC",summary:"Many Muslims are dealing with increased doubt in their faith, as they navigate their identity. This begs the question, âWhat factors move people towards religious doubt or certainty?â",link:"/infographics/raising-doubt-infographic",postId:"20077",postSlug:"raising-doubt-infographic",postTitle:"Raising Doubt",imgSrc:"https://i.yaqeeninstitute.org/wp-content/uploads/2023/06/infographics__raising-doubts.jpg"}],"Spiritual Behavior":[{title:"Guidebook to God",type:"WATCH VIDEO",summary:"Focus your journey of spiritual development on the concepts and practices that are most beloved to God.",link:"/yahyaibrahim/ep-1-the-beauty-of-faith-guidebook-to-god",postId:"19493",postSlug:"ep-1-the-beauty-of-faith-guidebook-to-god",postTitle:"Ep. 1: The Beauty of Faith | Guidebook to God",imgSrc:"https://i.yaqeeninstitute.org/wp-content/uploads/2023/06/videos-without-overlay__guidebook.jpg"},{title:"The Shukr Lifestyle",type:"READ BOOK",summary:"Shukr (gratitude) is an essential part of Islamic
53spirituality. Build a habit of gratitude today.",link:"/read/books/the-shukr-lifestyle",imgSrc:"https://i.yaqeeninstitute.org/wp-content/uploads/2023/06/books-without-overlay__shukr.jpg"},{title:"The Road to Return",type:"WATCH VIDEO",summary:"We are imperfect. But God has given us resources that can help us understand our shortcomings and how to come back when we stray from His path.",link:"/yahyaibrahim/ep-1-submitting-to-god-road-to-return",postId:"21142",postSlug:"ep-1-submitting-to-god-road-to-return",postTitle:"Ep. 1: Submitting to God | Road to Return",imgSrc:"https://i.yaqeeninstitute.org/wp-content/uploads/2023/06/road-to-return.jpg"},{title:"Tadabbur",type:"VIEW INFOGRAPHIC",summary:"As Muslims, we must nourish our souls like we nourish our bodies. The Qurâan is meant to quench our spirits. Disover the key to strengthening your relationship with the Qurâan.",link:"/infographics/tadabbur-the-hunt-for-quranic-treasures-infographic",postId:"23739",postSlug:"tadabbur-the-hunt-for-quranic-treasures-infographic",postTitle:"Tadabbur: The Hunt for Qur’anic Treasures | Infographic",imgSrc:"https://i.yaqeeninstitute.org/wp-content/uploads/2023/06/infographics__tadabbur.jpg"},{title:"Allah's name al-Sami",type:"READ PAPER",summary:"Allah invites us to talk to Him. He tells us that He hears what is on our tongues and what is in our hearts. Wherever you are, take a few seconds right now to talk to Allah.",link:"/read/paper/the-one-who-always-listens-allahs-name-al-sami",postId:"23502",postSlug:"the-one-who-always-listens-allahs-name-al-sami",postTitle:"The One Who Always Listens: Allahâs Name al-Samīʿ",imgSrc:"https://i.yaqeeninstitute.org/wp-content/uploads/2023/06/papers-without-overlay__the-one-who-always-listens.jpg"},{title:"Tahajjud",type:"WATCH VIDEO",summary:"Praying tahajjud can help us accomplish our personal goals as well as grant us the energy and the guidance to help others.",link:"/tamara-gray/ep-1-why-tahajjud-tahajjud-waking-soul-and-society",postId:"22085",postSlug:"ep-1-why-tahajjud-tahajjud-waking-soul-and-society",postTitle:"Ep. 1: Why Tahajjud? | Tahajjud: Waking Soul & Society",imgSrc:"https://i.yaqeeninstitute.org/wp-content/uploads/2023/06/videos-without-overlay__tahajjud.jpg"},{title:"5 Steps to Mastering the Art of Worship",type:"VIEW INFOGRAPHIC",summary:"Explore 5 ways to help you connect with God and make your worship successful and meaningful.",link:"/infographics/5-steps-to-mastering-the-art-of-worship-infographic",postId:"20818",postSlug:"5-steps-to-mastering-the-art-of-worship-infographic",postTitle:"5 Steps to Mastering the Art of Worship",imgSrc:"https://i.yaqeeninstitute.org/wp-content/uploads/2023/06/infographics__5-steps.jpg"},{title:"Prophet prayers for relief and protection",type:"READ PAPER",summary:"Explore a collection of du'as through which we can find meaning and strengthen our faith.",link:"/read/paper/duas-for-relief-and-protection",postId:"14860",postSlug:"duas-for-relief-and-protection",postTitle:"Prophetic Prayers for Relief and Protection",imgSrc:"https://i.yaqeeninstitute.org/wp-content/uploads/2023/06/books-without-overlay__duas.jpg"},{title:"Habits to win",type:"WATCH VIDEO",summary:"Explore ways you can implement good habits and be productive without feeling like youâre constantly running a marathon.",link:"/tesneem-alkiek/ep1-know-your-purpose-habits-to-win-here-and-hereafter",postId:"22573",postSlug:"ep1-know-your-purpose-habits-to-win-here-and-hereafter",postTitle:"Ep. 1: Know Your Purpose | Habits To Win Here and Hereafter",imgSrc:"https://i.yaqeeninstitute.org/wp-content/uploads/2023/06/videos-without-overlay__habits-to-win.jpg"},{title:"Repentance as a way of life",type:"READ PAPER",summary:"Discover the necessary steps to repentance (tawba), its many benefits, and a number of commonly faced obstacles.",link:"/read/paper/repentance-as-a-way-of-life-islam-spirituality-practice",postId:"9030",postSlug:"repentance-as-a-way-of-life-islam-spirituality-practice",postTitle:"Repentance as a Way of Life: Islam, Spirituality, & Practice",imgSrc:"https://i.yaqeeninstitute.org/wp-content/uploads/2023/06/papers-without-overlay__repentance-as-a-way-of-life.jpg"},{title:"ḤayÄ: More Than Just Modesty",type:"READ PAPER",summary:"Islam centralized certain moral qualities, like haya, that serve a foundational role upon which all other virtues can be built.",link:"/read/paper/haya-more-than-just-modesty",postId:"21613",postSlug:"haya-more-than-just-modesty",postTitle:"ḤayÄʾ: More Than Just Modesty",imgSrc:"https://i.yaqeeninstitute.org/wp-content/uploads/2023/06/papers-without-overlay__haya-more-than-just-modesty.jpg"},{title:"Building character",type:"VIEW INFOGRAPHIC",summary:"Faith in Islam is not solely based on creed, but also a set of character dispositions that are reflected in the foundation of Islam: the five pillars.",link:"/infographics/building-character-with-islamic-pillars",postId:"23228",postSlug:"building-character-with-islamic-pillars",postTitle:"Building Character with Islamic Pillars | Infographic",imgSrc:"https://i.yaqeeninstitute.org/wp-content/uploads/2023/06/infographics__buildig-characters.jpg"}],"Spiritual Connection":[{title:"The Spiritual Psychology of Worship",type:"READ PAPER",summary:"In pursuit of God, a person opens their spirit to the endless potential of growth and illumination. Discover the gems of worship.",link:"/read/paper/the-spiritual-psychology-of-worship",postId:"15632",postSlug:"the-spiritual-psychology-of-worship",postTitle:"The Spiritual Psychology of Worship",imgSrc:"https://i.yaqeeninstitute.org/wp-content/uploads/2023/06/papers-without-overlay__the-spiritual-psychology-of-worship.jpg"},{title:"Angels in Your Presence",type:"WATCH VIDEO",summary:"Explore the actions that invite angels to pray upon you and carry your name to the One who created us all.",link:"/omar-suleiman/episode-1-theyve-got-your-back-angels-in-your-presence",postId:"15489",postSlug:"episode-1-theyve-got-your-back-angels-in-your-presence",postTitle:"Episode 1: They’ve Got Your Back",imgSrc:"https://i.yaqeeninstitute.org/wp-content/uploads/2023/06/videos-without-overlay__angels-in-their-presence.jpg"},{title:"Can I be spiritual without religion?",type:"PODCAST",summary:"Is it necessary to follow a religion in order to experience spirituality? And does that religion need to be Islam?",link:"/tom-facchine/can-i-be-spiritual-without-religion-with-imam-tom-facchine-doubletake-s4-e3",postId:"26007",postSlug:"can-i-be-spiritual-without-religion-with-imam-tom-facchine-doubletake-s4-e3",postTitle:"Can I be Spiritual Without Religion? with Imam Tom Facchine | DoubleTake S4 E3",imgSrc:"https://i.yaqeeninstitute.org/wp-content/uploads/2023/06/doubletake-without-overlay__can-i-be-spiritual-without-religion.jpg"},{title:"10 Steps to a Deeper Connection with the Qur'an",type:"READ BLOG",summary:"âWhoever receives the Qurâan, it is as Allah has spoken to him. Cultivate this reflective connection today.",link:"/yousef-wahb/tadabbur-10-steps-to-a-deeper-connection-with-the-quran",postId:"25377",postSlug:"tadabbur-10-steps-to-a-deeper-connection-with-the-quran",postTitle:"Tadabbur: 10 steps to a deeper connection with the Qurâan | Blog",imgSrc:"https://i.yaqeeninstitute.org/wp-content/uploads/2023/06/blog-taddaburpodcastpromo-featureimage.jpg"},{title:"Qur'an 30 for 30 The Companion Reader",type:"READ BLOG",summary:"The Qurâan is brimming with lessons for the believer. What can we glean from the stories told within?",link:"/yaqeen-institute/best-islamic-tafsir-books-to-read-during-ramadan",postId:"23822",postSlug:"best-islamic-tafsir-books-to-read-during-ramadan",postTitle:"Best Qur’an resources to read in English this Ramadan | Blog",imgSrc:"https://i.yaqeeninstitute.org/wp-content/uploads/2023/06/books-without-overlay__quran-30for30.jpg"},{title:"Meeting Muhammad",type:"WATCH VIDEO",summary:"Do you ever wonder what it would be like to be in the presence of Prophet Muhammad ï·º?",link:"/omar-suleiman/trailer-meeting-muhammad-a-ramadan-series",postId:"20353",postSlug:"trailer-meeting-muhammad-a-ramadan-series",postTitle:"Meeting Muhammad ï·º",imgSrc:"https://i.yaqeeninstitute.org/wp-content/uploads/2023/06/videos-without-overlay__meeting-muhammad.jpg"},{title:"Attaching to Allah",type:"WATCH VIDEO",summary:"As we move through life, the pangs of loss grow bigger. Realizing this, many of us give up and detach. But this isn't the answer. Discover the balance between love and loss, dunya and akhirah.",link:"/omar-suleiman/trailer-attaching-to-allah-a-dhul-hijjah-series",postId:"24617",postSlug:"trailer-attaching-to-allah-a-dhul-hijjah-series",postTitle:"Trailer | Attaching to Allah, a Dhul-Hijjah Series",imgSrc:"https://i.yaqeeninstitute.org/wp-content/uploads/2023/06/videos-without-overlay__attaching-to-allah.jpg"}
53,{title:"Approaching the Qur'an through Allah's Names",type:"READ PAPER",summary:"When we approach the Qurâan knowing who sent it, we can begin to realize how truly precious it is and savor our time with it and its meanings.",link:"/read/paper/approaching-the-quran-through-the-names-of-allah",postId:"26679",postSlug:"approaching-the-quran-through-the-names-of-allah",postTitle:"Approaching the Qur’an Through the Names of Allah",imgSrc:"https://i.yaqeeninstitute.org/wp-content/uploads/2023/06/papers-without-overlay__approaching-the-quran.jpg"},{title:"OCD and Satan's Whispers",type:"PODCAST",summary:"What does it mean for Satan to whisper to us? How do we draw the line between his whisperings and our own thoughts?",link:"/najwa-awad/ocd-and-satans-whispers-with-sr-najwa-awad-doubletake-s4-e5",postId:"26103",postSlug:"ocd-and-satans-whispers-with-sr-najwa-awad-doubletake-s4-e5",postTitle:"OCD and Satan’s Whispers, with Sr. Najwa Awad | DoubleTake S4 E5",imgSrc:"https://i.yaqeeninstitute.org/wp-content/uploads/2023/06/doubletake-without-overlay__ocd-and-satans-whispers.jpg"},{title:"How to be a mindful Muslim",type:"VIEW INFOGRAPHIC",summary:"How can we have more control over our thoughts in this time of information overload and anxiety? Mindfulness can help discipline our minds and refine our connection with Allah.",link:"/infographics/how-to-be-a-mindful-muslim-infographic",postId:"9341",postSlug:"how-to-be-a-mindful-muslim-infographic",postTitle:"How to be a Mindful Muslim | Infographic",imgSrc:"https://i.yaqeeninstitute.org/wp-content/uploads/2023/06/infographics__mindfullness.jpg"},{title:"Allah's name al-Halim",type:"READ PAPER",summary:"Reflecting upon Allah's name al-Halim should remind us of Godâs kindness in His treatment of us, as He is never hasty in punishing, giving us the opportunity to return.",link:"/read/paper/daily-recipients-of-opportunity-allahs-name-al-halim",postId:"16389",postSlug:"daily-recipients-of-opportunity-allahs-name-al-halim",postTitle:"Daily Recipients of Opportunity: Allahâs Name al-Halim",imgSrc:"https://i.yaqeeninstitute.org/wp-content/uploads/2023/06/papers-without-overlay__allahs-name-al-halim.jpg"},{title:"The Divine Gift of Gratitude",type:"READ PAPER",summary:"Shukr embodies the very essence of faith, worship, steadfastness, and the recognition of Allah as the true source of all blessings.",link:"/read/paper/the-divine-gift-of-gratitude-the-secret-of-happiness-in-the-modern-world",postId:"24247",postSlug:"the-divine-gift-of-gratitude-the-secret-of-happiness-in-the-modern-world",postTitle:"The Divine Gift of Gratitude: The Secret of Happiness in the Modern World",imgSrc:"https://i.yaqeeninstitute.org/wp-content/uploads/2023/06/papers-without-overlay__the-divine-gift-of-gratitude.jpg"}],Institution:[{title:"Holidays as a convert",type:"READ BLOG",summary:"To be Muslim, one really must be Muslim with others. Read how a journey to Islam showed the importance of community. ",link:"/jonathan-brown/celebrating-the-holidays-as-a-muslim-convert",postId:"25936",postSlug:"celebrating-the-holidays-as-a-muslim-convert",postTitle:"Celebrating the Holidays as a Muslim Convert | Blog",imgSrc:"https://i.yaqeeninstitute.org/wp-content/uploads/2023/06/blog-christmas-featureimage.jpg"},{title:"The Principal of Communal Responsibility in Islam",type:"READ PAPER",summary:"In a world where the dominant culture is increasingly individualistic and social isolation is on the rise, we need to help our Muslim communities prosper.",link:"/read/paper/fard-kifayah-the-principle-of-communal-responsibility-in-islam",postId:"21084",postSlug:"fard-kifayah-the-principle-of-communal-responsibility-in-islam",postTitle:"Fard Kifayah: The Principle of Communal Responsibility in Islam",imgSrc:"https://i.yaqeeninstitute.org/wp-content/uploads/2023/06/papers-without-overlay__the-principal-of-communal-responsibility-in-islam.jpg"},{title:"Uniting Our Ummah When Politics Divide",type:"WATCH KHUTBAH",summary:"Sometimes, it can feel like our differences are impossible to reconcile. How can we stay united in an era of intense political polarization?",link:"/omar-suleiman/uniting-our-ummah-when-politics-divide-khutbah-by-dr-omar-suleiman",postId:"24847",postSlug:"uniting-our-ummah-when-politics-divide-khutbah-by-dr-omar-suleiman",postTitle:"Uniting Our Ummah When Politics Divi
53de | Khutbah",imgSrc:"https://i.yaqeeninstitute.org/wp-content/uploads/2023/06/videos-without-overlay__uniting-our-ummah-when-politics-divide.jpg"},{title:"Souls Assorted",type:"VIEW INFOGRAPHIC",summary:"The Muslim community is tremendously diverse. We all have our own skills and talents that we can use to contribute to our communities.",link:"/infographics/souls-assorted-understanding-your-spiritual-personality-infographic",postId:"21631",postSlug:"souls-assorted-understanding-your-spiritual-personality-infographic",postTitle:"Souls Assorted: Understanding Your Spiritual Personality | Infographic",imgSrc:"https://i.yaqeeninstitute.org/wp-content/uploads/2023/06/infographics__souls-assorted.jpg"},{title:"Spiritual personality quiz",type:"READ PAPER",summary:"Learn more about your strengths and weaknesses to understand how you can best build your relationship with Allah and with your community.",link:"/read/paper/souls-assorted-an-islamic-theory-of-spiritual-personality",postId:"9675",postSlug:"souls-assorted-an-islamic-theory-of-spiritual-personality",postTitle:"Souls Assorted: An Islamic Theory of Spiritual Personality",imgSrc:"https://i.yaqeeninstitute.org/wp-content/uploads/2023/06/spiritual-personality.jpg"},{title:"Allah Loves the Mosques",type:"WATCH VIDEO",summary:"The most beloved of places to Allah is the masjid. Find out why no other place can replace the role it should have in our lives.",link:"/omar-suleiman/allah-loves-the-mosques-episode-23",postId:"11602",postSlug:"allah-loves-the-mosques-episode-23",postTitle:"Allah Loves The Mosques | Episode 23",imgSrc:"https://i.yaqeeninstitute.org/wp-content/uploads/2023/06/videos-without-overlay__allah-loves-the-mosques.jpg"},{title:"Faith, Poverty, and Community",type:"PODCAST",summary:"With so much diversity, we can sometimes feel disconnected from one another. How we can find our place in our local communities?",link:"/tahirwyatt/faith-poverty-and-community-doubletake-podcast",postId:"22464",postSlug:"faith-poverty-and-community-doubletake-podcast",postTitle:"S2E8 – Faith, Poverty, and Community | DoubleTake",imgSrc:"https://i.yaqeeninstitute.org/wp-content/uploads/2023/06/doubletake-without-overlay__faith-poverty-and-community.jpg"},{title:"âBe BrothersââCase Studies of Muslim Receptions of Refugees in History",type:"READ PAPER",summary:"Muslims throughout history have helped refugees. What is our role today?",link:"/read/paper/be-brothers-case-studies-of-muslim-receptions-of-refugees-in-history",postId:"9173",postSlug:"be-brothers-case-studies-of-muslim-receptions-of-refugees-in-history",postTitle:"âBe BrothersââCase Studies of Muslim Receptions of Refugees in History",imgSrc:"https://i.yaqeeninstitute.org/wp-content/uploads/2023/06/papers-without-overlay__be-brothers%E2%80%94case-studies-of-muslim-receptions-of-refugees-in-history.jpg"},{title:"Islam Beautifies Culture",type:"VIEW INFOGRAPHIC",summary:"There is no inherent âMuslim culture.â Cultural knowledge enriches Islam and brings a lot of benefit to the global Muslim community.",link:"/infographics/islam-beautifies-culture-infographic",postId:"14209",postSlug:"islam-beautifies-culture-infographic",postTitle:"Islam Beautifies Culture",imgSrc:"https://i.yaqeeninstitute.org/wp-content/uploads/2023/06/infographics__islam-beautifies-culture.jpg"},{title:"You can't do it alone",type:"WATCH VIDEO",summary:"Every description of getting to Jannah in the Qurâan includes a call for us to take as many people with us along the way.",link:"/omar-suleiman/you-cant-do-it-alone-part-4",postId:"26300",postSlug:"you-cant-do-it-alone-part-4",postTitle:"You Canât Do It Alone (Part 4)",imgSrc:"https://i.yaqeeninstitute.org/wp-content/uploads/2023/06/videos-without-overlay__you-cant-do-it-alone.jpg"},{title:"Building prophetic communities for women",type:"PODCAST",summary:"What do we lose when women are disengaged from Islamic institutions? How can we improve access and connection to the tradition for Muslim women?",link:"/maryam-amir/building-prophetic-communities-for-women-doubletake-podcast",postId:"26315",postSlug:"building-prophetic-communities-for-women-doubletake-podcast",postTitle:"Building Prophetic Communities for Women",imgSrc:"https://i.yaqeeninstitute.org/wp-content/uploads/2023/06/doubletake-without-overlay__building-prophetic-communities-for-women.jpg"}
53,{title:"How can we combat racism in our communities",type:"VIEW CONVERSATION",summary:"Once we are able to make a sincere effort toward being anti-racist in our daily lives, we can move closer and closer to the Prophetic example. Talk about how you can start today.",link:"/conversations#how-can-we-combat-racism-in-our-communities-",imgSrc:"https://i.yaqeeninstitute.org/wp-content/uploads/2023/06/how-can-we-combat-racism-in-our-communities.jpg"}],Contribution:[{title:"CM with Ibn Ali Miller",type:"WATCH VIDEO",summary:"Discover how finding his purpose transformed Ibn Ali Miller's life for the better.",link:"/yaqeen-institute/on-finding-your-purpose-and-investing-in-the-youth-ibn-ali-miller-confidentmuslim",postId:"4832",postSlug:"on-finding-your-purpose-and-investing-in-the-youth-ibn-ali-miller-confidentmuslim",postTitle:"On Finding Your Purpose and Investing in the Youth – Ibn Ali Miller | Confident Muslim",imgSrc:"https://i.yaqeeninstitute.org/wp-content/uploads/2023/06/videos-without-overlay____ibn-ali-miller-cm.jpg"},{title:"Financing Kindness as a Society",type:"READ PAPER",summary:"Throughout history, Muslims built and maintained charitable endowments, ensuring that the community as a whole was cared for.",link:"/read/paper/financing-kindness-as-a-society-the-rise-fall-of-islamic-philanthropic-institutions-waqfs",postId:"13841",postSlug:"financing-kindness-as-a-society-the-rise-fall-of-islamic-philanthropic-institutions-waqfs",postTitle:"Financing Kindness as a Society: The Rise & Fall of Islamic Philanthropic Institutions (Waqfs)",imgSrc:"https://i.yaqeeninstitute.org/wp-content/uploads/2023/06/papers-without-overlay__financing-kindness-as-a-society.jpg"},{title:"Can Activism be guided by Qur'an and Sunnah?",type:"PODCAST",summary:"What does Islam say about our role as believers in addressing social injustices?",link:"/omar-suleiman/can-activism-be-guided-by-the-quran-sunnah-doubletake-podcast",postId:"21426",postSlug:"can-activism-be-guided-by-the-quran-sunnah-doubletake-podcast",postTitle:"S1E12 – Can Activism Be Guided by the Qur’an & Sunnah? | DoubleTake",imgSrc:"https://i.yaqeeninstitute.org/wp-content/uploads/2023/06/doubletake-without-overlay__-can-activism-be-guided-by-the-quran-sunnah.jpg"},{title:"Justice: The Spirit of Islam",type:"VIEW INFOGRAPHIC",summary:"Justice isnât just a concept in Islam. It is an obligation on every human rooted in Godâs divine nature, permeating every aspect of the universe.",link:"/infographics/justice-the-spirit-of-islam",postId:"17252",postSlug:"justice-the-spirit-of-islam",postTitle:"Justice: The Spirit of Islam",imgSrc:"https://i.yaqeeninstitute.org/wp-content/uploads/2023/06/infographics__justice.jpg"},{title:"Psychology of Wealth",type:"READ PAPER",summary:"Islam introduced economic principles aimed at improving society. Find out how Muslims use these principles to grow their wealth in this life and the next.",link:"/read/paper/psychology-of-wealth-an-islamic-perspective-on-personal-finance",postId:"21362",postSlug:"psychology-of-wealth-an-islamic-perspective-on-personal-finance",postTitle:"Psychology of Wealth: An Islamic Perspective on Personal Finance",imgSrc:"https://i.yaqeeninstitute.org/wp-content/uploads/2023/06/papers-without-overlay__psychology-of-wealth.jpg"},{title:"Islam's legacy of Mental Health",type:"WATCH VIDEO",summary:"Did you know that Muslims developed the first psychiatric hospitals in the world? Learn more about the first homes of healing found throughout the Muslim world.",link:"/rania-awaad/how-muslims-developed-the-first-psychiatric-hospitals-in-the-world-holistic-healing-series",postId:"19404",postSlug:"how-muslims-developed-the-first-psychiatric-hospitals-in-the-world-holistic-healing-series",postTitle:"How Muslims Developed the First Psychiatric Hospitals in the World | Holistic Healing Series",imgSrc:"https://i.yaqeeninstitute.org/wp-content/uploads/2023/06/videos-without-overlay__islams-legacy-of-mental-health.jpg"},{title:"The Firsts",type:"WATCH VIDEO",summary:"Dive into the stories of the trailblazers of our ummah and be inspired to revive their personalities buried in history.",link:"/listen/the-firsts",postId:"21892",postSlug:"the-firsts",postTitle:"The Firsts",imgSrc:"https://i.yaqeeninstitute.org/wp-content/uploads/2023/06/videos-without-overlay__the-firsts.jpg"},{title:"A Plea to Saintly Women",type:"READ PAPER",summary:"Raised in a poetry-loving culture, Nana Asma'u used poetry to teach the Qurâan and transmit Islam
53ic values, memorialize great people, and preserve her peopleâs history.",link:"/read/paper/a-plea-to-saintly-women-the-life-and-legacy-of-nana-asmau",postId:"26053",postSlug:"a-plea-to-saintly-women-the-life-and-legacy-of-nana-asmau",postTitle:"A Plea to Saintly Women: The Life and Legacy of Nana Asma’u",imgSrc:"https://i.yaqeeninstitute.org/wp-content/uploads/2023/06/papers-without-overlay__a-plea-to-saintly-women.jpg"},{title:"How Islam Spread",type:"VIEW INFOGRAPHIC",summary:"Trade, influencers, and Islamâs emphasis on justice and unity were some of the many factors that helped spread Islam.",link:"/infographics/how-did-islam-spread-throughout-the-world-infographic",postId:"10753",postSlug:"how-did-islam-spread-throughout-the-world-infographic",postTitle:"How Did Islam Spread Throughout the World?",imgSrc:"https://i.yaqeeninstitute.org/wp-content/uploads/2023/06/infographics__how-islam-spreads.jpg"},{title:"Culture as Contestation",type:"READ PAPER",summary:"Muslims have to produce culture today as we did in ages past. We must plant good seeds in our land but also be good treesâfirmly rooted in faith and fruitful in benefitting all.",link:"/read/paper/culture-as-contestation-planting-good-seeds-in-the-nations-soil",postId:"14161",postSlug:"culture-as-contestation-planting-good-seeds-in-the-nations-soil",postTitle:"Culture as Contestation: Planting Good Seeds in the Nation’s Soil",imgSrc:"https://i.yaqeeninstitute.org/wp-content/uploads/2023/06/papers-without-overlay__culture-as-contestation.jpg"},{title:"Speaking through service CM",type:"WATCH VIDEO",summary:"Dr. Rami Nashashibi discusses the importance and obligation of Muslims to uplift underserved spaces.",link:"/yaqeen-institute/speaking-through-service-rami-nashashibi-confident-muslim",postId:"11735",postSlug:"speaking-through-service-rami-nashashibi-confident-muslim",postTitle:"Speaking through Service – Rami Nashashibi | Confident Muslim",imgSrc:"https://i.yaqeeninstitute.org/wp-content/uploads/2023/06/videos-without-overlay__speaking-through-service-cm.jpg"},{title:"40 hadith on social justice",type:"WATCH VIDEO",summary:"Follow along for 40 hadith that illustrate the Prophetic way of enacting change when injustice is present.",link:"/omar-suleiman/hadith-1-the-gravity-of-injustice-40-hadiths-on-social-justice",postId:"1437",postSlug:"hadith-1-the-gravity-of-injustice-40-hadiths-on-social-justice",postTitle:"Hadith #1 – The Gravity of Injustice",imgSrc:"https://i.yaqeeninstitute.org/wp-content/uploads/2023/06/videos-without-overlay__40-hadith-on-social-justice.jpg"}]}},94128:(e,t,a)=>{"use strict";a.d(t,{MY:()=>d,AV:()=>h,vS:()=>u,Z2:()=>g});var i=a(54587),r=a.n(i),n=a(18012),s=a(69174),l=a(67579),o=a(86400),c=a(37876);let d=e=>{let{imgSrc:t,category:a,title:i,alignTitle:d,author:h,authors:u,postLink:m="#",categoryLink:p,excerpt:g,footerText:f,titleSize:x="text-base",aspectRatio:y,type:b="primary",customImageSize:v,isHighlight:w,analytic:j}=e;if(v&&y)throw Error("Cannot have aspectRatio and customImageSize props both at the same time");return(0,c.jsxs)("div",{className:"flex-1 flex flex-col",children:[(0,c.jsx)("div",{className:`${"secondary"===b?"xl:w-full w-3/4 mx-auto":""} mb-4 relative`,children:(0,c.jsx)(s.qh,{href:m,onClick:()=>{(0,n.$s)(j,"click",`item_name: ${i}, type: Article, section: Books`)},passHref:!0,prefetch:!1,children:(0,c.jsx)("div",{className:y,children:(0,c.jsx)(r(),{loader:o.R2,src:t,alt:i,layout:"fill",objectFit:"contain",className:`${v||""} mx-auto`})})})}),(0,c.jsxs)("div",{className:"flex-1 flex flex-col",children:[a&&(0,c.jsx)(s.qh,{href:p||"#",onClick:()=>{(0,n.$s)(j,"click",`item_name: ${a}, type: Topic, section: Books`)},passHref:!0,prefetch:!1,children:(0,c.jsx)(l.CardCategory,{category:a,size:"text-xss"})}),(0,c.jsx)("div",{className:a?"mt-3":"",children:(0,c.jsx)(s.qh,{href:m,onClick:()=>{(0,n.$s)(j,"click",`item_name: ${i}, type: Topic, section: Books`)},passHref:!0,prefetch:!1,children:(0,c.jsx)(l.CardTitle,{title:i,excerpt:g,level:5,weight:"font-bold",fontSize:x,align:d})})}),g&&(0,c.jsx)("div",{className:"mt-2",children:(0,c.jsx)(l.CardDescription,{excerpt:g})}),u&&(0,c.jsx)("div",{className:w?"mt-3":"",children:(0,c.jsx)(l.CardAuthor,{author:h,authors:u,fontSize:"xl:text-xs text-sm",prefetch:!1})}),f&&(0,c.jsx)(l.CardFooter,{text:f,fontSize:"text-xs"}),h&&(0,c.jsx)(l.CardAuthor,{author:h,fontSize:"text-xs",prefetch:!1})]})]})},h=e=>{let{url:t,title:a,onDownload:i,isWidthFull:r,height:l="h-[43px]"}=e;return(0,c.jsx)("div",{className:"download relative",children:(0,c.jsx)("div",{className:"flex items-center",children:(0,c.jsx)(s.$n,{onPress:()=>((0,n.$s)("yq-books","download-btn-press",`logged-in, title: ${a}`),i(t)),className:`inline-flex justify-center items-center ${r?"w-full":"w-full xl:w-auto"} bg-carrot-500 rounded px-6 ${l}`,children:(0,c.jsx)(s.EY,{as:"p",color:"text-white",weight:"font-bold",children:"Download"})})})})};a(58418);let u=()=>(0,c.jsxs)("div",{className:"notified mt-6 pb-6",children:[(0,c.jsx)("div",{className:"block text-grey-800 font-semibold mb-3 tracking-tight-1",children:"Get notified when this e-book is launched!"}),(0,c.jsxs)("div",{className:"flex items-end",children:[(0,c.jsx)("div",{className:"xl:w-1/2 w-2/3",children:(0,c.jsx)(s.A_,{"aria-label":"email",placeholder:"Email",labelClassName:"block text-grey-800 font-semibold mb-3 tracking-tight-1",inputClassName:"appearance-none block h-10 w-full text-grey-900 placeholder-grey-800 border border-r-none border-grey-300 py-3 px-4 leading-tight focus:outline-none focus:bg-white rounded-none"})}),(0,c.jsx)(s.$n,{className:"bg-carrot-500 px-4 iphonese:px-2 h-10 w-auto",children:(0,c.jsx)(s.EY,{c
53olor:"text-white",weight:"font-bold",children:"Notify me"})})]})]});var m=a(92987);let p={desktop:{breakpoint:{max:3e3,min:1024},items:1},mobile:{breakpoint:{max:464,min:0},items:1},tablet:{breakpoint:{max:1024,min:200},items:1}},g=e=>{let{images:t,bookSlug:a}=e;return(0,c.jsx)(m.default,{showDots:!0,slidesToSlide:1,containerClass:"xl:mt-0 mt-10 xl:pb-40 pb-32 w-full min-w-0",dotListClass:"!flex-nowrap !justify-start gap-2 overflow-x-auto xl:overflow-visible",responsive:p,infinite:!0,customDot:(0,c.jsx)(e=>{let{index:i,onClick:l,active:d}=e,h=t[i];return t.length>1?(0,c.jsx)("div",{className:"pt-10 xl:min-w-0 xl:flex-1",children:(0,c.jsx)(s.$n,{onPress:()=>{(0,n.$s)("yq-books","carousel-nav-click",`book: ${a}, to_index: ${i}`),l()},className:`block shrink-0 xl:w-full xl:shrink overflow-hidden rounded border xl:overflow-visible xl:border-2 xl:p-2 ${d?"border-carrot-500":"border-[#e2e8f0] xl:rounded-none xl:border-transparent"}`,children:(0,c.jsx)("div",{className:"relative h-[80px] w-[80px] xl:h-auto xl:w-full xl:aspect-[1/1]",children:(0,c.jsx)(r(),{loader:o.R2,src:`${h.src}&h=300&w=300`,alt:`Gallery Thumbnail ${i+0}`,fill:!0,sizes:"(min-width: 1280px) 20vw, 80px",className:"object-cover"})})})}):null},{}),arrows:!1,children:t.map((e,t)=>(0,c.jsx)(r(),{loader:o.R2,src:e.src,alt:`Gallery ${t+0}`,width:512,height:512,className:"aspect-[1/1] w-full rounded object-cover"},t))})};a(18125)},94171:(e,t,a)=>{"use strict";a.d(t,{C1:()=>g,II:()=>T,Pf:()=>P,T1:()=>b,dV:()=>x,ke:()=>y,pq:()=>p,t0:()=>f,wq:()=>S});var i=a(66284),r=a(74635),n=a.n(r);a(24519),a(67117);var s=a(32008),l=a(64761);a(57002);var o=a(35744),c=a(46269);a(32738);var d=a(81475),h=a(99742);function u(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,i)}return a}function m(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?u(Object(a),!0).forEach(function(t){(0,i.A)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):u(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}let p=!1,g="https://api-proxy.yaqeeninstitute.org/wp-json/",f=`${g}${p?"wp/v2/posts":"api/v1/cached/wpv2posts"}/`,x=`${g}${p?"wp/v2/topic":"api/v1/cached/wpv2topic"}/`,y=`${g}wp/v2/tags/`,b=`${g}api/v1/${p?"":"cached/"}series/`,v=`${g}api/v1/${p?"posts":"cached/postsByTagSlug"}/`,w=function(e){return e.Prebuild="prebuild",e}({}),j=[],k={retries:5,factor:3,minTimeout:500,maxTimeout:8e3,randomize:!0,maxRetryAfter:20},N=async(e,t)=>(t.headers||(t.headers={}),t.headers["user-agent"]="YQN-API/1",t.headers["accept-encoding"]="br, gzip",await n()(fetch)(e,m(m({},t),{},{retry:m(m({},k),{},{onRetry:(t,a)=>s.A.log(`HTTP ${(null==t?void 0:t.status)??"network error"}: retry #${a} for ${e}`)})}))),_=e=>e.replace(/\s+/g," ").trim(),S=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{headers:{}},a=arguments.length>2?arguments[2]:void 0;if((e=>{var t;let a=(0,c.Te)(e)&&!j.includes(e),i=(0,c.Zd)(e),r=(0,c.sc)().cache_updated_date;return p&&(t={url:e,urlHash:i,isCached:a,cacheUpdatedAt:r},"1"===h.env.WP_VERBOSITY&&s.A.debug("[WP-API] Fetch: ",t)),a})(e))try{let{data:t,headers:{total:i,totalPages:r}}=(0,c.tv)(e);return a&&i&&(a.total=i),a&&r&&(a.totalPages=r),t}catch(t){s.A.error(`Error parsing cache, refetching ${e}`)}let i=await N(e,t),r=i.headers.get("x-wp-total"),n=i.headers.get("x-wp-totalpages");a&&r&&(a.total=parseInt(r)),a&&n&&(a.totalPages=parseInt(n));let l=await i.text();if(!i.ok)return s.A.error(`${e} -> HTTP ${i.status}: ${(e=>{if(!e)return"(empty body)";try{let t=JSON.parse(e);if(null!=t&&t.code||null!=t&&t.message)return _(`${t.code??"?"}: ${t.message??"?"}`)}catch(e){}return _(e.slice(0,500)).slice(0,200)})(l)}`),[];try{let t=l?JSON.parse(l):{};return(h.env.WP_FETCH_SCOPE===w.Prebuild||p)&&(0,c._H)(e,t,r,n),t}catch(t){return s.A.error(`${e} (${null==l?void 0:l.length} bytes): ${t}`),[]}},A=e=>Array.isArray(e)?e:[],C=async(e,t)=>{let a=1,i={total:0,totalPages:0},r=e.indexOf("?")>0?"&":"?",n=await S(`${e}${r}per_page=${t}`,{},i);if(!Array.isArray(n))return s.A.error(`_fetchPaged: expected an array from ${e}, got ${typeof n} â returning []`),[];let l=[];for(;a<i.totalPages;)a++,l.push(S(`${e}${r}per_page=${t}&page=${a}`));return n.push(...(0,o.Bq)(await Promise.all(l))),n},P=async e=>{let t=await (0,l.d$)(e,{excludeContent:!0});if(t){let e=[];return t.forEach(t=>{t.content_type&&(t.contentType=t.content_type,delete t.content_type),t.seriesId&&(e.includes(t.seriesId)||e.push(t.seriesId))}),[...t].reduce((e,t)=>
53(e.find(e=>e.slug===t.slug)||e.push(t),e),[]).sort((e,t)=>new Date(t.date).getTime()-new Date(e.date).getTime())}let a=`${v}${e}`;return A(await C(a,30)).map(d.Z1).filter(Boolean)},T=async e=>{let t=await (0,l.O3)(e,{excludeContent:!0});if(t)return t;let a=p?f:`${g}api/v1/cached/postsByTopicSlug/${e}`,i=`${a}?_fields=id,date,date_gmt,title,slug,images,authors,coauthors,tags,topic,content_type,featured_media,better_featured_image,status,excerpt,seo,acf&topic_slug=${e}`;return A(await C(i,30)).map(d.Z1).filter(Boolean)}},96938:(e,t,a)=>{"use strict";a.d(t,{j6:()=>A,BH:()=>S,Uu:()=>k,EM:()=>_,ai:()=>P});var i=a(14232),r=a(74382),n=a.n(r),s=a(17199),l=a(66284),o=a(18012),c=a(40950);let d=/[^\s\u00a0\u061c\u180e\u200b-\u200f\u2060\u2066-\u2069\ufeff]/,h=e=>"string"==typeof e&&d.test(e);var u=a(49414),m=a(37876);function p(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,i)}return a}function g(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?p(Object(a),!0).forEach(function(t){(0,l.A)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):p(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}let f=e=>{let{duaId:t,anchorId:a,text:r,ctaLine:n=c.qT,label:s}=e,l=h(s)?s:c.Pz,{0:d,1:p}=(0,i.useState)({country:null,source:null}),{0:f,1:x}=(0,i.useState)(!1);(0,i.useEffect)(()=>{p((0,u.Ck)()),x(!0)},[]);let y=(0,i.useMemo)(()=>{if(!f)return null;let e=(0,c.v_)(t,"x".repeat(c.nx),a,c.Lq);return(0,c.pz)(r,e,n)},[f,t,a,r,n]);return(0,c.OI)(d.country)&&null!==y&&"none"!==y?(0,m.jsxs)("button",{type:"button",onClick:()=>{let e=(0,c.TP)(),i=(0,c.sb)(),s=(0,c.aN)((0,c.iy)()),l=(0,c.v_)(t,e,a,s),h=(0,c.CR)(r,l,n,y??"full");(0,o.$s)(c.f,c.IB,"whatsapp",!1,g(g({dua_id:t,dua_label:(0,c.CZ)(r),share_id:e,parent_share_id:i||"",generation:s,rung:y??"full",market:(d.country??"").toUpperCase()},(0,u._$)(d.source)),{},{transport_type:"beacon"}));let m=(0,c.Y0)(h),p=window.open("","_blank");p?(p.opener=null,p.location.href=m):window.location.href=m},"data-dua-share":"whatsapp",className:"dua-share-button flex min-h-[38px] max-w-full cursor-pointer items-center justify-center gap-2 rounded bg-white px-[17px] py-[9px] font-proxima-nova text-base font-bold leading-[1.25] tracking-[-0.192px] text-[#314158] [font-feature-settings:'lnum'_1,'pnum'_1] [overflow-wrap:anywhere] active:translate-y-[1px]",children:[(0,m.jsx)("span",{"aria-hidden":"true",className:"flex h-5 w-5 shrink-0 items-center justify-center text-[#25d366]",children:(0,m.jsx)("svg",{focusable:"false",width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor",children:(0,m.jsx)("path",{d:"M12.04 2c-5.46 0-9.91 4.45-9.91 9.91 0 1.75.46 3.45 1.32 4.95L2 22l5.25-1.38a9.87 9.87 0 0 0 4.79 1.22h.01c5.46 0 9.91-4.45 9.91-9.91 0-2.65-1.03-5.14-2.9-7.01A9.82 9.82 0 0 0 12.04 2Zm0 18.15h-.01a8.2 8.2 0 0 1-4.18-1.15l-.3-.18-3.11.82.83-3.04-.2-.31a8.2 8.2 0 0 1-1.26-4.38c0-4.54 3.7-8.23 8.24-8.23 2.2 0 4.27.86 5.82 2.41a8.18 8.18 0 0 1 2.41 5.83c0 4.54-3.7 8.23-8.24 8.23Zm4.52-6.16c-.25-.12-1.47-.72-1.69-.81-.23-.08-.39-.12-.56.13-.16.24-.64.8-.79.97-.14.16-.29.18-.54.06-.25-.13-1.05-.39-1.99-1.23-.74-.66-1.23-1.47-1.38-1.72-.14-.25-.01-.38.11-.5.11-.11.25-.29.37-.43.13-.15.17-.25.25-.41.08-.17.04-.31-.02-.43-.06-.12-.56-1.34-.76-1.84-.2-.48-.4-.42-.56-.43h-.47c-.17 0-.43.06-.66.31-.22.25-.86.85-.86 2.07 0 1.22.89 2.4 1.01 2.56.12.17 1.75 2.67 4.23 3.74.59.26 1.05.41 1.41.52.59.19 1.13.16 1.56.1.48-.07 1.47-.6 1.68-1.18.21-.58.21-1.08.14-1.18-.06-.11-.22-.17-.47-.29Z"})})}),l]}):null},x={paper:{figure:"flex flex-col gap-5 border-l-4 border-[#ff9900] pl-6 sm:pl-10",title:"font-proxima-nova font-bold text-lg sm:text-xl text-[#1d293d] leading-snug",arabic:"text-3xl sm:text-4xl text-[#1d293d] leading-[1.9]",transliteration:"font-source-serif-pro text-sm sm:text-base text-[#45556c] leading-[1.556] tracking-[-0.168px] sm:tracking-[-0.192px]",translation:"font-source-serif-pro text-lg sm:text-xl text-[#1d293d] leading-[1.375] sm:leading-[1.556] tracking-[-0.216px] sm:tracking-[-0.24px]",sourceLine:"flex flex-col gap-0 sm:flex-row sm:items-center sm:justify-between sm:gap-4",source:"font-source-serif-pro not-italic
53sm:italic text-sm sm:text-base text-[#314158] leading-[1.5] tracking-[-0.168px] sm:tracking-[-0.192px] [font-feature-settings:'onum'_1,'pnum'_1]",shareBand:"-ml-7 sm:ml-auto",shareBandGap:""},blog:{figure:"flex flex-col gap-9 bg-[#fff3d3] rounded-xl px-6 py-8 sm:px-7 sm:py-9",title:"font-proxima-nova font-bold text-lg sm:text-xl text-[#a1430b] leading-snug",arabic:"text-3xl sm:text-4xl text-[#cc5702] leading-[1.9] [font-feature-settings:'case'_1,'onum'_1,'pnum'_1]",transliteration:"font-source-serif-pro text-sm sm:text-base text-[#cc5702] leading-[1.556] tracking-[-0.168px] sm:tracking-[-0.192px] [font-feature-settings:'case'_1,'onum'_1,'pnum'_1]",translation:"font-source-serif-pro text-lg sm:text-xl text-[#cc5702] leading-[1.375] sm:leading-[1.556] tracking-[-0.216px] sm:tracking-[-0.24px] [font-feature-settings:'case'_1,'onum'_1,'pnum'_1]",sourceLine:"flex flex-col gap-0 sm:flex-row sm:items-center sm:justify-between sm:gap-4",source:"font-source-serif-pro not-italic text-sm sm:text-base text-[#a1430b] [font-feature-settings:'lnum'_1,'pnum'_1]",shareBand:"dua-share-slot--card -mx-6 -mb-8 rounded-b-xl sm:mb-0 sm:mr-0 sm:ml-auto sm:rounded-none",shareBandGap:"mt-8 sm:mt-0"}},y=e=>{let{title:t,arabic:a,transliteration:i,translation:r,source:n,anchorId:s,duaId:l,variant:o="paper",showShareSlot:c=!1,cta:d,ctaLabel:h,shareText:u}=e;if(!a)return null;let p=x[o],g="whatsapp"===d&&!!l,y=!!n||c||g,b=c||g;return(0,m.jsxs)("figure",{className:`dua-container dua-container--${o} ${p.figure}`,id:s,"data-dua-id":l,children:[t&&(0,m.jsx)("p",{className:`dua-title ${p.title}`,children:t}),(0,m.jsx)("p",{className:`dua-arabic text-right ${p.arabic}`,lang:"ar",dir:"rtl",children:a}),i&&(0,m.jsx)("p",{className:`dua-transliteration ${p.transliteration}`,lang:"ar-Latn",children:i}),r&&(0,m.jsx)("p",{className:`dua-translation ${p.translation}`,children:r}),y&&(0,m.jsxs)("figcaption",{className:`dua-source-line ${p.sourceLine}`,children:[n&&(0,m.jsx)("cite",{className:`dua-source ${p.source}`,children:n}),b&&(0,m.jsx)("div",{className:`dua-share-slot flex min-h-[70px] items-center justify-center bg-white px-6 py-4 sm:min-h-[38px] sm:min-w-[240px] sm:justify-end sm:bg-transparent sm:p-0 ${p.shareBand} ${n?p.shareBandGap:""}`,"data-dua-share-slot":!0,children:g&&(0,m.jsx)(f,{duaId:l,anchorId:s,text:u||{},label:h})})]})]})},b="dua-container",v=`.${b}`,w=e=>{if(!e||!e.includes(b))return null;let t=n().load(e)("body").children();if(1!==t.length)return null;let a=t.first();return!a.hasClass(b)||a.find(v).length>0?null:a},j=e=>{e.find("meta").remove();let t=t=>{let a=e.find(t).first();if(!a.length||!h(a.text()||""))return;let i=(a.html()||"").trim();return i.length?i:void 0},a=e.find(".dua-arabic").first().attr("data-dua-id")||e.attr("data-dua-id")||void 0,i=t=>{let a=e.find(t).first();if(!a.length)return;let i=a.clone();i.find('sup, a[href^="#ftnt"]').remove(),i.find("br").replaceWith(" "),i.find("p, div, li, tr, h1, h2, h3, h4, h5, h6").after(" ");let r=i.text()||"";if(!h(r))return;let n=r.replace(/\s+/g," ").trim();return n.length?n:void 0};return{title:t(".dua-title"),arabic:t(".dua-arabic"),transliteration:t(".dua-transliteration"),translation:t(".dua-translation"),source:t(".dua-source"),duaId:a||void 0,cta:e.attr("data-dua-cta")||void 0,ctaLabel:e.attr("data-dua-cta-label")||void 0,shareText:{title:i(".dua-title"),arabic:i(".dua-arabic"),transliteration:i(".dua-transliteration"),translation:i(".dua-translation"),source:i(".dua-source")}}},k=e=>{let t=w(e);return t?j(t):null},N="data-dua-slot",_=e=>{if(!e||!e.includes(b)||w(e))return null;let t=n().load(e),a=t("body").children().toArray(),i=t(v).filter((e,i)=>!(t(i).parents(v).length>0)&&!(t(i).find(v).length>0)&&-1===a.indexOf(i));if(!i.length)return null;let r=[];return(i.each((e,a)=>{let i=t(a),n=j(i);n.arabic&&(i.replaceWith(`<span ${N}="${r.length}"></span>`),r.push(n))}),r.length)?{html:t("html body").html()||e,parts:r}:null},S=e=>({replace:t=>{var a;let i=null==t||null==(a=t.attribs)?void 0:a[N];if(void 0!==i)return e[Number(i)]??(0,m.jsx)(m.Fragment,{})}}),A=(e,t,a,i)=>{if(e&&/[A-Za-z0-9]/.test(e)){let t=`dua-${e.trim().replace(/[^A-Za-z0-9-]/g,e=>`_${e.codePointAt(0).toString(16)}_`)}`;if(!i||!i.has(t))return null==i||i.add(t),t}let r=a,n=`dua-${t}-${r}`;for(;null!=i&&i.has(n);)r+=1,n=`dua-${t}-${r}`;return null==i||i.add(n),n},C=(e,t,a)=>{if(!e)return;let i=a?a(e):e,r=(0,m.jsx)(m.Fragment,{children:(0,s.Ay)(i)});return t?t(r):r},P=(e,t)=>{let{key:a,anchorId:i,sectionIndex:r=0,ordinal:n=1,showShareSlot:s=!1,variant:l="paper",process
53Footnotes:o,preprocessPartHtml:c}=t;return e.arabic?(0,m.jsx)(y,{title:C(e.title,o,c),arabic:C(e.arabic,o,c),transliteration:C(e.transliteration,o,c),translation:C(e.translation,o,c),source:C(e.source,o,c),duaId:e.duaId,anchorId:i??A(e.duaId,r,n),variant:l,showShareSlot:s,cta:e.cta,ctaLabel:e.ctaLabel,shareText:e.shareText},a):null}},97247:(e,t,a)=>{"use strict";a.d(t,{Ki:()=>i});let i="s_session_id"},97424:(e,t,a)=>{"use strict";a.d(t,{H:()=>n});var i=a(14232),r=a(89099);function n(e){let t=(0,r.useRouter)(),{0:a,1:n}=(0,i.useState)(!1);return(0,i.useEffect)(()=>{let a=t=>{t.startsWith(e)&&n(!0)},i=()=>n(!1);return t.events.on("routeChangeStart",a),t.events.on("routeChangeComplete",i),t.events.on("routeChangeError",i),()=>{t.events.off("routeChangeStart",a),t.events.off("routeChangeComplete",i),t.events.off("routeChangeError",i)}},[t,e]),a}},98325:(e,t,a)=>{"use strict";a.d(t,{A:()=>n});var i=a(56409),r=a(37876);let n=e=>{let{unit:t}=e;return(0,r.jsx)("div",{className:`inline-flex w-fit text-white text-xss leading-[10px] text-black/75 font-bold px-3 py-1.5 uppercase whitespace-nowrap rounded-[100px] tracking-[0.05em] ${t.unit_category===i.ze.MiddleSchool?"bg-[#E7B75F]":"bg-[#00D97F]"}`,children:i.uA[t.unit_category]})}},98591:(e,t,a)=>{"use strict";a.d(t,{Iq:()=>n,VV:()=>r,Zl:()=>i});let i=()=>{let e=new URLSearchParams(window.location.search);return{utm_source:e.get("utm_source"),utm_medium:e.get("utm_medium"),utm_campaign:e.get("utm_campaign"),utm_content:e.get("utm_content"),utm_term:e.get("utm_term")}},r=()=>{let e=new URLSearchParams(window.location.search);return{int_source:(e.get("int_source")||"").split("?")[0],int_campaign:e.get("int_campaign"),int_content:e.get("int_content")}},n=(e,t)=>{let a=new URLSearchParams({int_source:t.source,int_campaign:t.campaign,int_content:t.content});return`${e}?${a.toString()}`}},99990:(e,t,a)=>{"use strict";a.d(t,{rI:()=>r}),a(94171);var i=a(57002);let r=e=>(null==e?void 0:e.toLowerCase().trim().replace(" ","-"))||i.hZ.Other}}]);
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.