97917.bf670b6423b7d6a6.js 14 KB

12
  1. (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<arguments.length;r++){var n=arguments[r];for(var t in n)({}).hasOwnProperty.call(n,t)&&(e[t]=n[t])}return e},l.apply(null,arguments)}r.Z=function(e){return c.createElement("svg",l({viewBox:"0 0 92 80",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),t||(t=c.createElement("path",{d:"m12.34 45.828.005.007.006.007c2.639 2.996 5.947 5.452 9.705 7.21a32.563 32.563 0 0 0 12.105 2.993 32.981 32.981 0 0 0 12.401-1.734c3.953-1.36 7.547-3.46 10.544-6.165 2.996-2.705 5.33-5.954 6.841-9.536a24.806 24.806 0 0 0 1.925-11.245c-.243-3.83-1.382-7.569-3.337-10.97-1.956-3.4-4.684-6.385-8.002-8.76l-.291.406.272-.42a.577.577 0 0 1-.248-.322.477.477 0 0 1 .04-.358.642.642 0 0 1 .33-.284.808.808 0 0 1 .498-.034c5.97 1.539 11.385 4.455 15.713 8.457 4.327 4.002 7.416 8.949 8.967 14.348a29.004 29.004 0 0 1-.112 16.452c-1.625 5.382-4.782 10.294-9.164 14.248-4.382 3.954-9.838 6.81-15.829 8.282a39.4 39.4 0 0 1-18.315.102c-6.01-1.405-11.505-4.201-15.941-8.106-4.434-3.903-7.656-8.776-9.355-14.137a.477.477 0 0 1 .04-.346c.061-.116.17-.22.32-.284a.806.806 0 0 1 .492-.043.702.702 0 0 1 .39.232Z",stroke:"currentColor"})),a||(a=c.createElement("path",{d:"M79.173 34.298c.302-1.936.417-3.889.345-5.837a29.111 29.111 0 0 1 1.431 9.421c-.061 4.362-1.11 8.668-3.084 12.654-1.974 3.987-4.831 7.572-8.4 10.533-3.57 2.96-7.776 5.235-12.36 6.68a39.256 39.256 0 0 1-14.294 1.72c-4.846-.311-9.568-1.512-13.878-3.528-4.309-2.016-8.113-4.803-11.18-8.188-3.066-3.385-5.33-7.296-6.658-11.493l-.004-.013a.41.41 0 0 1 .004-.284c3.692 5.875 9.286 10.586 16.028 13.501 6.934 2.998 14.735 3.948 22.298 2.718 7.562-1.231 14.51-4.582 19.853-9.584 5.343-5.002 8.81-11.404 9.899-18.3Z",stroke:"currentColor"})),o||(o=c.createElement("path",{d:"M54.242 8.04c3.262 2.337 5.94 5.27 7.86 8.605 1.917 3.336 3.033 7 3.272 10.752a24.305 24.305 0 0 1-1.887 11.018c-1.483 3.512-3.772 6.702-6.717 9.36-2.944 2.658-6.479 4.724-10.37 6.063a32.481 32.481 0 0 1-12.213 1.708 32.064 32.064 0 0 1-11.92-2.948c-3.698-1.729-6.95-4.144-9.54-7.086a1.202 1.202 0 0 0-.666-.403 1.306 1.306 0 0 0-.799.07c-.248.106-.449.287-.566.512a.976.976 0 0 0-.078.72c1.727 5.455 5.004 10.408 9.504 14.37 4.502 3.962 10.071 6.795 16.159 8.218a39.901 39.901 0 0 0 18.548-.103c6.067-1.491 11.598-4.386 16.044-8.397 4.447-4.012 7.655-9.001 9.307-14.475a29.503 29.503 0 0 0 .115-16.734c-1.578-5.491-4.718-10.516-9.11-14.577-4.39-4.06-9.881-7.016-15.928-8.574a1.308 1.308 0 0 0-.81.055c-.254.103-.46.284-.582.511a.977.977 0 0 0-.08.73c.068.244.23.458.457.606v0Z",stroke:"currentColor",strokeWidth:.5,strokeLinecap:"round",strokeLinejoin:"round"})),i||(i=c.createElement("path",{clipRule:"evenodd",d:"M28.306 38.49c1.355-4.41 2.243-7.634 3.174-13.1-.05.085 7.202-2.569 10.347-3.753-4.508-.57-10.678-1.417-10.617-1.324-.848-3.48-1.636-8.948-3.62-15.313-.852 4.775-2.35 10.221-2.973 15.03-3.843 1-6.947 2.025-10.617 3.573 4.511.96 7.36 1.888 11.077 2.73 1.125 5.027 1.95 7.847 3.229 12.158Z",stroke:"currentColor",strokeWidth:1.5,strokeMiterlimit:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),s||(s=c.createElement("path",{d:"M5.744 25c.02 1.313-.077 2.688.05 3.994M2 32.059c.708.011 1.434-.104 2.14-.05M6.206 33.953c-.185 1.095-.145 2.213-.15 3.322M8.378 31.378c.983.085 2.025-.244 2.98-.015",stroke:"currentColor",strokeWidth:1.5,strokeMiterlimit:1.5,strokeLinecap:"round",strokeLinejoin:"round"})))}},29229:function(e,r,n){"use strict";n.r(r),n.d(r,{default:function(){return O}});var t,a=n(57611),o=n(67597),i=n(648),s=n(91239),c=n(61395),l=n(85494),u=n(58465),d=n(89932),p=n(4845),f=n(74329),g=n(22582),_=n(12195),x=n(84020),h=function(e){var r=e.initialData,n=(0,i.v9)(f.kW),t=(0,c.Z)("quran-reader").t,o=(0,u.Z)(),s=r.pagesLookup.lookupRange.to.split(":")[0],h=Number(s);return(0,a.jsxs)(a.Fragment,{children:[!(0,g.us)(h,n)&&(0,a.jsx)(l.ZP,{type:l.L$.Secondary,prefix:(0,a.jsx)(d.Z,{}),href:(0,x.AW)(h,n),onClick:function(){(0,_.MY)("chapter_control_prev_chapter")},children:t("prev-surah")}),(0,a.jsx)(l.ZP,{type:l.L$.Secondary,onClick:function(){(0,_.MY)("chapter_control_scroll_to_beginning"),o()},children:t("surah-beginning")}),!(0,g.gr)(h,n)&&(0,a.jsx)(l.ZP,{type:l.L$.Secondary,suffix:(0,a.jsx)(p.Z,{}),href:(0,x.M1)(h,n),onClick:function(){(0,_.MY)("chapter_control_next_chapter")},children:t("next-surah")})]})},v=n(31300),m=n.n(v),j=n(39941),y=function(e){var r=e.lastVerse,n=(0,c.Z)("quran-reader").t,t=(0,u.Z)(),o=r.hizbNumber;return(0,a.jsxs)(a.Fragment,{children:[!(0,j.dn)(o)&&(0,a.jsx)(l.ZP,{type:l.L$.Secondary,prefix:(0,a.jsx)(d.Z,{}),href:(0,x.Wq)(o-1),onClick:function(){(0,_.MY)("hizb_control_prev_hizb")},children:n("prev-hizb")}),(0,a.jsx)(l.ZP,{type:l.L$.Secondary,onClick:function(){(0,_.MY)("hizb_control_scroll_to_beginning"),t()},children:n("hizb-beginning")}),!(0,j.pN)(o)&&(0,a.jsx)(l.ZP,{type:l.L$.Secondary,suffix:(0,a.jsx)(p.Z,{}),href:(0,x.Wq)(o+1),onClick:function(){(0,_.MY)("hizb_control_next_hizb")},children:n("next-hizb")})]})},Z=n(35770),C=function(e){var r=e.lastVerse,n=(0,c.Z)("quran-reader").t,t=(0,u.Z)(),o=r.juzNumber;return(0,a.jsxs)(a.Fragment,{children:[!(0,Z.M3)(o)&&(0,a.jsx)(l.ZP,{type:l.L$.Secondary,prefix:(0,a.jsx)(d.Z,{}),href:(0,x.CZ)(o-1),onClick:function(){(0,_.MY)("juz_control_prev_juz")},children:n("prev-juz")}),(0,a.jsx)(l.ZP,{type:l.L$.Secondary,onClick:function(){(0,_.MY)("juz_control_scroll_to_beginning"),t()},children:n("juz-beginning")}),!(0,Z.hC)(o)&&(0,a.jsx)(l.ZP,{type:l.L$.Secondary,suffix:(0,a.jsx)(p.Z,{}),href:(0,x.CZ)(o+1),onClick:function(){(0,_.MY)("juz_control_next_juz")},children:n("next-juz")})]})},k=n(5330),b=n(98271),S=function(e){var r=e.lastVerse,n=(0,c.Z)("quran-reader").t,t=r.words[r.words.length-1].pageNumber,o=(0,i.v9)(k.Pt),s=o.quranFont,u=o.mushafLines,f=Number(t);return(0,a.jsxs)(a.Fragment,{children:[!(0,b.ff)(f)&&(0,a.jsx)(l.ZP,{type:l.L$.Secondary,prefix:(0,a.jsx)(d.Z,{}),href:(0,x.GK)(f-1),onClick:function(){(0,_.MY)("page_control_prev_page")},children:n("prev-page")}),!(0,b.h$)(f,s,u)&&(0,a.jsx)(l.ZP,{type:l.L$.Secondary,suffix:(0,a.jsx)(p.Z,{}),href:(0,x.GK)(f+1),onClick:function(){(0,_.MY)("page_control_next_page")},children:n("next-page")})]})},M=n(94761),P=n.n(M),N=n(99335),L=n.n(N),w=n(54362),R=n(71612),$=n(66498),z=n(43609),Q=function(e){var r=e.percent,n=e.isGoalDone,t=e.goal,o=e.currentActivityDay,i=e.weekData,s=(0,c.Z)("reading-goal"),l=s.t,u=s.lang,d=(0,z.rQ)(r,u);return n||t.isCompleted?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:L().dailyProgressContainer,children:[(0,a.jsx)("p",{className:L().streakTitle,children:l("goal-done.title")}),(0,a.jsx)("p",{className:L().dailyGoal,children:l("goal-done.description")})]}),(0,a.jsx)(w.Z,{goal:t,weekData:i})]}):(0,a.jsxs)("div",{className:L().dailyProgressContainer,children:[(0,a.jsx)("p",{className:L().streakTitle,children:l("daily-progress")}),(0,a.jsx)("p",{className:L().dailyGoal,children:(0,a.jsx)(R.Z,{currentActivityDay:o,goal:t,context:R.H.QuranReader})}),(0,a.jsxs)("div",{className:L().progressContainer,children:[(0,a.jsx)($.Z,{value:r}),(0,a.jsx)("div",{className:L().progressTextContainer,children:(0,a.jsxs)("p",{children:[d,"%"]})})]})]})},E=n(83548),D=n(13533),Y=n(95932);!function(e){e.Home="home",e.QuranReader="quran-reader"}(t||(t={}));var V=function(){var e=(0,E.Z)({disableIfNoGoalExists:!0}),r=e.isLoading,n=e.goal,t=e.weekData,o=e.currentActivityDay,i=(0,Y.xT)((null===o||void 0===o?void 0:o.progress)||0),s=i>=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"}}}]);
  2. //# sourceMappingURL=97917.bf670b6423b7d6a6.js.map