(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[97917],{13533:function(e,r,n){"use strict";var t,a,o,i,s,c=n(67597);function l(){return l=Object.assign?Object.assign.bind():function(e){for(var r=1;r=100;return r||!n?null:(0,a.jsxs)("div",{className:P().wrapper,children:[(0,a.jsx)("div",{className:P().illustrationContainer,children:(0,a.jsx)(D.Z,{})}),(0,a.jsx)("div",{className:P().container,children:(0,a.jsx)(Q,{percent:i,goal:n,isGoalDone:s,currentActivityDay:o,weekData:t})})]})},q=n(51044),W=function(e){var r=e.lastVerse,n=(0,c.Z)("quran-reader").t,t=(0,u.Z)(),o=r.rubElHizbNumber;return(0,a.jsxs)(a.Fragment,{children:[!(0,q.Al)(o)&&(0,a.jsx)(l.ZP,{type:l.L$.Secondary,prefix:(0,a.jsx)(d.Z,{}),href:(0,x.Mf)(o-1),onClick:function(){(0,_.MY)("rub_control_prev_rub")},children:n("prev-rub")}),(0,a.jsx)(l.ZP,{type:l.L$.Secondary,onClick:function(){(0,_.MY)("rub_control_scroll_to_beginning"),t()},children:n("rub-beginning")}),!(0,q.wD)(o)&&(0,a.jsx)(l.ZP,{type:l.L$.Secondary,suffix:(0,a.jsx)(p.Z,{}),href:(0,x.Mf)(o+1),onClick:function(){(0,_.MY)("rub_control_next_rub")},children:n("next-rub")})]})},F=n(69640),G=n(9192),T=function(e){var r=e.lastVerse,n=(0,c.Z)("quran-reader").t,t=(0,o.useContext)(G.Z),i=r.chapterId,s=r.verseNumber,u=r.verseKey,f=Number(i),h=(0,F.kC)(t,String(i),s);return(0,a.jsxs)(a.Fragment,{children:[h&&!(0,g.us)(f)&&(0,a.jsx)(l.ZP,{type:l.L$.Secondary,prefix:(0,a.jsx)(d.Z,{}),href:(0,x.qm)(f-1),onClick:function(){(0,_.MY)("verse_control_prev_chapter")},children:n("prev-surah")}),!h&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(l.ZP,{type:l.L$.Secondary,href:(0,x.qm)(f),onClick:function(){(0,_.MY)("verse_control_full_chapter")},children:n("full-surah-cta")}),(0,a.jsx)(l.ZP,{href:(0,x.P6)(u),onClick:function(){(0,_.MY)("verse_control_continue")},children:n("common:continue")})]}),h&&(0,a.jsx)(l.ZP,{type:l.L$.Secondary,href:(0,x.qm)(f),onClick:function(){(0,_.MY)("verse_control_chapter_beginning")},children:n("surah-beginning")}),h&&!(0,g.gr)(f)&&(0,a.jsx)(l.ZP,{type:l.L$.Secondary,suffix:(0,a.jsx)(p.Z,{}),href:(0,x.qm)(f+1),onClick:function(){(0,_.MY)("verse_control_next_chapter")},children:n("next-surah")})]})},A=n(63747),O=function(e){var r=e.quranReaderDataType,n=e.lastVerse,t=e.initialData,o=(0,i.v9)(f.kW);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:m().progressWidgetContainer,children:(0,a.jsx)(V,{})}),o&&r===A.Qi.Chapter&&(0,a.jsx)(s.Z,{view:s.E.EndOfScrollingControls}),(0,a.jsx)("div",{className:m().container,children:(0,a.jsxs)("div",{className:m().buttonsContainer,children:[r===A.Qi.Chapter&&(0,a.jsx)(h,{initialData:t}),(r===A.Qi.Verse||r===A.Qi.ChapterVerseRanges||r===A.Qi.Ranges)&&(0,a.jsx)(T,{lastVerse:n}),r===A.Qi.Page&&(0,a.jsx)(S,{lastVerse:n}),r===A.Qi.Juz&&(0,a.jsx)(C,{lastVerse:n}),r===A.Qi.Rub&&(0,a.jsx)(W,{lastVerse:n}),r===A.Qi.Hizb&&(0,a.jsx)(y,{lastVerse:n})]})})]})}},66498:function(e,r,n){"use strict";n.d(r,{Z:function(){return L}});var t=n(45361),a=n(57611),o=n(57384),i=n(67597),s=n(61544),c=n(4300);const l="Progress",u=100,[d,p]=(0,s.b)(l),[f,g]=d(l),_=(0,i.forwardRef)(((e,r)=>{const{__scopeProgress:n,value:t,max:a,getValueLabel:s=v,...l}=e,d=y(a)?a:u,p=Z(t,d)?t:null,g=j(p)?s(p,d):void 0;return(0,i.createElement)(f,{scope:n,value:p,max:d},(0,i.createElement)(c.WV.div,(0,o.Z)({"aria-valuemax":d,"aria-valuemin":0,"aria-valuenow":j(p)?p:void 0,"aria-valuetext":g,role:"progressbar","data-state":m(p,d),"data-value":null!==p&&void 0!==p?p:void 0,"data-max":d},l,{ref:r})))}));_.propTypes={max(e,r,n){const t=e[r],a=String(t);return t&&!y(t)?new Error(function(e,r){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${r}\`. Only numbers greater than 0 are valid max values. Defaulting to \`100\`.`}(a,n)):null},value(e,r,n){const t=e[r],a=String(t),o=y(e.max)?e.max:u;return null==t||Z(t,o)?null:new Error(function(e,r){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${r}\`. The \`value\` prop must be:\n - a positive number\n - less than the value passed to \`max\` (or 100 if no \`max\` prop is set)\n - \`null\` if the progress is indeterminate.\n\nDefaulting to \`null\`.`}(a,n))}};const x="ProgressIndicator",h=(0,i.forwardRef)(((e,r)=>{var n;const{__scopeProgress:t,...a}=e,s=g(x,t);return(0,i.createElement)(c.WV.div,(0,o.Z)({"data-state":m(s.value,s.max),"data-value":null!==(n=s.value)&&void 0!==n?n:void 0,"data-max":s.max},a,{ref:r}))}));function v(e,r){return`${Math.round(e/r*100)}%`}function m(e,r){return null==e?"indeterminate":e===r?"complete":"loading"}function j(e){return"number"===typeof e}function y(e){return j(e)&&!isNaN(e)&&e>0}function Z(e,r){return j(e)&&!isNaN(e)&&e<=r&&e>=0}const C=_,k=h;var b,S=n(37014),M=n.n(S),P=n(75302),N=n.n(P);!function(e){e.Small="small",e.Medium="medium",e.Large="large"}(b||(b={}));var L=function(e){var r,n=e.value,o=e.rootStyles,i=e.size,s=void 0===i?b.Small:i,c=e.indicatorStyles,l=M()(N().progressRoot,(r={},(0,t.Z)(r,N().progressSmall,s===b.Small),(0,t.Z)(r,N().progressMedium,s===b.Medium),(0,t.Z)(r,N().progressLarge,s===b.Large),r),o);return(0,a.jsx)(C,{className:l,value:n,children:(0,a.jsx)(k,{className:M()(N().progressIndicator,c),style:{transform:"translateX(-".concat(100-n,"%)")}})})}},39941:function(e,r,n){"use strict";n.d(r,{Ub:function(){return s},dn:function(){return o},pN:function(){return i}});var t=n(1997),a=n(51726),o=(n(43609),function(e){return 1===e}),i=function(e){return 60===e},s=function(){var e=(0,t.Z)((function(e){return(0,a.__generator)(this,(function(r){return[2,new Promise((function(r){n.e(72488).then(n.t.bind(n,72488,19)).then((function(n){r(n.default[e])}))}))]}))}));return function(r){return e.apply(this,arguments)}}()},51044:function(e,r,n){"use strict";n.d(r,{Al:function(){return o},hL:function(){return s},wD:function(){return i}});var t=n(1997),a=n(51726),o=(n(43609),function(e){return 1===e}),i=function(e){return 240===e},s=function(){var e=(0,t.Z)((function(e){return(0,a.__generator)(this,(function(r){return[2,new Promise((function(r){n.e(8858).then(n.t.bind(n,8858,19)).then((function(n){r(n.default[e])}))}))]}))}));return function(r){return e.apply(this,arguments)}}()},31300:function(e){e.exports={container:"EndOfScrollingControls_container__IQJwB",buttonsContainer:"EndOfScrollingControls_buttonsContainer__ryHQx",progressWidgetContainer:"EndOfScrollingControls_progressWidgetContainer__8WMAh",donationBannerContainer:"EndOfScrollingControls_donationBannerContainer__UpbNt"}},94761:function(e){e.exports={wrapper:"QuranReaderReadingStreak_wrapper__87pNr",container:"QuranReaderReadingStreak_container__AXXGB",illustrationContainer:"QuranReaderReadingStreak_illustrationContainer__JDz7w"}},99335:function(e){e.exports={dailyProgressContainer:"QuranReaderStreak_dailyProgressContainer__c9GdS",streakTitle:"QuranReaderStreak_streakTitle__nf8P_",dailyGoal:"QuranReaderStreak_dailyGoal__vODFs",progressContainer:"QuranReaderStreak_progressContainer__MFwyA",progressTextContainer:"QuranReaderStreak_progressTextContainer__35yUy"}},75302:function(e){e.exports={progressRoot:"Progress_progressRoot__Np4He",progressSmall:"Progress_progressSmall__xl_va",progressMedium:"Progress_progressMedium__ys5Rw",progressLarge:"Progress_progressLarge__smmtV",progressIndicator:"Progress_progressIndicator__dPgS9"}}}]); //# sourceMappingURL=97917.bf670b6423b7d6a6.js.map