(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9792],{50116:function(e,t,i){"use strict";var n=i(59499),r=(i(87794),i(47318),i(30867),i(11163)),o=i(67294),a=i(63738),d=i.n(a),c=i(30071),s=i(94803),l=i.n(s),u=i(14141),m=i(54795),h=i(35391),p=i(12789),x=i(10490),_=i(56639),f=i(85893);function w(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function y(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?w(Object(i),!0).forEach((function(t){(0,n.Z)(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):w(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}t.Z=function(e){var t=e.intialYear,i=e.intialMonth,n=e.intialDay,a=e.isModal,s=void 0!==a&&a,u=(0,r.useRouter)(),w=(0,o.useState)(null),E=w[0],Z=w[1],T=(0,o.useState)(!1),O=T[0],b=T[1],j=(0,o.useState)(t)[1],v=(0,o.useState)(i)[1],M=(0,o.useState)(n)[1],R=(0,o.useState)(),N=R[0],C=R[1];(0,o.useEffect)((function(){var e=new Date;u.push({query:y(y({},u.query),{},{day:e.getUTCDate(),month:e.getUTCMonth()+1,year:e.getUTCFullYear()})},{query:y(y({},u.query),{},{day:e.getUTCDate(),month:e.getUTCMonth()+1,year:e.getUTCFullYear()})},{shallow:!0})}),[]);var I={thursdays:{daysOfWeek:[4]},birthday:new Date(2018,9,30)},D={birthday:{color:"white",backgroundColor:"#ffc107"},today:{color:m.ev,backgroundColor:"#fffdee"},selectedDay:{color:m.Go,backgroundColor:m.ev}};return O?(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(p.Z,{zIndex:0,show:!0,clicked:function(){return b(!1)}}),(0,f.jsx)(g,{isModal:s,children:(0,f.jsx)(d(),{modifiers:I,modifiersStyles:D,selectedDays:E,onDayClick:function(e,t){var i=t.selected;b(!1),u.push({query:y(y({},u.query),{},{day:e.getUTCDate(),month:e.getUTCMonth()+1,year:e.getUTCFullYear()})},{query:y(y({},u.query),{},{day:e.getUTCDate(),month:e.getUTCMonth()+1,year:e.getUTCFullYear()})},{shallow:!1}),Z(i?void 0:e),v(e.getUTCMonth()+1),M(e.getUTCDate()),j(e.getUTCFullYear()),C(e)},localeUtils:c.default,locale:"en"===u.locale?"en":"ar"})})]}):(0,f.jsx)(x.Z,{style:{alignSelf:"flex-end"},fontSize:h.Z.FONT_SIZE_30,fontWeight:h.Z.LIGHT,onClick:b,children:(0,f.jsx)(_.Z,{fontSize:h.Z.FONT_SIZE_25,children:(0,f.jsx)(l(),{locale:u.locale,format:"dddd DD/MM",children:N})})})};var g=u.ZP.div.withConfig({displayName:"DayPickerComponent__DayPickerParent",componentId:"sc-tmgfwo-0"})(["align-self:flex-end;width:",";",";background-image:linear-gradient(to bottom,#f9994f,#e07751);z-index:1;flex-grow:0;border-radius:10px;background-color:",";display:flex;justify-content:center;color:",";@media (min-width:1024px) and (max-width:1350px){width:",";}@media (min-width:767px) and (max-width:1024px){width:",";}@media (min-width:480px) and (max-width:767px){width:",";}@media (max-width:480px){width:100%;}"],(function(e){return e.isModal?"80%":"30%"}),(function(e){return e.isModal?"margin: auto;":""}),(function(e){return e.theme.WHITE}),(function(e){return e.theme.RUST}),(function(e){return e.isModal?"70%":"49%"}),(function(e){return e.isModal?"70%":"".concat(408/h.Z.REM_DEFAULT_1024,"rem")}),(function(e){return e.isModal?"70%":"".concat(408/h.Z.REM_DEFAULT_767,"rem")}))},56639:function(e,t,i){"use strict";var n=i(59499),r=i(14141),o=i(10490),a=i(85893);function d(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function c(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?d(Object(i),!0).forEach((function(t){(0,n.Z)(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):d(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}t.Z=(0,r.Zz)((function(e){return(0,a.jsx)(s,c(c({},e),{},{children:e.children}))}));var s=(0,r.ZP)(o.Z).withConfig({displayName:"UnderlinedText__UnderlinedTextElement",componentId:"sc-f0rkk7-0"})(["text-decoration:underline;:hover{color:",";cursor:pointer;}"],(function(e){return e.theme.GREY}))},30558:function(e,t){"use strict";t.Z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:" ";return e.toLowerCase().split(" ").map((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})).join(" ")}},14031:function(e,t,i){"use strict";i.r(t),i.d(t,{__N_SSP:function(){return F},default:function(){return k}});var n=i(59499),r=i(41664),o=i.n(r),a=i(11163),d=i(7313),c=i(14141),s=i(63746),l=i(50116),u=i(10490),m=i(50633),h=i(63253),p=i(73161),x=i(35391),_=i(39731),f=i(5245),w=i(85893);function y(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function g(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?y(Object(i),!0).forEach((function(t){(0,n.Z)(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):y(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var E=(0,c.ZP)(u.Z).withConfig({displayName:"ReadCard__ClippedText",componentId:"sc-mofjo2-0"})(["overflow:hidden;color:",";display:-webkit-box;-webkit-line-clamp:2;max-width:90%;-webkit-box-orient:vertical;"],(function(e){return e.theme.text})),Z=c.ZP.div.withConfig({displayName:"ReadCard__ImageWrapper",componentId:"sc-mofjo2-1"})(["border-radius:10px;width:100%;position:relative;display:flex;align-items:center;background-color:",";justify-content:center;height:","rem;@media (min-width:1024px) and (max-width:1350px){height:","rem;}@media (min-width:767px) and (max-width:1024px){height:","rem;}@media (min-width:480px) and (max-width:767px){height:","rem;}@media (max-width:480px){height:","rem;}"],(function(e){return e.theme.WHITE}),f.Z.CARD_MIN_HEIGHT_REM/f.Z.REM_DEFAULT_1920,f.Z.CARD_MIN_HEIGHT_REM/f.Z.REM_DEFAULT_1367,f.Z.CARD_MIN_HEIGHT_REM/f.Z.REM_DEFAULT_1024,f.Z.CARD_MIN_HEIGHT_REM/f.Z.REM_DEFAULT_767,f.Z.CARD_MIN_HEIGHT_REM/f.Z.REM_DEFAULT_480),T=c.ZP.div.withConfig({displayName:"ReadCard__Hover",componentId:"sc-mofjo2-2"})(["display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;:hover{cursor:pointer;}"]),O=c.ZP.div.withConfig({displayName:"ReadCard__Card",componentId:"sc-mofjo2-3"})(["width:30%;@media (min-width:1024px) and (max-width:1350px){width:49%;}@media (min-width:767px) and (max-width:1024px){width:49%;}@media (min-width:480px) and (max-width:767px){width:49%;}@media (max-width:480px){width:100%;}display:flex;flex-direction:column;justify-content:flex-start;align-items:center;margin-bottom:","rem;@media (min-width:1024px) and (max-width:1350px){margin-bottom:","rem;}@media (min-width:767px) and (max-width:1024px){margin-bottom:","rem;}@media (min-width:480px) and (max-width:767px){margin-bottom:","rem;}@media (max-width:480px){margin-bottom:","rem;}"],f.Z.CARD_MARGIN_TOP_REM/f.Z.REM_DEFAULT_1920,f.Z.CARD_MARGIN_TOP_REM/f.Z.REM_DEFAULT_1367,f.Z.CARD_MARGIN_TOP_REM/f.Z.REM_DEFAULT_1024,f.Z.CARD_MARGIN_TOP_REM/f.Z.REM_DEFAULT_767,f.Z.CARD_MARGIN_TOP_REM/f.Z.REM_DEFAULT_480),b=(0,c.Zz)((function(e){var t=e.card,i=e.index,n=(0,a.useRouter)();return(0,w.jsx)(O,{onClick:function(){n.push({query:g(g({},n.query),{},{index:i})},void 0,{shallow:!1})},children:(0,w.jsx)(T,{children:(0,w.jsx)(Z,{children:(0,w.jsx)(E,{fontSize:x.Z.FONT_SIZE_22,fontWeight:x.Z.LIGHT,children:t.synaxartitle})})})})})),j=c.ZP.div.withConfig({displayName:"ReadCards__Wrapper",componentId:"sc-1i88ocu-0"})(["display:flex;flex-direction:row;flex-wrap:wrap;width:100%;gap:5%;@media (min-width:1024px) and (max-width:1350px){gap:2%;}@media (min-width:767px) and (max-width:1024px){gap:2%;}@media (min-width:480px) and (max-width:767px){gap:2%;}@media (max-width:480px){gap:0%;}"]),v=function(e){var t,i,n=e.dataSource,r=null,o=(0,d.$G)("common").t,a=s.Z.useGetClientHome(),c=a.data,l=a.isError;return a.isLoading?r=(0,w.jsx)(p.Z,{}):l?r=(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(u.Z,{marginTop:_.Z.CONTENT_COMMON_MARGIN_TOP_REM,fontSize:x.Z.FONT_SIZE_30,children:o("error-p1")}),(0,w.jsx)(u.Z,{marginTop:_.Z.CONTENT_COMMON_MARGIN_TOP_REM,fontSize:x.Z.FONT_SIZE_25,children:o("error-p2")})]}):(null===c||void 0===c||null===(t=c.synaxarium)||void 0===t||null===(i=t.synaxarium)||void 0===i?void 0:i.length)>0&&(r=(0,w.jsx)(j,{dataSource:n,children:c.synaxarium.synaxarium.map((function(e,t){return 0===t?(0,w.jsxs)(u.Z,{style:{width:"100%"},marginBottom:_.Z.CONTENT_25_MARGIN_TOP_REM,fontSize:x.Z.FONT_SIZE_25,children:[e.synaxartitle," ",e.synaxareading]},t):(0,w.jsx)(b,{index:t,dataSource:n,card:e},t)}))})),r},M=i(15294),R=i(30558);function N(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function C(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?N(Object(i),!0).forEach((function(t){(0,n.Z)(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):N(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var I=c.ZP.div.withConfig({displayName:"spiritual-corner__NextPreviousArea",componentId:"sc-14fb1cq-0"})(["width:100%;display:flex;justify-content:space-between;"]),D=(0,c.ZP)(u.Z).withConfig({displayName:"spiritual-corner__NextPreviousText",componentId:"sc-14fb1cq-1"})([":hover{cursor:pointer;}text-decoration:underline;"]),P=c.ZP.div.withConfig({displayName:"spiritual-corner__CoverImageWrapper",componentId:"sc-14fb1cq-2"})(["background-color:transparent;background-image:",";height:","rem;background-repeat:no-repeat;background-size:cover;background-position:center center;border-top-left-radius:10px;border-top-right-radius:10px;border:none;@media (min-width:1024px) and (max-width:1350px){height:","rem;}@media (min-width:767px) and (max-width:1024px){height:","rem;}@media (min-width:480px) and (max-width:767px){height:","rem;}@media (max-width:480px){height:","rem;}"],(function(e){return"url(".concat(e.src,")")}),f.Z.CARD_COVER_IMAGE_HEIGHT/f.Z.REM_DEFAULT_1920,175/f.Z.REM_DEFAULT_1367,150/f.Z.REM_DEFAULT_1024,150/f.Z.REM_DEFAULT_767,150/f.Z.REM_DEFAULT_480),S=c.ZP.div.withConfig({displayName:"spiritual-corner__Parent",componentId:"sc-14fb1cq-3"})(["width:148.7805%;@media (min-width:1350px) and (max-width:1400px){width:135%;}@media (min-width:1350px) and (max-width:1400px){width:135%;}@media (min-width:1024px) and (max-width:1350px){width:100%;}@media (min-width:767px) and (max-width:1024px){width:100%;}@media (min-width:480px) and (max-width:767px){width:100%;}@media (max-width:480px){width:100%;}"]),A=c.ZP.div.withConfig({displayName:"spiritual-corner__TvShowsNavBar",componentId:"sc-14fb1cq-4"})(["width:100%;display:flex;justify-content:center;align-items:center;font-size:","rem;font-weight:",";background-color:",";@media (min-width:1024px) and (max-width:1350px){font-size:","rem;}@media (min-width:767px) and (max-width:1024px){font-size:","rem;}@media (min-width:480px) and (max-width:767px){font-size:","rem;}@media (max-width:480px){font-size:","rem;}"],x.Z.FONT_SIZE_25/x.Z.REM_DEFAULT_1920,x.Z.LIGHT,(function(e){return e.theme.RUST_RGBA}),x.Z.FONT_SIZE_25/x.Z.REM_DEFAULT_1367,x.Z.FONT_SIZE_25/x.Z.REM_DEFAULT_1024,x.Z.FONT_SIZE_25/x.Z.REM_DEFAULT_767,x.Z.FONT_SIZE_25/x.Z.REM_DEFAULT_480),U=c.ZP.div.withConfig({displayName:"spiritual-corner__TvShowsNavBarItem",componentId:"sc-14fb1cq-5"})(["width:33.32%;display:flex;justify-content:center;align-items:center;border-right:",";height:100%;padding:","rem 0;@media (min-width:1024px) and (max-width:1350px){padding:","rem 0;}@media (min-width:767px) and (max-width:1024px){padding:","rem 0;}@media (min-width:480px) and (max-width:767px){padding:","rem 0;}@media (max-width:480px){padding:","rem 0;}"," color:",";",";:hover{cursor:pointer;}"],(function(e){return"3px solid ".concat(e.theme.WHITE)}),_.Z.CONTENT_25_MARGIN_TOP_REM/_.Z.REM_DEFAULT_1920,_.Z.CONTENT_25_MARGIN_TOP_REM/f.Z.REM_DEFAULT_1367,_.Z.CONTENT_25_MARGIN_TOP_REM/f.Z.REM_DEFAULT_1024,20/f.Z.REM_DEFAULT_767,20/f.Z.REM_DEFAULT_480,(function(e){return"en"===e.direction?"\n  :last-child {\n    border-style: none;\n  }\n":"  :first-child {\n    border-style: none;\n  }\n  "}),(function(e){return e.theme.BLACK}),(function(e){return e.active?" color:".concat(e.theme.WHITE,";\n  background-color: ").concat(e.theme.RUST,";\n    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.3);     opacity: 1;   "):"  opacity: 0.7;"})),F=!0,k=function(e){var t,i,n,r,c,p,f,y,g,E=e.type,Z=e.source,T=e.locale,O=e.index,b=(0,d.$G)("common").t,j=null,N=s.Z.useGetClientHome(),F=(0,a.useRouter)();["documentary","sermon","hymn","eulogy","story","choral"].includes(Z)?j=(0,w.jsx)(m.Z,{dataSource:Z}):"synaxarium"!==Z&&"verses"!==Z&&"quote-of-church-fathers"!==Z||(j=(0,w.jsx)(v,{dataSource:Z})),"0"===O||O>=(null===N||void 0===N||null===(t=N.data)||void 0===t||null===(i=t.synaxarium)||void 0===i||null===(n=i.synaxarium)||void 0===n?void 0:n.length)?F.push({query:C(C({},F.query),{},{index:null})},void 0,{shallow:!1}):O&&"synaxarium"===Z&&null!==N&&void 0!==N&&null!==(r=N.data)&&void 0!==r&&null!==(c=r.synaxarium)&&void 0!==c&&null!==(p=c.synaxarium)&&void 0!==p&&p.length&&(j=(0,w.jsxs)("div",{style:{width:"100%"},children:[(0,w.jsx)(u.Z,{style:{width:"100%"},marginBottom:_.Z.CONTENT_25_MARGIN_TOP_REM,fontSize:x.Z.FONT_SIZE_25,fontWeight:x.Z.MEDIUM,children:null===N||void 0===N||null===(f=N.data)||void 0===f||null===(y=f.synaxarium.synaxarium[O])||void 0===y?void 0:y.synaxartitle}),(0,w.jsx)(u.Z,{lineHeight:150,style:{width:"100%",textAlign:"justify"},marginBottom:_.Z.CONTENT_25_MARGIN_TOP_REM,fontSize:x.Z.FONT_SIZE_23,children:null===N||void 0===N||null===(g=N.data.synaxarium.synaxarium[O])||void 0===g?void 0:g.synaxareading}),(0,w.jsxs)(I,{children:[(0,w.jsx)(D,{style:{visibility:O<=1&&"hidden"},onClick:function(){return F.push({query:C(C({},F.query),{},{index:Number(O)-1})},void 0,{shallow:!1})},fontWeight:x.Z.SEMI_BOLD,fontSize:x.Z.FONT_SIZE_22,children:b("Previous")}),(0,w.jsx)(D,{style:{visibility:O>=N.data.synaxarium.synaxarium.length-1&&"hidden"},onClick:function(){return F.push({query:C(C({},F.query),{},{index:Number(O)+1})},void 0,{shallow:!1})},fontWeight:x.Z.SEMI_BOLD,fontSize:x.Z.FONT_SIZE_22,children:b("Next")})]})]}));var k=b("Spiritual Corner"),L=(0,w.jsxs)(S,{children:[(0,w.jsx)(u.Z,{marginBottom:_.Z.CONTENT_25_MARGIN_TOP_REM,fontSize:x.Z.FONT_SIZE_40,fontWeight:x.Z.MEDIUM,children:k}),(0,w.jsx)(P,{src:"/test.jpg"}),(0,w.jsxs)(A,{children:[(0,w.jsx)(o(),{href:{pathname:"/spiritual-corner",query:{type:encodeURIComponent("read")}},children:(0,w.jsx)(U,{direction:T,active:"read"===E,children:b("Read")})}),(0,w.jsx)(o(),{href:{pathname:"/spiritual-corner",query:{type:encodeURIComponent("listen")}},children:(0,w.jsx)(U,{direction:T,active:"listen"===E,children:b("Listen")})}),(0,w.jsx)(o(),{href:{pathname:"/spiritual-corner",query:{type:encodeURIComponent("watch")}},children:(0,w.jsx)(U,{direction:T,active:"watch"===E,children:b("Watch")})})]}),!Z&&(0,w.jsx)(M.Z,{dataSource:E}),j&&(0,w.jsx)(u.Z,{marginTop:_.Z.CONTENT_25_MARGIN_TOP_REM,marginBottom:_.Z.CONTENT_25_MARGIN_TOP_REM,fontSize:x.Z.FONT_SIZE_30,fontWeight:x.Z.MEDIUM,children:b("".concat((0,R.Z)(Z)))}),j,!O&&"synaxarium"===Z&&(0,w.jsx)(l.Z,{})]}),G=b("description-SPC"),q=b("CTV"),H="en"===T?"/en":"";return(0,w.jsx)(h.Z,{content:L,h1:k,description:G,keywords:"".concat(k,", ").concat(q," ").concat(k),url:"".concat(H,"/spiritual-corner")})}},92991:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/spiritual-corner",function(){return i(14031)}])}},function(e){e.O(0,[4885,4049,7345,6310,7537,934,6391,6429,3253,9774,2888,179],(function(){return t=92991,e(e.s=t);var t}));var t=e.O();_N_E=t}]);