12 |
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[95405],{15273:function(e,n,t){"use strict";var a,r=t(67597);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},i.apply(null,arguments)}n.Z=function(e){return r.createElement("svg",i({viewBox:"0 0 24 24",width:18,height:18,stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",fill:"none",shapeRendering:"geometricPrecision",style:{color:"currentcolor"}},e),a||(a=r.createElement("path",{d:"m6 9 6 6 6-6"})))}},21938:function(e,n,t){"use strict";var a,r,i,o,s,l,c,d,u,h=t(67597);function p(){return p=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},p.apply(null,arguments)}n.Z=function(e){return h.createElement("svg",p({xmlns:"http://www.w3.org/2000/svg",width:1080,viewBox:"0 0 810 810",height:1080},e),a||(a=h.createElement("defs",null,h.createElement("clipPath",{id:"a"},h.createElement("path",{d:"M40.5 40.5h729v729h-729Zm0 0"})),h.createElement("clipPath",{id:"b"},h.createElement("path",{d:"M90 40.5h679.5V717H90Zm0 0"})))),r||(r=h.createElement("g",{clipPath:"url(#a)"},h.createElement("path",{fill:"#ec3655",d:"M769.535 405c0 201.32-163.215 364.535-364.535 364.535C203.68 769.535 40.465 606.32 40.465 405 40.465 203.645 203.68 40.465 405 40.465c201.32 0 364.535 163.18 364.535 364.535"}))),i||(i=h.createElement("path",{fill:"#fff",d:"M669.043 405c0 145.836-118.207 264.043-264.043 264.043S140.957 550.836 140.957 405 259.164 140.957 405 140.957 669.043 259.164 669.043 405"})),o||(o=h.createElement("path",{fill:"#ec3655",d:"M577.402 405c0 95.242-77.16 172.402-172.402 172.402-95.203 0-172.402-77.16-172.402-172.402 0-95.203 77.199-172.402 172.402-172.402 95.242 0 172.402 77.199 172.402 172.402"})),s||(s=h.createElement("path",{fill:"#fff",d:"M493.223 405c0 48.723-39.5 88.223-88.223 88.223s-88.223-39.5-88.223-88.223 39.5-88.223 88.223-88.223 88.223 39.5 88.223 88.223"})),l||(l=h.createElement("path",{fill:"#3abdc4",d:"M673.453 133.133 549.7 256.922l65.11 25.351 124.78-124.742-66.136-24.398"})),c||(c=h.createElement("path",{fill:"#3abdc4",d:"M673.453 133.133 549.7 256.922l-25.39-65.11 124.78-124.785 24.364 66.106"})),d||(d=h.createElement("path",{fill:"none",d:"m399.339 362.009 2.648 42.59 42.586 2.68",stroke:"#51558f",strokeWidth:22.0464,strokeMiterlimit:10})),u||(u=h.createElement("g",{clipPath:"url(#b)"},h.createElement("path",{fill:"none",d:"m694.319 112.298-292.332 292.3",stroke:"#51558f",strokeWidth:22.0464,strokeMiterlimit:10}))))}},50024:function(e,n,t){"use strict";var a,r,i=t(67597);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},o.apply(null,arguments)}n.Z=function(e){return i.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"feather feather-help-circle"},e),a||(a=i.createElement("circle",{cx:12,cy:12,r:10})),r||(r=i.createElement("path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3M12 17h.01"})))}},13533:function(e,n,t){"use strict";var a,r,i,o,s,l=t(67597);function c(){return c=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},c.apply(null,arguments)}n.Z=function(e){return l.createElement("svg",c({viewBox:"0 0 92 80",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),a||(a=l.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"})),r||(r=l.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"})),i||(i=l.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"})),o||(o=l.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=l.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"})))}},48312:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return t(72622)}])},23266:function(e,n,t){"use strict";t.d(n,{a:function(){return a}});var a,r=t(45361),i=t(57611),o=t(67597),s=t(64826),l=t(37014),c=t.n(l),d=t(55340),u=t.n(d);!function(e){e.Left="left",e.Right="right"}(a||(a={}));n.Z=function(e){var n=e.isDefaultOpen,t=void 0!==n&&n,l=e.prefix,d=e.title,h=e.suffix,p=e.children,m=e.shouldRotatePrefixOnToggle,f=e.shouldOpen,g=e.onOpenChange,_=e.direction,v=void 0===_?a.Left:_,x=(0,o.useState)(t),j=x[0],C=x[1];(0,o.useEffect)((function(){C(f)}),[f]);return(0,i.jsxs)(s.fC,{onOpenChange:g,open:j,children:[(0,i.jsx)(s.xz,{asChild:!0,children:(0,i.jsx)("div",{className:u().header,onClick:function(){return C((function(e){return!e}))},children:v===a.Left?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:u().headerLeft,children:[(0,i.jsx)("div",{className:c()(u().prefixContainer,(0,r.Z)({},u().prefixRotated,m&&j)),children:l}),d]}),(0,i.jsx)("div",{className:u().suffixContainer,onClick:function(e){e.preventDefault(),e.stopPropagation()},children:h})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:u().headerLeft,children:d}),(0,i.jsx)("div",{className:c()(u().prefixContainer,(0,r.Z)({},u().prefixRotated,m&&j)),children:l})]})})}),(0,i.jsx)(s.Fw,{children:j&&p({isOpen:j})})]})}},53473:function(e,n,t){"use strict";t.d(n,{EY:function(){return a},Jh:function(){return r}});var a,r,i=t(45361),o=t(57611),s=(t(67597),t(37014)),l=t.n(s),c=t(79999),d=t.n(c),u=t(22209);!function(e){e.default="default",e.primary="primary",e.secondary="secondary"}(a||(a={})),function(e){e.Xsmall="xsmall",e.Small="small",e.Medium="medium",e.Large="large"}(r||(r={}));n.ZP=function(e){var n,t=e.icon,s=e.size,c=void 0===s?r.Medium:s,h=e.color,p=void 0===h?a.default:h,m=e.shouldFlipOnRTL,f=void 0===m||m,g=e.shouldForceSetColors,_=void 0===g||g,v=e.className,x=(0,u.Z)();return(0,o.jsx)("span",{className:l()(v,d().container,(n={},(0,i.Z)(n,d().defaultColor,_&&p===a.default||p===a.primary),(0,i.Z)(n,d().secondaryColor,_&&p===a.secondary),(0,i.Z)(n,d().xsmallIcon,c===r.Xsmall),(0,i.Z)(n,d().smallIcon,c===r.Small),(0,i.Z)(n,d().mediumIcon,c===r.Medium),(0,i.Z)(n,d().largeIcon,c===r.Large),n)),"data-auto-flip-icon":f,dir:x,children:t})}},52140:function(e,n,t){"use strict";var a=t(45361),r=t(57611),i=(t(67597),t(37014)),o=t.n(i),s=t(55686),l=t.n(s);n.Z=function(e){var n=e.keyboardKey,t=e.meta,i=e.shift,s=e.alt,c=e.ctrl,d=e.invertColors,u=void 0!==d&&d,h=-1!==window.navigator.userAgent.search("Mac");return(0,r.jsxs)("kbd",{className:o()(l().container,(0,a.Z)({},l().invertedColors,u)),children:[t&&(0,r.jsx)("span",{children:h?"\u2318":"ctrl"}),i&&(0,r.jsx)("span",{children:"\u21e7"}),s&&(0,r.jsx)("span",{children:"\u2325"}),c&&(0,r.jsx)("span",{children:"\u2303"}),n&&(0,r.jsx)("span",{children:n})]})}},92111:function(e,n,t){"use strict";t.r(n);var a=t(57044),r=t(16946),i=t(57611),o=(t(67597),t(33738)),s=t(45077);n.default=function(e){var n=e.content,t=e.children,l=e.onOpenChange,c=e.contentSide,d=void 0===c?o.iw.TOP:c,u=e.tip,h=void 0===u||u,p=e.tooltipDelay,m=void 0===p?0:p,f=e.defaultStyling,g=void 0===f||f,_=e.isOpen,v=e.triggerStyles,x=e.isContainerSpan,j=void 0!==x&&x;return(0,i.jsx)(o.ZP,(0,r.Z)((0,a.Z)({open:_,triggerStyles:v,contentSide:d,useTooltipStyles:!0},l&&{onOpenChange:l}),{defaultStyling:g,isContainerSpan:j,trigger:(0,i.jsx)(s.ZP,(0,r.Z)((0,a.Z)({open:_,tip:h,text:n,contentSide:d,delay:m},l&&{onOpenChange:l}),{children:t})),tip:h,children:n}))}},33738:function(e,n,t){"use strict";t.d(n,{iw:function(){return a}});var a,r,i=t(45361),o=t(57044),s=t(16946),l=t(57611),c=(t(67597),t(87373)),d=t(37014),u=t.n(d),h=t(86046),p=t.n(h);!function(e){e.TOP="top",e.RIGHT="right",e.BOTTOM="bottom",e.LEFT="left"}(a||(a={})),function(e){e.START="start",e.CENTER="center",e.END="end"}(r||(r={}));n.ZP=function(e){var n,t=e.children,d=e.trigger,h=e.onOpenChange,m=e.open,f=e.isModal,g=void 0!==f&&f,_=e.contentSide,v=void 0===_?a.BOTTOM:_,x=e.contentAlign,j=void 0===x?r.CENTER:x,C=e.avoidCollisions,k=void 0===C||C,y=e.tip,b=void 0!==y&&y,Z=e.useTooltipStyles,N=void 0!==Z&&Z,S=e.defaultStyling,w=void 0===S||S,L=e.isPortalled,E=void 0===L||L,O=e.contentSideOffset,T=void 0===O?2:O,P=e.triggerStyles,R=e.contentStyles,A=e.isContainerSpan,M=void 0!==A&&A,q=(0,l.jsxs)(c.VY,{sideOffset:T,side:v,align:j,avoidCollisions:k,className:u()(p().content,(n={},(0,i.Z)(n,p().tooltipContent,N),(0,i.Z)(n,R,R),n)),children:[t,b&&(0,l.jsx)(c.Eh,{})]}),I=(0,l.jsxs)(c.fC,(0,s.Z)((0,o.Z)({modal:g},"undefined"!==typeof m&&{open:m},h&&{onOpenChange:h}),{children:[(0,l.jsx)(c.xz,{"aria-label":"Open popover",asChild:!0,children:(0,l.jsx)("span",{className:u()(p().trigger,(0,i.Z)({},P,P)),children:d})}),E?(0,l.jsx)(c.h_,{children:q}):q]}));return M?(0,l.jsx)("span",{className:u()((0,i.Z)({},p().container,w)),children:I}):(0,l.jsx)("div",{className:u()((0,i.Z)({},p().container,w)),children:I})}},72622:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSG:function(){return ln},default:function(){return cn}});var a,r=t(57611),i=t(67597),o=t(37014),s=t.n(o),l=t(9605),c=t.n(l),d=t(61395),u=t(86719),h=t.n(u),p=t(45361),m=t(33770),f=t.n(m),g=t(67385),_=t(57830),v=t(559),x=t(28125),j=t(93584),C=t.n(j),k=t(90914),y=t(85055),b=t.n(y),Z=Array(114).fill(null),N=function(){return(0,r.jsxs)("span",{className:b().skeletonContainer,children:[(0,r.jsxs)("div",{className:b().tabSkeleton,children:[(0,r.jsx)(k.Z,{isActive:!0,isSquared:!0,className:b().firstTabSkeleton}),(0,r.jsx)(k.Z,{isActive:!0,isSquared:!0,className:b().secondTabSkeleton})]}),Z.map((function(e,n){return(0,r.jsx)(k.Z,{isActive:!0,isSquared:!0,className:b().skeletonItem},"skeleton_".concat(n))}))]})},S=t(15273),w=t(12195),L=t(43609);!function(e){e.Surah="surah",e.Juz="juz",e.RevelationOrder="revelation_order"}(a||(a={}));var E,O=f()((function(){return t.e(1047).then(t.bind(t,1047))}),{loadableGenerated:{webpack:function(){return[1047]}},ssr:!1,loading:function(){return(0,r.jsx)(N,{})}}),T=f()((function(){return Promise.resolve().then(t.bind(t,92111))}),{loadableGenerated:{webpack:function(){return[92111]}},ssr:!1}),P=f()((function(){return t.e(8820).then(t.bind(t,8820))}),{loadableGenerated:{webpack:function(){return[8820]}},ssr:!1,loading:function(){return(0,r.jsx)(N,{})}});!function(e){e.ASC="ascending",e.DESC="descending"}(E||(E={}));var R={1:!0,2:!0,3:!0,4:!0,18:!0,32:!0,36:!0,55:!0,56:!0,67:!0},A=function(e){var n,t=e.chapters,o=(0,d.Z)(),l=o.t,c=o.lang,u=(0,i.useState)(a.Surah),h=u[0],m=u[1],f=(0,i.useState)(E.ASC),j=f[0],k=f[1],y=function(){k((function(e){var n=e===E.DESC?E.ASC:E.DESC;return(0,w.Q8)("homepage_".concat(h,"_sorting"),e,n),n}))},b=(0,i.useMemo)((function(){return[{title:l("common:".concat(a.Surah)),value:a.Surah},{title:l("common:".concat(a.Juz)),value:a.Juz,id:"juz-tab"},{title:l("common:".concat(a.RevelationOrder)),value:a.RevelationOrder}]}),[l]),Z=(0,i.useMemo)((function(){return j===E.DESC?t.slice().sort((function(e,n){return Number(n.id)-Number(e.id)})):t}),[j,t]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:C().tabsContainer,children:[(0,r.jsx)(x.Z,{tabs:b,selected:h,onSelect:function(e){(0,w.MY)("homepage_".concat(e,"_tab")),m(e)}}),(0,r.jsxs)("div",{className:C().sorter,children:[(0,r.jsxs)("div",{className:C().uppercase,children:[l("common:sort.by"),":"]}),(0,r.jsxs)("div",{className:C().sortByValue,onClick:y,role:"button",onKeyPress:y,tabIndex:0,children:[(0,r.jsx)("span",{children:l("common:sort.".concat(j))}),(0,r.jsx)("span",{className:j===E.ASC?C().rotate180:"",children:(0,r.jsx)(S.Z,{})})]})]}),h===a.RevelationOrder&&(0,r.jsx)("div",{className:C().revelationOrderDisclaimer,children:(0,r.jsx)("span",{children:(0,r.jsx)(g.Z,{i18nKey:"home:revelation-order-disclaimer",components:{link:(0,r.jsx)("a",{href:"https://tanzil.net/docs/revelation_order",target:"_blank",rel:"noreferrer"}),hover:(0,r.jsx)(T,{isContainerSpan:!0,content:l("common:pbuh")})}})})})]}),(0,r.jsxs)("div",{className:s()((n={},(0,p.Z)(n,C().surahLayout,h===a.Surah||h===a.RevelationOrder),(0,p.Z)(n,C().juzLayout,h===a.Juz),n)),children:[h===a.Surah&&Z.map((function(e){return(0,r.jsx)("div",{className:C().chapterContainer,children:(0,r.jsx)(_.Z,{href:"/".concat(e.id),shouldPrefetch:!0===R[Number(e.id)],children:(0,r.jsx)(v.Z,{chapterId:Number(e.id),description:"".concat((0,L.rQ)(e.versesCount,c)," ").concat(l("common:ayahs")),surahName:e.transliteratedName,surahNumber:Number(e.id),translatedSurahName:e.translatedName,isMinimalLayout:(0,L.uP)(c)})})},e.id)})),h===a.Juz&&(0,r.jsx)(O,{isDescending:j===E.DESC}),h===a.RevelationOrder&&(0,r.jsx)(P,{isDescending:j===E.DESC,chapters:t})]})]})},M=t(11276),q=t.n(M),I=t(57044),z=t(16946),D=t(85494),K=function(e){var n=e.text,t=e.slug,a=e.className,i=e.logKey,o=e.isExternalLink,s=void 0!==o&&o;return(0,r.jsx)(D.ZP,(0,z.Z)((0,I.Z)({size:D.qE.Small,className:a,href:s?t:"/".concat(t),type:D.L$.Secondary,variant:D.Wu.Compact,shape:D.jL.Pill,onClick:function(){(0,w.MY)("quick_link_".concat(i))}},s&&{isNewTab:!0}),{children:n}))},G=t(61383),V=t.n(G),B=t(19226),J="production"===t(25620).env.NEXT_PUBLIC_VERCEL_ENV,W=[{slug:"about-the-quran",logKey:"about-quran",key:"about-quran"},{slug:"surah-al-mulk",logKey:"surah-al-mulk",key:"mulk"},{slug:"surah-ya-sin",logKey:"surah-ya-sin",key:"yaseen"},{slug:"surah-al-kahf",logKey:"surah-al-kahf",key:"kahf"},{slug:"surah-al-waqiah",logKey:"surah-al-waqiah",key:"waqiah"}];(0,B.jl)()&&J&&W.push({slug:"collections/the-authority-and-importance-of-the-sunnah-clem7p7lf15921610rsdk4xzulfj",key:"sunnah",logKey:"sunnah_collection"});var H,F=function(){var e=(0,d.Z)("quick-links").t;return(0,r.jsx)("div",{className:V().quickLinksContainer,children:W.map((function(n){return(0,r.jsx)(K,{slug:n.slug,logKey:n.logKey,text:e(n.key),className:V().link},n.slug)}))})},Q=t(648),Y=t(14088),X=t.n(Y),$=t(52140),U=t(42366),ee=t(82649),ne=function(){var e=(0,d.Z)("common").t,n=(0,Q.I0)(),t=(0,i.useCallback)((function(){(0,w.MY)("command_bar_homepage_trigger"),n({type:ee.VJ.type})}),[n]);return(0,r.jsxs)("div",{role:"button",tabIndex:0,className:X().container,onClick:t,id:"command-bar",children:[(0,r.jsxs)("div",{className:X().leftSection,children:[(0,r.jsx)(U.Z,{}),(0,r.jsx)("span",{className:X().placeholder,children:e("command-bar.placeholder")})]}),(0,r.jsx)("div",{className:X().actionsContainer,children:(0,r.jsx)($.Z,{meta:!0,keyboardKey:"K"})})]},"commandbar-trigger")},te=f()((function(){return t.e(18351).then(t.bind(t,18351))}),{loadableGenerated:{webpack:function(){return[18351]}}}),ae=function(){return(0,r.jsxs)("div",{className:q().outerContainer,children:[(0,r.jsx)(c(),{children:(0,r.jsx)("link",{rel:"preload",as:"image",href:"/images/background.jpg"})}),(0,r.jsx)("div",{className:q().backgroundImage}),(0,r.jsxs)("div",{"data-theme":"light",children:[(0,r.jsx)(te,{}),(0,r.jsxs)("div",{className:q().innerContainer,children:[(0,r.jsx)(ne,{}),(0,r.jsx)("div",{className:q().quickLinksContainer,children:(0,r.jsx)(F,{})})]})]})]})},re=t(31114),ie=t.n(re),oe=t(28006),se=t.n(oe),le=t(53473),ce=function(e){var n=e.title,t=e.icon;return(0,r.jsxs)("div",{className:se().container,children:[(0,r.jsx)(le.ZP,{className:se().iconContainer,shouldForceSetColors:!1,icon:t,shouldFlipOnRTL:!1}),n]})},de=t(1997),ue=t(51726),he=t(62103),pe=t(67793),me=t.n(pe),fe=t(9740),ge=t(37572),_e=function(){var e,n=(0,d.Z)("home").t,t=(0,he.Z)((0,B.jl)()?(0,ge.V9)():null,(0,de.Z)((function(){return(0,ue.__generator)(this,(function(e){switch(e.label){case 0:return[4,(0,fe.F4)()];case 1:return[2,e.sent()]}}))}))),a=t.data,i=t.isValidating,o=t.error;return(0,B.jl)()?i&&!a||o||0===(null!==(e=null===a||void 0===a?void 0:a.count)&&void 0!==e?e:0)?(0,r.jsx)("p",{className:me().desc,children:n("qgj.learning-plans.desc.logged-in-no-plans")}):(0,r.jsx)("p",{className:me().desc,children:n("qgj.learning-plans.desc.logged-in")}):(0,r.jsx)("p",{className:me().desc,children:n("qgj.learning-plans.desc.logged-out")})},ve=t(62317),xe=t.n(ve),je=t(84020),Ce=function(){var e,n=(0,d.Z)("home").t,t=(0,he.Z)((0,B.jl)()?(0,ge.V9)():null,(0,de.Z)((function(){return(0,ue.__generator)(this,(function(e){switch(e.label){case 0:return[4,(0,fe.F4)()];case 1:return[2,e.sent()]}}))}))),a=t.data,i=t.isValidating,o=t.error,s=(0,r.jsx)(D.ZP,{onClick:function(e){e.stopPropagation(),(0,w.MY)("homepage_qgj_view_plans")},href:(0,je.ty)(),className:xe().viewPlansBtn,size:D.qE.Small,type:D.L$.Success,children:n("qgj.learning-plans.cta.all-plans")});return(0,B.jl)()?i&&!a||o||0===(null!==(e=null===a||void 0===a?void 0:a.count)&&void 0!==e?e:0)?(0,r.jsx)("div",{className:xe().buttonsContainer,children:s}):(0,r.jsxs)("div",{className:xe().buttonsContainer,children:[s,(0,r.jsx)(D.ZP,{onClick:function(e){e.stopPropagation(),(0,w.MY)("homepage_qgj_my_plans")},href:(0,je.L$)(),size:D.qE.Small,type:D.L$.Success,children:n("qgj.learning-plans.cta.my-plans")})]}):(0,r.jsx)("div",{className:xe().buttonsContainer,children:s})},ke=t(60683),ye=t.n(ke),be=function(e){var n=e.nextVerseToRead,t=e.currentActivityDay,a=(0,d.Z)("reading-goal").t;return(0,r.jsxs)("div",{className:ye().actionsContainer,children:[(0,r.jsx)(D.ZP,{href:n?(0,je.P6)(n):void 0,isDisabled:!n,onClick:function(e){e.stopPropagation(),(0,w.MY)("homepage_streak_widget_continue_reading",{verse_key:n})},size:D.qE.Small,type:D.L$.Success,children:a((null===t||void 0===t?void 0:t.ranges.length)?"continue-reading":"start-reading")}),(0,r.jsx)(D.ZP,{variant:D.Wu.Ghost,size:D.qE.Small,href:(0,je.oJ)(),onClick:function(e){e.stopPropagation(),(0,w.MY)("homepage_streak_widget_view_progress")},children:a("view-progress")})]})},Ze=t(51592),Ne=t(83548),Se=function(){var e,n,t=(0,d.Z)("reading-goal").t,a=(0,Ne.Z)({disableIfNoGoalExists:!1}),i=a.goal,o=a.currentActivityDay,s=(0,Ze.Z)().recentlyReadVerseKeys,l=null!==(n=null===i||void 0===i||null===(e=i.progress)||void 0===e?void 0:e.nextVerseToRead)&&void 0!==n?n:s[0];if(i)return(0,r.jsx)(be,{nextVerseToRead:l,currentActivityDay:o});var c=(0,je.we)();return(0,r.jsx)("div",{className:xe().buttonsContainer,children:(0,r.jsx)(D.ZP,{onClick:function(e){e.stopPropagation(),(0,w.MY)("homepage_qgj_create_goal")},size:D.qE.Small,type:D.L$.Success,href:(0,B.jl)()?c:(0,je.gk)(c),children:t("create-reading-goal")})})},we=t(54362),Le=t(8944),Ee=t.n(Le),Oe=t(96681),Te=t(84496),Pe=t.n(Te),Re=t(3463),Ae=t(50024),Me=[{state:Oe.C.None,label:"none"},{state:Oe.C.Stroked,label:"stroked"},{state:Oe.C.Filled,label:"filled"},{state:Oe.C.Checked,label:"checked"}],qe=function(){var e=(0,d.Z)("reading-goal").t,n=(0,i.useState)(!1),t=n[0],a=n[1],o=function(){return a(!1)};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("button",{type:"button",className:Pe().button,onClick:function(){return a(!0)},children:(0,r.jsx)(Ae.Z,{})}),(0,r.jsx)(Re.Z,{isOpen:t,onClickOutside:o,onEscapeKeyDown:o,children:(0,r.jsxs)(Re.Z.Body,{children:[(0,r.jsxs)(Re.Z.Header,{children:[(0,r.jsx)(Re.Z.Title,{children:e("streak")}),(0,r.jsx)(Re.Z.Subtitle,{children:e("streak-definition")})]}),(0,r.jsxs)("div",{className:Pe().timelineSection,children:[(0,r.jsx)("h2",{children:e("timeline-meaning")}),(0,r.jsx)("ul",{children:Me.map((function(n){var t=n.state,a=n.label;return(0,r.jsxs)("li",{children:[(0,r.jsx)("div",{className:Pe().dayCircleWrapper,children:(0,r.jsx)(Oe.Z,{state:t})}),(0,r.jsx)("span",{children:e("timeline-states.".concat(a))})]},a)}))})]})]})})]})},Ie=function(e){var n=e.streak,t=e.currentActivityDay,a=(0,d.Z)("reading-goal"),i=a.t,o=a.lang,l=(0,L.rQ)(n,o),c=null===t||void 0===t?void 0:t.hasRead;return(0,r.jsxs)("div",{className:s()(Ee().streakTitle,!c&&n>0&&Ee().streakTitleWarning),children:[i("x-days-streak",{days:l}),(0,r.jsx)(qe,{})]})},ze=t(71612),De=function(e){var n=e.currentActivityDay,t=e.goal,a=e.percent,i=e.isQuranReader,o=(0,d.Z)("reading-goal").t;return t?t.isCompleted?o("progress.goal-complete"):a<100?(0,r.jsx)(ze.Z,{currentActivityDay:n,goal:t,context:i?ze.H.QuranReader:ze.H.HomePage}):o("progress.complete"):null},Ke=t(52087),Ge=t.n(Ke),Ve=t(95932),Be=function(){var e=(0,d.Z)("reading-goal").t,n=(0,Ne.Z)({disableIfNoGoalExists:!1}),t=n.isLoading,a=n.error,i=n.streak,o=n.goal,s=n.weekData,l=n.currentActivityDay,c=(0,Ve.xT)((null===l||void 0===l?void 0:l.progress)||0);return a||!t&&0===i&&!o?(0,r.jsx)("p",{children:e("home:qgj.quran-reading-goals.desc.logged-out")}):(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:Ge().container,children:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("span",{className:Ge().streakSubtitle,children:e("reading-goal-label")}),t?(0,r.jsx)(k.Z,{children:(0,r.jsx)(Ie,{currentActivityDay:l,streak:i})}):(0,r.jsx)(Ie,{currentActivityDay:l,streak:i})]}),(0,r.jsx)(we.Z,{goal:o,weekData:s})]})}),o&&(0,r.jsx)("div",{className:Ge().goalContainer,children:(0,r.jsx)(De,{isQuranReader:!1,goal:o,currentActivityDay:l,percent:c})})]})},Je=t(23266),We=t(75183),He=t(21938);function Fe(){return Fe=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Fe.apply(null,arguments)}var Qe,Ye=function(e){return i.createElement("svg",Fe({width:15,height:15,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),H||(H=i.createElement("path",{d:"M4.2 1h-.023c-.308 0-.573 0-.79.02-.231.023-.459.071-.67.201a1.5 1.5 0 0 0-.496.495c-.13.212-.178.44-.2.67C2 2.604 2 2.87 2 3.177V11.823c0 .308 0 .573.02.79.023.231.071.459.201.67a1.5 1.5 0 0 0 .495.496c.212.13.44.178.67.2.218.021.483.021.791.021H10.823c.308 0 .573 0 .79-.02.231-.023.459-.071.67-.201a1.5 1.5 0 0 0 .496-.495c.13-.212.178-.44.2-.67.021-.218.021-.483.021-.791V3.177c0-.308 0-.573-.02-.79a1.519 1.519 0 0 0-.201-.67 1.5 1.5 0 0 0-.495-.496 1.519 1.519 0 0 0-.67-.2A8.997 8.997 0 0 0 10.823 1H4.2Zm-.961 1.074c.028-.018.085-.043.242-.058C3.645 2.001 3.863 2 4.2 2h6.6c.337 0 .555 0 .72.016.156.015.213.04.241.058a.5.5 0 0 1 .165.165c.018.028.043.085.058.242.015.164.016.382.016.719v8.6c0 .337 0 .555-.016.72-.015.156-.04.213-.058.241a.5.5 0 0 1-.165.165c-.028.018-.085.043-.242.058A8.534 8.534 0 0 1 10.8 13H4.2c-.337 0-.555 0-.72-.016-.156-.015-.213-.04-.241-.058a.5.5 0 0 1-.165-.165c-.018-.028-.043-.085-.058-.242A8.558 8.558 0 0 1 3 11.8V3.2c0-.337 0-.555.016-.72.015-.156.04-.213.058-.241a.5.5 0 0 1 .165-.165ZM5 10a.5.5 0 0 0 0 1h3a.5.5 0 0 0 0-1H5Zm-.5-2.5A.5.5 0 0 1 5 7h5a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5ZM5 4a.5.5 0 0 0 0 1h5a.5.5 0 0 0 0-1H5Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})))};!function(e){e.QuranReadingGoalsType="quran_reading_goals",e.LearningPlansType="learning_plans"}(Qe||(Qe={}));var Xe=function(e){var n=e.onOpenChange,t=e.type,a=(0,d.Z)("home").t,o=(0,i.useState)(!1),s=o[0],l=o[1];return(0,r.jsx)("div",{className:ie().container,children:(0,r.jsx)(Je.Z,{direction:Je.a.Right,onOpenChange:function(e){l(e),n(t,s)},shouldOpen:s,title:t===Qe.QuranReadingGoalsType?(0,r.jsxs)("div",{children:[(0,r.jsx)(ce,{title:a("qgj.quran-reading-goals.title"),icon:(0,r.jsx)(He.Z,{})}),(0,r.jsx)(Se,{})]}):(0,r.jsxs)("div",{children:[(0,r.jsx)(ce,{title:a("qgj.learning-plans.title"),icon:(0,r.jsx)(Ye,{})}),(0,r.jsx)(Ce,{})]}),prefix:(0,r.jsx)("div",{className:ie().prefixSVG,children:(0,r.jsx)(We.Z,{})}),shouldRotatePrefixOnToggle:!0,children:function(e){return e.isOpen?(0,r.jsx)("div",{className:ie().body,children:t===Qe.QuranReadingGoalsType?(0,r.jsx)(Be,{}):(0,r.jsx)(_e,{})}):null}})})},$e=t(81167),Ue=t.n($e),en=t(13533),nn=function(){var e=(0,d.Z)("home").t,n=function(e,n){n?(0,w.Kz)("homepage_".concat(e,"_collapse_opened")):(0,w.Kz)("homepage_".concat(e,"_collapse_closed"))};return(0,r.jsxs)("div",{className:Ue().wrapper,id:"qgj-widget",children:[(0,r.jsx)("div",{className:Ue().illustrationContainer,children:(0,r.jsx)(en.Z,{})}),(0,r.jsx)("div",{className:Ue().header,children:(0,r.jsx)("p",{className:Ue().title,children:e("qgj.title")})}),(0,r.jsx)(Xe,{onOpenChange:n,type:Qe.QuranReadingGoalsType}),(0,r.jsx)(Xe,{onOpenChange:n,type:Qe.LearningPlansType})]})},tn=t(6889),an=t.n(tn),rn=function(){return(0,r.jsx)("div",{className:an().container,children:(0,r.jsx)("p",{className:an().cta,children:(0,r.jsx)(g.Z,{components:{link:(0,r.jsx)(_.Z,{onClick:function(){(0,w.MY)("homepage_quranic_calendar_cta")},href:(0,je.ly)(),variant:_.r.Blend,isNewTab:!0})},i18nKey:"home:ramadan-activities-cta",values:{source:"quranwbw"}})})})},on=t(21648),sn=t(7414),ln=!0,cn=function(e){var n=e.chaptersResponse.chapters,t=(0,d.Z)("home"),a=t.t,i=t.lang;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(c(),{children:(0,r.jsx)("link",{rel:"preload",as:"image",href:"/images/background.jpg",crossOrigin:"anonymous"})}),(0,r.jsx)(on.Z,{title:a("home:noble-quran"),url:(0,je.Z2)(i,""),languageAlternates:(0,L.qc)("")}),(0,r.jsx)("div",{className:h().pageContainer,children:(0,r.jsxs)("div",{className:h().flow,children:[(0,r.jsx)(ae,{}),(0,r.jsx)("div",{className:s()(h().flowItem,h().fullWidth),children:(0,r.jsx)(rn,{})}),(0,r.jsx)("div",{className:s()(h().flowItem,h().fullWidth),children:(0,r.jsx)(nn,{})}),(0,r.jsx)("div",{className:s()(h().flowItem,h().fullWidth),children:(0,r.jsx)(sn.Z,{isHomepage:!0})}),(0,r.jsx)("div",{className:h().flowItem,children:(0,r.jsx)(A,{chapters:n})})]})})]})}},14088:function(e){e.exports={leftSection:"CommandBarTrigger_leftSection__P7gdV",placeholder:"CommandBarTrigger_placeholder__tW_M9",container:"CommandBarTrigger_container__g1Ziu",actionsContainer:"CommandBarTrigger_actionsContainer__cN9E2",searchButtonWrapper:"CommandBarTrigger_searchButtonWrapper__e5_5c"}},11276:function(e){e.exports={outerContainer:"HomePageHero_outerContainer__iOY2Z",backgroundImage:"HomePageHero_backgroundImage__iQe4N",innerContainer:"HomePageHero_innerContainer__2eeX_",imageContainer:"HomePageHero_imageContainer__XIIR0",quickLinksContainer:"HomePageHero_quickLinksContainer__dLOws"}},61383:function(e){e.exports={header:"QuickLinks_header__7j1nm",quickLinksContainer:"QuickLinks_quickLinksContainer__azLk0",link:"QuickLinks_link__GzlyR"}},62317:function(e){e.exports={viewPlansBtn:"CallToActionButtons_viewPlansBtn__z44Sp",buttonsContainer:"CallToActionButtons_buttonsContainer__V05v8"}},31114:function(e){e.exports={container:"CollapsibleSection_container__UaKmj",body:"CollapsibleSection_body__Lvq2b",prefixSVG:"CollapsibleSection_prefixSVG__YjDGa"}},28006:function(e){e.exports={container:"CollapsibleTitle_container__EKu3L",iconContainer:"CollapsibleTitle_iconContainer__lf_ZO"}},67793:function(e){e.exports={desc:"LearningPlans_desc__kK8C_"}},8944:function(e){e.exports={streakTitle:"DaysCounter_streakTitle__4zv5R",streakTitleWarning:"DaysCounter_streakTitleWarning__uxmVK"}},60683:function(e){e.exports={actionsContainer:"GoalButtons_actionsContainer__q9LeA"}},84496:function(e){e.exports={button:"StreakDefinitionModal_button__2f9cU",timelineSection:"StreakDefinitionModal_timelineSection__12Kt0",dayCircleWrapper:"StreakDefinitionModal_dayCircleWrapper__v_qbx"}},81167:function(e){e.exports={wrapper:"QuranGrowthJourneySection_wrapper__OhnGO",header:"QuranGrowthJourneySection_header__YzSYn",title:"QuranGrowthJourneySection_title__p5KVY",illustrationContainer:"QuranGrowthJourneySection_illustrationContainer__JXuD_"}},6889:function(e){e.exports={container:"RamadanActivitiesSection_container__TXNG4",illustrationContainer:"RamadanActivitiesSection_illustrationContainer__lZFOK",cta:"RamadanActivitiesSection_cta__cAwDT"}},93584:function(e){e.exports={surahLayout:"ChapterAndJuzList_surahLayout__ZZ82j",chapterContainer:"ChapterAndJuzList_chapterContainer__uVZ3E",juzLayout:"ChapterAndJuzList_juzLayout__ejXgD",tabsContainer:"ChapterAndJuzList_tabsContainer__3Nm7e",sorter:"ChapterAndJuzList_sorter__EiaST",sortByValue:"ChapterAndJuzList_sortByValue__FQ2LI",rotate180:"ChapterAndJuzList_rotate180__88gQX",loadingContainer:"ChapterAndJuzList_loadingContainer__jvwrw",uppercase:"ChapterAndJuzList_uppercase__0CxpO",revelationOrderDisclaimer:"ChapterAndJuzList_revelationOrderDisclaimer__ymzfy"}},85055:function(e){e.exports={skeletonContainer:"ChapterAndJuzListSkeleton_skeletonContainer__e0MkS",skeletonItem:"ChapterAndJuzListSkeleton_skeletonItem__UFUNI",tabSkeleton:"ChapterAndJuzListSkeleton_tabSkeleton__9WGKQ",firstTabSkeleton:"ChapterAndJuzListSkeleton_firstTabSkeleton__5RGyO",secondTabSkeleton:"ChapterAndJuzListSkeleton_secondTabSkeleton__gSzub"}},55340:function(e){e.exports={header:"Collapsible_header__CmhJq",headerLeft:"Collapsible_headerLeft__Xh00n",prefixContainer:"Collapsible_prefixContainer__AVHUT",prefixRotated:"Collapsible_prefixRotated__bjKLn",suffixContainer:"Collapsible_suffixContainer__uZ1IW"}},79999:function(e){e.exports={container:"IconContainer_container__kS6o8",defaultColor:"IconContainer_defaultColor__jGhPh",secondaryColor:"IconContainer_secondaryColor__KDGmK",xsmallIcon:"IconContainer_xsmallIcon__QIQZu",smallIcon:"IconContainer_smallIcon__slfID",mediumIcon:"IconContainer_mediumIcon__WGpBm",largeIcon:"IconContainer_largeIcon__oO0B9"}},55686:function(e){e.exports={container:"KeyboardInput_container__Zwe4F",invertedColors:"KeyboardInput_invertedColors__2s3F3"}},86046:function(e){e.exports={container:"Popover_container__GOha0",trigger:"Popover_trigger__qKXNN",content:"Popover_content__gu5L4",tooltipContent:"Popover_tooltipContent__AMPpT"}},64826:function(e,n,t){"use strict";t.d(n,{Fw:function(){return k},fC:function(){return Z},xz:function(){return N}});var a=t(57384),r=t(67597),i=t(90149),o=t(61544),s=t(82305),l=t(65672),c=t(71641),d=t(4300),u=t(8591),h=t(57458);const p="Collapsible",[m,f]=(0,o.b)(p),[g,_]=m(p),v=(0,r.forwardRef)(((e,n)=>{const{__scopeCollapsible:t,open:i,defaultOpen:o,disabled:l,onOpenChange:c,...u}=e,[p=!1,m]=(0,s.T)({prop:i,defaultProp:o,onChange:c});return(0,r.createElement)(g,{scope:t,disabled:l,contentId:(0,h.M)(),open:p,onOpenToggle:(0,r.useCallback)((()=>m((e=>!e))),[m])},(0,r.createElement)(d.WV.div,(0,a.Z)({"data-state":b(p),"data-disabled":l?"":void 0},u,{ref:n})))})),x="CollapsibleTrigger",j=(0,r.forwardRef)(((e,n)=>{const{__scopeCollapsible:t,...o}=e,s=_(x,t);return(0,r.createElement)(d.WV.button,(0,a.Z)({type:"button","aria-controls":s.contentId,"aria-expanded":s.open||!1,"data-state":b(s.open),"data-disabled":s.disabled?"":void 0,disabled:s.disabled},o,{ref:n,onClick:(0,i.M)(e.onClick,s.onOpenToggle)}))})),C="CollapsibleContent",k=(0,r.forwardRef)(((e,n)=>{const{forceMount:t,...i}=e,o=_(C,e.__scopeCollapsible);return(0,r.createElement)(u.z,{present:t||o.open},(({present:e})=>(0,r.createElement)(y,(0,a.Z)({},i,{ref:n,present:e}))))})),y=(0,r.forwardRef)(((e,n)=>{const{__scopeCollapsible:t,present:i,children:o,...s}=e,u=_(C,t),[h,p]=(0,r.useState)(i),m=(0,r.useRef)(null),f=(0,c.e)(n,m),g=(0,r.useRef)(0),v=g.current,x=(0,r.useRef)(0),j=x.current,k=u.open||h,y=(0,r.useRef)(k),Z=(0,r.useRef)();return(0,r.useEffect)((()=>{const e=requestAnimationFrame((()=>y.current=!1));return()=>cancelAnimationFrame(e)}),[]),(0,l.b)((()=>{const e=m.current;if(e){Z.current=Z.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";const n=e.getBoundingClientRect();g.current=n.height,x.current=n.width,y.current||(e.style.transitionDuration=Z.current.transitionDuration,e.style.animationName=Z.current.animationName),p(i)}}),[u.open,i]),(0,r.createElement)(d.WV.div,(0,a.Z)({"data-state":b(u.open),"data-disabled":u.disabled?"":void 0,id:u.contentId,hidden:!k},s,{ref:f,style:{"--radix-collapsible-content-height":v?`${v}px`:void 0,"--radix-collapsible-content-width":j?`${j}px`:void 0,...e.style}}),k&&o)}));function b(e){return e?"open":"closed"}const Z=v,N=j}},function(e){e.O(0,[15240,87373,47995,81301,3732,49774,92888,40179],(function(){return n=48312,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
- //# sourceMappingURL=index-49e4a9603604cfd0.js.map
|