(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[96327],{59210:function(n,e,t){"use strict";var r,o=t(67597);function i(){return i=Object.assign?Object.assign.bind():function(n){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{},t=(0,x.Z)({client_auth_token:j.env.NEXT_PUBLIC_QURAN_REFLECT_TOKEN},e);return"".concat(b,"/").concat(n,"?").concat((0,C.Z)(t))},N=function(n){var e=n.surahId,t=n.ayahNumber,r=n.locale,o=n.page,i=void 0===o?1:o,a=n.tab,s=void 0===a?y.MostPopular:a,l=Number(e)+1;return Z("posts.json",{"q[filters_attributes][0][chapter_id]":l,"q[filters_attributes][0][from]":t,"q[filters_attributes][0][to]":t,"q[filters_operation]":"OR",page:i,tab:s,lang:r,feed:!0})},S=function(n){return Z("v1/posts/".concat(n,"/views"))},A=function(){var n=(0,m.Z)((function(n){return(0,w.__generator)(this,(function(e){return[2,(0,T._i)(S(n),{method:"POST",headers:{"Content-Type":"application/json"}})]}))}));return function(e){return n.apply(this,arguments)}}(),E=(function(){var n=(0,m.Z)((function(n){return(0,w.__generator)(this,(function(e){return[2,(0,T._i)(n)]}))}))}(),s()((function(){return t.e(10842).then(t.bind(t,10842))}),{loadableGenerated:{webpack:function(){return[10842]}},ssr:!1})),k=s()((function(){return Promise.all([t.e(13147),t.e(37154)]).then(t.bind(t,37154))}),{loadableGenerated:{webpack:function(){return[37154]}},ssr:!1,loading:d.Z}),V=function(n){var e=n.render,t=n.initialChapterId,r=n.initialVerseNumber,a=n.scrollToTop,s=(0,i.useState)(t),f=s[0],_=s[1],v=(0,i.useState)(r),m=v[0],x=v[1],w=(0,l.Z)().lang,T=(0,i.useCallback)((function(n){var e=n.getAttribute("data-post-id");(0,p.jl)()?(0,g.GG)(e).catch((function(){})):A(e).catch((function(){}))}),[]);h({threshold:1},T,u.yG,"postId","countAsViewedAfter");var C=(0,i.useCallback)((function(n){return(0,o.jsx)(k,{data:n,selectedChapterId:f,selectedVerseNumber:m,setSelectedVerseNumber:x,scrollToTop:a})}),[a,f,m]),y=(0,o.jsx)(c.Z,{loading:d.Z,queryKey:N({surahId:f,ayahNumber:m,locale:w}),render:C});return e({surahAndAyahSelection:(0,o.jsx)(E,{selectedChapterId:f,selectedVerseNumber:m,setSelectedChapterId:_,setSelectedVerseNumber:x}),body:y})}},31091:function(n,e,t){"use strict";t.d(e,{Z:function(){return j}});var r,o=t(45361),i=t(69976),a=t(57611),s=t(67597),l=t(37014),c=t.n(l),u=t(15129),d=t(61395),f=t(648),_=t(59807),v=t(31274),h=t(7001),p=t.n(h),g=t(85494);function m(){return m=Object.assign?Object.assign.bind():function(n){for(var e=1;e1&&void 0!==arguments[1]&&arguments[1],t=n.target;if("SUP"===t.tagName){var r=t.innerText.trim();if(e){A(r);var o="".concat(C.id," - ").concat(r);k&&k.id===o?((0,m.MY)("translation_sub_footnote_double_click_to_close"),I()):P[r]&&((0,m.MY)("translation_show_sub_footnote"),V({id:o,text:P[r]}))}else{var i=t.getAttribute("foot_note");Z(r),i?h&&C&&C.id===Number(i)?((0,m.MY)("translation_footnote_double_click_to_close"),O()):((0,m.MY)("translation_show_footnote"),I(),w(!0),_(!0),(0,x.ei)(i).then((function(n){500!==n.status&&y(n.footNote)})).finally((function(){_(!1)}))):C&&C.id===r?((0,m.MY)("translation_pre_defined_footnote_double_click_to_close"),O()):P[r]&&((0,m.MY)("translation_pre_defined_footnote"),I(),y({id:r,text:P[r]}))}}},M=(0,p.j2)(i),z=h&&(C||d);return(0,r.jsxs)("div",{className:f()["translation-font-size-".concat(e)],children:[(0,r.jsx)("div",{onClick:function(n){return L(n)},className:a()(f().text,f()[M.direction],f()[M.font]),dangerouslySetInnerHTML:{__html:t}}),z&&(0,r.jsx)(g,{footnoteName:b||void 0,footnote:C,isLoading:d,onCloseClicked:function(){(0,m.MY)("translation_footnote_close"),d?w(!1):O()},onTextClicked:function(n){return L(n,!0)}}),k&&(0,r.jsx)(g,{footnoteName:S||void 0,footnote:k,onCloseClicked:I}),l&&(0,r.jsxs)("p",{className:a()(f().translationName,f()[M.direction],f()[M.font]),children:["\u2014 ",l]})]})}},24883:function(n,e,t){"use strict";var r=t(45361),o=t(57611),i=t(37014),a=t.n(i),s=t(57065),l=t.n(s),c=t(648),u=t(7001),d=t.n(u),f=t(18594),_=t.n(f),v=t(81456),h=t.n(v),p=t(85494),g=t(90914),m=t(82257),x=t(5330),w=t(51652),T=t(89773),C=t(63747);e.Z=function(n){var e=n.hasActionMenuItems,t=void 0===e||e,i=(0,m.Z)(T.Z.Translations).value,s=(0,c.v9)(x.Pt,c.wU),u=s.quranFont,f=s.quranTextFontScale,v=s.translationFontScale,y=s.mushafLines,j=u===C.fr.Tajweed;return(0,o.jsxs)("div",{className:a()(d().cellContainer,_().cellContainer),children:[(0,o.jsxs)("div",{className:d().actionContainer,children:[(0,o.jsx)("div",{className:d().actionContainerLeft,children:l()(0,4).map((function(n){return(0,o.jsx)(g.Z,{className:_().actionItem,children:(0,o.jsx)(p.ZP,{size:p.qE.Small})},n)}))}),t&&(0,o.jsx)("div",{className:d().actionContainerRight,children:(0,o.jsx)(g.Z,{className:d().actionItem,children:(0,o.jsx)(p.ZP,{size:p.qE.Small})})})]}),(0,o.jsxs)("div",{className:d().contentContainer,children:[(0,o.jsx)(g.Z,{className:a()(_().verseContainer,d().arabicVerseContainer,(0,r.Z)({},h()[(0,w.bZ)(u,f,y)],!j))}),(0,o.jsx)("div",{className:a()(d().verseTranslationsContainer,_()["translation-font-size-".concat(v)]),children:i.map((function(n){return(0,o.jsxs)("span",{children:[(0,o.jsx)("div",{children:(0,o.jsx)(g.Z,{className:a()(_().translationText),children:"He has revealed to you \u02f9O Prophet\u02fa the Book in truth, confirming what came before it, as He revealed the Torah and the Gospel"})}),(0,o.jsx)("div",{children:(0,o.jsx)(g.Z,{className:a()(_().translationAuthor),children:"\u2014 Dr. Mustafa Khattab, the Clear Quran"})})]},n)}))})]})]})}},35702:function(n,e,t){"use strict";t.d(e,{FW:function(){return i},NM:function(){return r},s$:function(){return a},yG:function(){return o}});var r="quranReaderObserver",o="reflectionsObserver",i=function(n){return{rootMargin:n?"-115.6px 0px -70% 0px":"-131.6px 0px -68% 0px",threshold:.1}},a=function(n){return{verseKey:n.getAttribute("data-verse-key"),chapterId:n.getAttribute("data-chapter-id"),page:n.getAttribute("data-page"),hizb:n.getAttribute("data-hizb")}}},49541:function(n,e,t){"use strict";var r=t(45361),o=t(57611),i=(t(67597),t(37014)),a=t.n(i),s=t(33770),l=t.n(s),c=t(61395),u=t(7001),d=t.n(u),f=t(73032),_=t.n(f),v=t(85494),h=t(18356),p=t(10117),g=t(54988),m=t(12195),x=l()((function(){return Promise.all([t.e(15240),t.e(47995),t.e(58078),t.e(13769),t.e(47338),t.e(45096)]).then(t.bind(t,55604))}),{loadableGenerated:{webpack:function(){return[55604]}},ssr:!1,loading:function(){return(0,o.jsx)(p.Z,{})}});e.Z=function(n){var e=n.verse,t=n.isTranslationView,i=void 0===t||t,s=n.onActionTriggered,l=n.bookmarksRangeUrl,u=(0,c.Z)("common").t;return(0,o.jsx)("div",{className:_().container,children:(0,o.jsx)(h.Z,{trigger:(0,o.jsx)(v.ZP,{size:v.qE.Small,tooltip:u("more"),variant:v.Wu.Ghost,shape:v.jL.Circle,className:a()(d().iconContainer,d().verseAction,(0,r.Z)({},d().fadedVerseAction,i),"overflow-verse-actions-menu-trigger"),ariaLabel:u("more"),children:(0,o.jsx)("span",{className:d().icon,children:(0,o.jsx)(g.Z,{})})}),isModal:!0,isPortalled:!0,onOpenChange:function(n){(0,m.Kz)("".concat(i?"translation_view":"reading_view","_verse_actions_menu_").concat(n?"open":"close"))},children:(0,o.jsx)(x,{verse:e,isTranslationView:i,onActionTriggered:s,bookmarksRangeUrl:l})})})}},21037:function(n,e,t){"use strict";t.d(e,{Z:function(){return S}});var r,o=t(45361),i=t(57611),a=t(67597),s=t(21594),l=t(37014),c=t.n(l),u=t(61395),d=t(7001),f=t.n(d),_=t(10117),v=t(37362),h=t(18419),p=t(85494),g=t(13695);function m(){return m=Object.assign?Object.assign.bind():function(n){for(var e=1;ee.clientWidth-15)?n.preventDefault():t&&t()},children:[j&&(0,i.jsxs)("div",{className:_().header,children:[f&&(0,i.jsx)(s.x8,{className:_().closeIcon,children:(0,i.jsx)(d.ZP,{variant:d.Wu.Ghost,shape:d.jL.Circle,onClick:t,children:(0,i.jsx)(v.Z,{})})}),g]}),(0,i.jsx)("div",{className:_().content,children:p})]})})})})}},92111:function(n,e,t){"use strict";t.r(e);var r=t(57044),o=t(16946),i=t(57611),a=(t(67597),t(33738)),s=t(45077);e.default=function(n){var e=n.content,t=n.children,l=n.onOpenChange,c=n.contentSide,u=void 0===c?a.iw.TOP:c,d=n.tip,f=void 0===d||d,_=n.tooltipDelay,v=void 0===_?0:_,h=n.defaultStyling,p=void 0===h||h,g=n.isOpen,m=n.triggerStyles,x=n.isContainerSpan,w=void 0!==x&&x;return(0,i.jsx)(a.ZP,(0,o.Z)((0,r.Z)({open:g,triggerStyles:m,contentSide:u,useTooltipStyles:!0},l&&{onOpenChange:l}),{defaultStyling:p,isContainerSpan:w,trigger:(0,i.jsx)(s.ZP,(0,o.Z)((0,r.Z)({open:g,tip:f,text:e,contentSide:u,delay:v},l&&{onOpenChange:l}),{children:t})),tip:f,children:e}))}},33738:function(n,e,t){"use strict";t.d(e,{iw:function(){return r}});var r,o,i=t(45361),a=t(57044),s=t(16946),l=t(57611),c=(t(67597),t(87373)),u=t(37014),d=t.n(u),f=t(86046),_=t.n(f);!function(n){n.TOP="top",n.RIGHT="right",n.BOTTOM="bottom",n.LEFT="left"}(r||(r={})),function(n){n.START="start",n.CENTER="center",n.END="end"}(o||(o={}));e.ZP=function(n){var e,t=n.children,u=n.trigger,f=n.onOpenChange,v=n.open,h=n.isModal,p=void 0!==h&&h,g=n.contentSide,m=void 0===g?r.BOTTOM:g,x=n.contentAlign,w=void 0===x?o.CENTER:x,T=n.avoidCollisions,C=void 0===T||T,y=n.tip,j=void 0!==y&&y,b=n.useTooltipStyles,Z=void 0!==b&&b,N=n.defaultStyling,S=void 0===N||N,A=n.isPortalled,E=void 0===A||A,k=n.contentSideOffset,V=void 0===k?2:k,P=n.triggerStyles,O=n.contentStyles,I=n.isContainerSpan,L=void 0!==I&&I,M=(0,l.jsxs)(c.VY,{sideOffset:V,side:m,align:w,avoidCollisions:C,className:d()(_().content,(e={},(0,i.Z)(e,_().tooltipContent,Z),(0,i.Z)(e,O,O),e)),children:[t,j&&(0,l.jsx)(c.Eh,{})]}),z=(0,l.jsxs)(c.fC,(0,s.Z)((0,a.Z)({modal:p},"undefined"!==typeof v&&{open:v},f&&{onOpenChange:f}),{children:[(0,l.jsx)(c.xz,{"aria-label":"Open popover",asChild:!0,children:(0,l.jsx)("span",{className:d()(_().trigger,(0,i.Z)({},P,P)),children:u})}),E?(0,l.jsx)(c.h_,{children:M}):M]}));return L?(0,l.jsx)("span",{className:d()((0,i.Z)({},_().container,S)),children:z}):(0,l.jsx)("div",{className:d()((0,i.Z)({},_().container,S)),children:z})}},18636:function(n,e,t){"use strict";t.d(e,{q:function(){return Tn},Z:function(){return yn}});var r,o,i,a,s=t(45361),l=t(57044),c=t(16946),u=t(69976),d=t(57611),f=t(67597),_=t(21594),v=t(37014),h=t.n(v),p=t(648),g=t(28010),m=t(70530),x=t.n(m),w=function(n,e){return(0,d.jsx)(d.Fragment,{children:n.map((function(n){return(0,d.jsx)("p",{className:x().tooltipText,children:e[n].text},n)}))})},T=t(66623),C="https://audio.qurancdn.com/",y=t(12195),j=function(n){b("".concat(C).concat(n.audioUrl))},b=function(n){window.wordByWordAudioPlayerEl&&(window.wordByWordAudioPlayerEl.pause(),window.wordByWordAudioPlayerEl.remove(),window.wordByWordAudioPlayerEl=null);var e=function(){window.wordByWordAudioPlayerEl.removeEventListener("ended",e),window.wordByWordAudioPlayerEl.remove()};window.wordByWordAudioPlayerEl=new Audio(n),(0,y.Kz)("load_audio_file",{audioUrl:n}),window.wordByWordAudioPlayerEl.play(),window.wordByWordAudioPlayerEl.addEventListener("ended",e)},Z=t(75380),N=t(47165),S=t(29344),A=t(73703),E=t.n(A),k=t(33770),V=t.n(k),P=t(61395),O=t(19225),I=t.n(O),L=t(73756),M=t(32373),z=t.n(M),W=t(4424),R=t(13147),q=t(80665),B=t(69640),K=function(n){var e,t=n.verse,r=n.quranReaderStyles;return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("div",{className:z().arabicVerseContainer,children:(0,d.jsx)(R.Z,{words:(0,B.LQ)(t)})}),(0,d.jsx)("div",{className:z().separatorContainer,children:(0,d.jsx)(q.Z,{})}),null===(e=t.translations)||void 0===e?void 0:e.map((function(n){return(0,d.jsx)("div",{className:z().verseTranslationContainer,children:(0,d.jsx)(W.Z,{translationFontScale:r.translationFontScale,text:n.text,languageId:n.languageId,resourceName:n.resourceName})},n.id)}))]})},F=t(24883),G=t(85494);function H(){return H=Object.assign?Object.assign.bind():function(n){for(var e=1;e