(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[81717],{73756:function(t,n,e){"use strict";var o=e(57611),r=e(67597),i=e(62103),a=e(19175),l=e(10117),s=e(87739),c=function(t){var n=t.queryKey,e=t.render,r=t.renderError,c=t.initialData,u=t.loading,f=void 0===u?function(){return(0,o.jsx)(l.Z,{})}:u,_=t.fetcher,d=void 0===_?s._i:_,h=t.showSpinnerOnRevalidate,x=void 0===h||h,v=t.onFetchSuccess,g=(0,i.Z)(n,(function(){return d(n).then((function(t){return null===v||void 0===v||v(t),Promise.resolve(t)})).catch((function(t){return Promise.reject(t)}))}),{fallbackData:c}),m=g.data,p=g.error,T=g.isValidating,j=g.mutate;if(x?T:T&&!m)return f();if(p){if(r){var Z=r(p);if("undefined"!==typeof Z)return Z}return(0,o.jsx)(a.Z,{onRetryClicked:function(){j()},error:p})}return e(m)};n.Z=(0,r.memo)(c)},19175:function(t,n,e){"use strict";e.d(n,{Z:function(){return d}});var o,r=e(57611),i=e(67597),a=e(61395),l=e(36284),s=e.n(l),c=e(85494);function u(){return u=Object.assign?Object.assign.bind():function(t){for(var n=1;n1&&void 0!==arguments[1]&&arguments[1],e=t.target;if("SUP"===e.tagName){var o=e.innerText.trim();if(n){S(o);var r="".concat(Z.id," - ").concat(o);F&&F.id===r?((0,m.MY)("translation_sub_footnote_double_click_to_close"),G()):E[o]&&((0,m.MY)("translation_show_sub_footnote"),M({id:r,text:E[o]}))}else{var i=e.getAttribute("foot_note");N(o),i?x&&Z&&Z.id===Number(i)?((0,m.MY)("translation_footnote_double_click_to_close"),W()):((0,m.MY)("translation_show_footnote"),G(),T(!0),d(!0),(0,p.ei)(i).then((function(t){500!==t.status&&k(t.footNote)})).finally((function(){d(!1)}))):Z&&Z.id===o?((0,m.MY)("translation_pre_defined_footnote_double_click_to_close"),W()):E[o]&&((0,m.MY)("translation_pre_defined_footnote"),G(),k({id:o,text:E[o]}))}}},Y=(0,v.j2)(i),q=x&&(Z||f);return(0,o.jsxs)("div",{className:_()["translation-font-size-".concat(n)],children:[(0,o.jsx)("div",{onClick:function(t){return P(t)},className:a()(_().text,_()[Y.direction],_()[Y.font]),dangerouslySetInnerHTML:{__html:e}}),q&&(0,o.jsx)(g,{footnoteName:z||void 0,footnote:Z,isLoading:f,onCloseClicked:function(){(0,m.MY)("translation_footnote_close"),f?T(!1):W()},onTextClicked:function(t){return P(t,!0)}}),F&&(0,o.jsx)(g,{footnoteName:b||void 0,footnote:F,onCloseClicked:G}),s&&(0,o.jsxs)("p",{className:a()(_().translationName,_()[Y.direction],_()[Y.font]),children:["\u2014 ",s]})]})}},43550:function(t,n,e){"use strict";var o=e(57044),r=e(16946),i=e(57611),a=e(67597),l=e(648),s=e(13147),c=e(60948),u=e(5330),f=e(69640);n.Z=function(t){var n=t.verses,e=t.fontScale,_=(0,l.v9)(u.Pt,l.wU).quranFont,d=(0,a.useMemo)((function(){return Object.values(n).map((function(t){return(0,r.Z)((0,o.Z)({},t),{pageNumber:t.words[0].pageNumber})}))}),[n]);(0,c.Z)(_,d);var h=(0,a.useMemo)((function(){return n.map((function(t){return(0,f.LQ)(t)})).flat()}),[n]);return(0,i.jsx)(s.Z,{fontScale:e,words:h})}},60948:function(t,n,e){"use strict";var o=e(8522),r=e(67597),i=e(648),a=e(49409),l=e(1050),s=e(51652),c=e(63747);n.Z=function(t,n){var e=(0,r.useRef)([]),u=(0,i.I0)(),f=(0,s.Fy)(t),_=(0,i.v9)(a.$Z),d=(0,r.useCallback)((function(t){u((0,a.wC)(t))}),[u]);(0,r.useEffect)((function(){f&&n.length>0&&(0,s.AX)(n).forEach((function(n){var r=t===c.fr.MadaniV1,i=(0,s.r$)(r,n),a=new FontFace(i,(0,s.nA)(r,n));e.current.includes(i)||_.includes(i)||(e.current=(0,o.Z)(e.current).concat([i]),a.display="block",document.fonts.add(a),a.load().then((function(){d(i)})).finally((function(){e.current=(0,l.sj)(i,e.current)})))}))}),[t,n,_,f,e,d])}},50148:function(t,n,e){"use strict";e.r(n);var o=e(45361),r=e(57611),i=e(37014),a=e.n(i),l=e(15129),s=e(61395),c=e(61085),u=e.n(c),f=e(85494),_=e(57830);n.default=function(t){t.statusCode;var n=t.hasFullWidth,e=void 0===n||n,i=(0,s.Z)("error").t,c=(0,l.useRouter)();return(0,r.jsxs)("div",{className:a()(u().container,(0,o.Z)({},u().withFullWidth,e)),children:[(0,r.jsx)("h1",{className:u().title,children:i("title")}),(0,r.jsx)("div",{className:u().goBack,children:(0,r.jsx)(f.ZP,{onClick:function(){document&&document.referrer?c.back():c.push("/")},children:i("go-back")})}),(0,r.jsxs)("p",{className:u().reportBug,children:[i("if-persist")," ",(0,r.jsx)(_.Z,{href:"https://feedback.quran.com/",variant:_.r.Highlight,children:i("report-cta")})]})]})}},48842:function(t,n,e){"use strict";e.d(n,{Nl:function(){return i},aS:function(){return o},ox:function(){return r}});var o=function(t,n){for(var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"...",o=t.split("",n),r="",i=0;i]+)>)/gi,"")},i=function(t){if(!t)return"";var n=t.split("-");return 1===n.length?n[0]:n[n.length-1]}},36284:function(t){t.exports={container:"Error_container__1m9XV",text:"Error_text__yg4kD"}},75881:function(t){t.exports={footnoteContainer:"FootnoteText_footnoteContainer__2GrJa",text:"FootnoteText_text__o_c03",header:"FootnoteText_header__M_Q2C"}},94063:function(t){t.exports={text:"TranslationText_text__4atf8","translation-font-size-1":"TranslationText_translation-font-size-1__TqSPj","translation-font-size-2":"TranslationText_translation-font-size-2__AW2i1","translation-font-size-3":"TranslationText_translation-font-size-3__ww3t4","translation-font-size-4":"TranslationText_translation-font-size-4__TKdKv","translation-font-size-5":"TranslationText_translation-font-size-5__5bjGX","translation-font-size-6":"TranslationText_translation-font-size-6__6SMJi","translation-font-size-7":"TranslationText_translation-font-size-7__03ez5","translation-font-size-8":"TranslationText_translation-font-size-8__IA0Tr","translation-font-size-9":"TranslationText_translation-font-size-9__tq3IG","translation-font-size-10":"TranslationText_translation-font-size-10__A9YEa",ltr:"TranslationText_ltr__146rZ",rtl:"TranslationText_rtl__ytrpw",urdu:"TranslationText_urdu__9N37Y",kurdish:"TranslationText_kurdish__je0yf",divehi:"TranslationText_divehi__e3rqQ",translationName:"TranslationText_translationName__Vm9Sj"}},61085:function(t){t.exports={container:"_error_container__vJFnH",withFullWidth:"_error_withFullWidth__VEzYc",title:"_error_title__oLWAK",goBack:"_error_goBack__U4WNd",reportBug:"_error_reportBug__tsKmR"}},86719:function(t){t.exports={pageContainer:"index_pageContainer__Pxtn3",loadingContainer:"index_loadingContainer__WEZFc",flow:"index_flow__rCTR5",flowItem:"index_flowItem__GnXWz",additionalVerticalGap:"index_additionalVerticalGap__nzYz6",fullWidth:"index_fullWidth__1n4ux"}}}]); //# sourceMappingURL=81717-439d79fc25140a59.js.map