PageSourceSearch

https://ekzeget.ru/frontassets/js/index.chunk.4b49ef5da3.js

js ekzeget.ru collected 2026-10-02 16:47:38 UTC 38,089 bytes, 1 lines download raw bytes

1(window.__LOADABLE_LOADED_CHUNKS__=window.__LOADABLE_LOADED_CHUNKS__||[]).push([[33],{"08W57OBM":function(e,t,n){},"0hyfsjAS":function(e,t,n){"use strict";n.d(t,"l",(function(){return u})),n.d(t,"h",(function(){return o})),n.d(t,"a",(function(){return c})),n.d(t,"j",(function(){return l})),n.d(t,"k",(function(){return d})),n.d(t,"g",(function(){return m})),n.d(t,"d",(function(){return q})),n.d(t,"n",(function(){return _})),n.d(t,"m",(function(){return g})),n.d(t,"b",(function(){return p})),n.d(t,"c",(function(){return f})),n.d(t,"i",(function(){return b})),n.d(t,"f",(function(){return v})),n.d(t,"e",(function(){return h}));var s=n("C6kf1nyh"),a=n.n(s),r=n("G4qVKx1F");const i=e=>e.readingPlan,u=e=>e.readingPlan.readingPlansIsLoading,o=Object(r.a)(i,e=>e.plans),c=Object(r.a)(i,e=>e.activeTab),l=Object(r.a)(i,e=>e.readingPlanDetailIsLoading),d=e=>e.readingPlan.readingPlansIsLoaded,m=Object(r.a)(i,e=>e.planDetail),q=e=>e.readingPlan.toggleOpenPlan,_=e=>e.readingPlan.userRPIsLoading,g=Object(r.a)(i,e=>e.userPlans),p=Object(r.a)(i,e=>e.archivedPlans),f=Object(r.a)(i,e=>e.archivedPlansLoading),b=Object(r.a)(i,e=>e.readingPlanDetailError),v=(e,t)=>{const n=g(e);return a()({},[t],n)},h=(Object(r.a)(v,e=>{let t=0;e.map(e=>({value:t++,label:e.closed_days[t]}))}),Object(r.a)(g,e=>a()("",[0],Object.keys(e))))},"6zS+dVYF":function(e,t,n){"use strict";n.d(t,"k",(function(){return l})),n.d(t,"l",(function(){return d})),n.d(t,"a",(function(){return m})),n.d(t,"e",(function(){return q})),n.d(t,"g",(function(){return _})),n.d(t,"h",(function(){return p})),n.d(t,"b",(function(){return f})),n.d(t,"f",(function(){return b})),n.d(t,"c",(function(){return v})),n.d(t,"m",(function(){return h})),n.d(t,"j",(function(){return E})),n.d(t,"i",(function(){return z})),n.d(t,"d",(function(){return O}));var s=n("C6kf1nyh"),a=n.n(s),r=n("Z+xY5lpE"),i=n.n(r),u=n("G4qVKx1F"),o=n("ysw+0GcK");const c=e=>e.quiz,l=e=>e.quiz.isLoadingQueeze,d=e=>e.quiz.isLoadingList,m=e=>e.quiz.completedQueezePlan,q=e=>e.quiz.currentQuestionData||{},_=e=>e.quiz.isLoadedCurrentQuestion,g=e=>e.quiz.questionsData,p=e=>e.quiz.isLoadedQuestions,f=e=>e.quiz.errorAllQuestions,b=e=>e.quiz.errorQuestion,v=Object(u.a)(g,i()("questions")),h=Object(u.a)(g,i()("totalCount")),E=Object(u.a)(c,e=>a()([],["queezeData","questions"],e)),z=Object(u.a)(c,e=>{const t=a()(1,["queezeData","current_question"],e),n=a()([],["queezeData","questions"],e);return Object(o.l)(n,t-1)}),O=(Object(u.a)(E,e=>e.map(e=>e.status)),Object(u.a)(c,e=>{const t=a()([],["completedQueezeData"],e);if(t.length>=2){const e=t[0],n=t[1];"R"!==e.status&&"R"!==n.status||(t[0]=n,t[1]=e)}return t}))},"8XMCULnZ":function(e,t,n){},"9ZbMQR6m":function(e,t,n){"use strict";var s=n("q1tIBJhx"),a=n.n(s),r=n("TSYQbtd+"),i=n.n(r),u=n("ysw+0GcK");n("8XMCULnZ");const o=({questionIndex:e,currentQuestionId:t=0,status:n,isCorrectMsg:s,onClick:r,currentResultIndex:o,currentMessage:c,type:l,isResult:d})=>a.a.createElement("li",{className:i()("quiz-questions__item",{"quiz-question__completed":n===u.B.OK,"quiz-question__failed":n===u.B.NO||d&&n===u.B.NA&&"S"!==l,interactive:r}),onClick:r},a.a.createElement("span",{className:i()("quiz-questions__desc",{"quiz-question__current":e+1===t&&null===s,"quiz-question__result-current":(null==c?void 0:c.question)&&e+1===o})},e+1));t.a=Object(s.memo)(o)},E4d2sOeg:function(e,t,n){"use strict";n.r(t),n.d(t,"QuizQuestionsContext",(function(){return ce}));var s=n("C6kf1nyh"),a=n.n(s),r=n("q1tIBJhx"),i=n.n(r),u=n("/MKjzBat"),o=n("TJpkI2Pn"),c=n.n(o),l=n("TSYQbtd+"),d=n.n(l),m=n("i7bBToG9"),q=n("ysw+0GcK"),_=n("XaXcGLD7"),g=n("6zS+dVYF"),p=n("O2GUFnpP");const f={statuses:[],isCorrectMsg:null,message:"",correctMessage:"",isLoadingAnswer:!1,isFinish:!1},b="UPDATE_ALL",v="NEXT_STEP",h="STATUSES_ARR",E="STATUS_MESSAGE",z="MESSAGE",O="CORRECT_MESSAGE",y="IS_LOADING_ANSWER",j="IS_FINISH",N="CURRENT_QUESTION_ID",I=(e,t)=>{const{statuses:n,isCorrectMsg:s,message:a,correctMessage:r,isLoadingAnswer:i,completed:u,isFinish:o,currentQuestionId:c}=t;switch(t.type){case b:return{...e,...u};case v:return{...e,currentQuestionId:c,isCorrectMsg:s,message:a};case h:return{...e,statuses:n};case E:return{...e,isCorrectMsg:s};case z:return{...e,message:a};case O:return{...e,correctMessage:r};case y:return{...e,isLoadingAnswer:i};case j:return{...e,isFinish:o};case N:return{...e,currentQuestionId:c};default:return e}};var w=n("RIqPODcC"),C=n.n(w),Q=n("s4JOJC6L"),k=n("Eg3YP8vh");var P=({history:e})=>i.a.createElement("div",{className:"quiz-again__container"},i.a.createElement("button",{className:"quiz-question__quit-link grey btn",onClick:()=>{Object(m.a)();const t=sessionStorage.getItem("quiz_return_url");sessionStorage.removeItem("quiz_return_url"),e.push(t||k.e.main)}},"Завершить викторину")),M=n("9ZbMQR6m");var S=({questions:e,href:t,currentQuestionId:n,questionsRef:s,getIsLastItem:a,isFinish:r,questionsStatuses:u,history:o,getNewQuestion:c,isCorrectMsg:l,questionRouteParam
1s:d})=>i.a.createElement(i.a.Fragment,null,s.current&&i.a.createElement("div",{className:"quiz-questions__count"},i.a.createElement("ul",{className:"quiz-questions quiz-questions-not-mobile"},C()(Array(e).keys()).map(e=>i.a.createElement(M.a,{key:e,status:u[e],questionIndex:e,currentQuestionId:n,isCorrectMsg:l}))),i.a.createElement("ul",{className:"quiz-questions quiz-questions-mobile"},C()(Array(e).keys()).slice(0,e/2).map(e=>i.a.createElement(M.a,{key:e,status:u[e],questionIndex:e,currentQuestionId:n,isCorrectMsg:l}))),i.a.createElement("ul",{className:"quiz-questions quiz-questions-mobile"},C()(Array(e).keys()).slice(e/2).map(e=>i.a.createElement(M.a,{key:e,status:u[e],questionIndex:e,currentQuestionId:n,isCorrectMsg:l})))),a&&i.a.createElement("div",{className:"quiz-link__wrapper"},i.a.createElement(Q.a,{getNewQuestion:c,text:"Следующий вопрос",path:d}),i.a.createElement(P,{history:o})),r&&i.a.createElement("div",{className:"quiz-link__wrapper quiz-link__wrapper-to-results"},i.a.createElement(Q.a,{className:"quiz-link__to-results btn quiz-ui__link",text:"Посмотреть результаты",path:null!=t?t:k.e.soloResults}))),R=n("f6n7GCiS"),L=n("uYqNN4LM");const x=({questionRef:e})=>i.a.createElement("div",{className:"page__head page__head_two-col quiz-title"},i.a.createElement("span",{className:"page__title",ref:e},"Библейская викторина"));var A=Object(r.memo)(x);var $=({title:e=""})=>i.a.createElement("h1",{className:"quiz-questions__title"},e);var F=({isCorrect:e,text:t,value:n,questionId:s,answerId:a,answers:u})=>{const[o]=Object(r.useContext)(ce);return i.a.createElement("div",{className:"quiz-question",onClick:()=>{let n=!1,r=u.find(e=>e.isCorrect||e.is_correct);e&&(n=!0),r=r?r.text:"В данном вопросе отсутствует верный ответ",o(n,t,s,a,r)}},i.a.createElement("span",{className:"quiz-question__number"}," ",n+1,": "),i.a.createElement("p",{className:"quiz-question__text"},t))},U=n("vzUsdccN");const D=({interpretation:e})=>{const[t,n]=Object(r.useState)(!1);return i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:"quiz-answer-interpretations__item"},i.a.createElement("button",{onClick:()=>n(!t),className:d()("nav-side__link quiz-answer-interpretations__toggle",{active:t})},e.ekzeget.name,i.a.createElement(U.a,{icon:"angle-down"}))),t&&i.a.createElement("div",{className:"comment__text",dangerouslySetInnerHTML:{__html:e.parsed_text}}))};var T=Object(r.memo)(D),B=n("55IpiCAJ");const G=({interpretations:e,verse:t})=>{!t.book_code&&t.book&&(t.book_code=t.book.code),!t.short&&t.book&&(t.short=`${t.book.short_title}. ${t.chapter}:${t.number}`);const n=`/bible/${t.book_code}/glava-${t.chapter}/stih-${t.number}/`;return i.a.createElement("div",{className:"quiz-correct__comment comment"},i.a.createElement("p",{className:"verse-text",dangerouslySetInnerHTML:{__html:t.text}}),i.a.createElement("span",null,i.a.createElement(B.b,{className:"content__group-link",to:n},t.short)),i.a.createElement("span",{className:"comment__title"}," Подробный комментарий: "),i.a.createElement("div",{className:"quiz-answer-interpretations"},e.map(e=>i.a.createElement(T,{interpretation:e,key:e.id}))))};var J=Object(r.memo)(G);const K=({isCorrectMsg:e,description:t,interpretations:n,verse:s,correctMessage:a})=>i.a.createElement("div",{className:"quiz-question__correct quiz-correct"},i.a.createElement("div",{className:"quiz-correct__head"},i.a.createElement("span",{className:d()("quiz-correct__title",{"quiz-correct__desc":!e})},e?"Вы ответили верно!":"Правильный ответ:"," "),i.a.createElement("p",{className:d()("quiz-correct__question",{"quiz-correct__question-size":!e})},a)),i.a.createElement("div",{className:"quiz-correct__body"},i.a.createElement("div",{className:"quiz-correct__explanation explanation"},i.a.createElement("span",{className:"explanation__title"}," Пояснение: "),i.a.createElement("div",{className:"explanation__text",dangerouslySetInnerHTML:{__html:t}})),n&&n.length>0&&i.a.createElement(J,{interpretations:n,verse:s})));var Y=Object(r.memo)(K);const H=({message:e})=>i.a.createElement("div",{className:"quiz-wrong"},i.a.createElement("span",{className:"quiz-wrong__title"}," Вы ответили неверно! "),i.a.createElement("span",{className:"quiz-correct__desc"}," Неверный ответ: "),i.a.createElement("p",{className:"quiz-wrong__text"},e));var V=Object(r.memo)(H);
1var Z=({isCorrectMsg:e,question:t,message:n,correctMessage:s})=>null===e?t.answers.map(({id:e,is_correct:n,text:s},a)=>i.a.createElement(F,{key:e,questionId:t.id,answerId:e,value:a,isCorrect:n,text:s,answers:t.answers})):i.a.createElement(i.a.Fragment,null,!e&&i.a.createElement(V,{message:n}),i.a.createElement(Y,{isCorrectMsg:e,description:t.description,interpretations:t.interpretations,verse:t.verse,correctMessage:s}));const X=({title:e,isLoadingAnswer:t,isCorrectMsg:n,message:s,question:a,correctMessage:r})=>i.a.createElement(i.a.Fragment,null,i.a.createElement($,{title:e}),t&&i.a.createElement(R.a,{className:"quiz-questions__preloader"}),i.a.createElement(Z,{isCorrectMsg:n,message:s,question:a,correctMessage:r}));var W=Object(r.memo)(X);const ee=({questionTitleRef:e,questionsRef:t,mainTitle:n,isLoadingAnswer:s,isCorrectMsg:a,message:r,question:u,correctMessage:o,currentId:c,isSafari:l})=>i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:d()("quiz-questions__header",{"quiz-testament__header-safari":l})},i.a.createElement(A,{questionRef:e})),i.a.createElement("div",{className:"quiz-questions quiz-testaments quiz-questions__for-new-user",ref:t},null===c||c===u.id?i.a.createElement(W,{title:n,isLoadingAnswer:s,isCorrectMsg:a,message:r,question:u,correctMessage:o}):i.a.createElement(R.a,null),i.a.createElement("div",{className:"quiz-questions__correct-answer-hidden"},i.a.createElement(Y,{isCorrectMsg:a,description:u.description,interpretations:u.interpretations,verse:u.verse,correctMessage:o})),null!==a&&i.a.createElement("div",{className:"quiz-link__wrapper quiz-link__start-question"},i.a.createElement(Q.a,{text:"Начать викторину",className:"quiz-testaments__to-quiz red btn",path:k.e.main,isIcon:!1}))));var te=Object(r.memo)(ee),ne=(n("rlaI3hsN"),n("VSGJIZlF")),se=n("DjZwPkTT");var ae=({isAutoplay:e,setAutoplay:t})=>i.a.createElement("div",{style:{display:"flex",alignItems:"center",gap:"10px"}},i.a.createElement("input",{name:"autoplay",type:"checkbox",checked:e,onChange:()=>{t(e=>!e)}}),i.a.createElement("label",{htmlFor:"autoplay"},"Автовоспроизведение"));var re=n("tFsRxnF/"),ie=n("0hyfsjAS"),ue=n("ee60x/Kr");const oe=(e,t,n)=>{var s;return Boolean(null==e||null===(s=e.questions)||void 0===s?void 0:s.length)&&(null==e.plan_id?((e,t,n)=>Boolean(e)&&String(e.planId)===String(t)&&String(e.quizId)===String(n))(n,t,e.id):String(e.plan_id)===String(t))},ce=Object(r.createContext)(null),le={getCurrentQuestion:_.o,getCurrentQueeze:_.n,getUserReadingPlan:ue.D},de={afterUpdateQuiz:{default:50,tablet:140},initNewQuestion:{default:50,tablet:140}},me=({history:e,questions:t,isLoading:n,isLoaded:s,isTablet:o,getUserReadingPlan:l,userPlans:p,questionData:O,getCurrentQuestion:N,getCurrentQueeze:w,isLoadedCurrentQuestion:C})=>{const{push:k,location:P={}}=e,M=Object(u.d)(ne.a),x=Object(u.d)(g.f),[$,F]=function(e,t){const[n,s]=Object(r.useState)(()=>{if("undefined"==typeof window)return t;try{const n=window.localStorage.getItem(e);return n?JSON.parse(n):t}catch(e){return console.log(e),t}});return[n,t=>{try{const a=t instanceof Function?t(n):t;s(a),"undefined"!=typeof window&&window.localStorage.setItem(e,JSON.stringify(a))}catch(e){console.log(e)}}]}("is_autoplay",!1),{day:U,plan_id:D,user_plan:T,questionId:B}=Object(re.useParams)(),G=(({day:e,planId:t})=>Boolean(e&&t))({day:U,planId:D}),J=Object(m.f)(),[K,Y]=Object(r.useState)({isComplete:!G,currentQuestionId:null,key:null}),H=Object(r.useRef)(null),V=Object(r.useMemo)(()=>{var e,t,n,s,a,r,i;return{isUniqQuestion:null!==(e=null===(t=P.state)||void 0===t?void 0:t.isUniqQuestion)&&void 0!==e&&e,questionId:null!==(n=null!==(s=null===(a=P.state)||void 0===a?void 0:a.questionId)&&void 0!==s?s:K.currentQuestionId)&&void 0!==n?n:1,currentId:null!==(r=null===(i=P.state)||void 0===i?void 0:i.currentId)&&void 0!==r?r:null}},[P.state,K.currentQuestionId]),{userPlanId:Z,userPlan:X}=(({userPlans:e,userPlanId:t})=>{var n;if(t){const n=e[t];return n?{userPlanId:t,userPlan:n}:{userPlanId:null,userPlan:null}}const s=null===(n=Object.keys(e))||void 0===n?void 0:n[0];return{userPlanId:s,userPlan:s?e[s]:null}})({userPlans:p,userPlanId:T});Object(r.useEffect)(()=>{!Z&&U&&D&&l("",T)},[U,l,D,Z,T]);const[{statuses:ee,isCorrectMsg:ie,message:ue,correctMessage:le,isLoadingAnswer:me,isFinish:qe,currentQuestionId:_e},ge]=Object(r.useReducer)(I,{...f,currentQuestionId:V.questionId}),pe=Object(r.useRef)(null),fe=Object(r.useRef)(null),{questionsData:be,quizData:ve}=Object(u.d)(e=>{var t,n,s;return{questionsData:(null===(t=e.quiz)||void 0===t||null===(n=t.queezeData)||void 0===n?void 0:n.questions)||[],quizData:(null===(s=e.quiz)||void 0===s?void 0:s.queezeData)||{}}}),{questionId:he}=V,Ee=((e,t)=>`${e}/${t}`)(D,B),ze=!G||oe(ve,D,J),Oe=K.isComplete&&K.key===Ee,ye=(({isPlanQuiz:e,questionsLength:t,hasUsableQuestions:n})=>Boolean(t)&&(!e||n))({isPlanQuiz:G,questionsLength:t.length,hasUsableQuestions:ze});Object(r.useEffect)(()=>
1{if(!(({isPlanQuiz:e,hasUsableQuestions:t,hasRecoveryAttempt:n})=>e&&!t&&!n)({isPlanQuiz:G,hasUsableQuestions:ze,hasRecoveryAttempt:H.current===Ee}))return;H.current=Ee,Y({isComplete:!1,currentQuestionId:null,key:Ee});let e=!1;return Object(_.m)(B).then(t=>{if(e)return;const n=((e,t,n,s)=>{var a,r;const i=(null==e?void 0:e.exists)?e.current:null,u=(null==i?void 0:i.questions)||[];if(!oe(i,n,s))return{isActive:!1,currentQuestionId:null,statuses:[]};const o=u.find(e=>e.code===t),c=Number((null==o?void 0:o.num)||i.current_question);if(!o||!c)return{isActive:!1,currentQuestionId:null,statuses:[]};const l="OK"===o.status||"NO"!==o.status&&null,d=null===(a=o.answers)||void 0===a?void 0:a.find(e=>e.id===Number(o.submittedAnswerId)),m=null===(r=o.answers)||void 0===r?void 0:r.find(e=>e.is_correct||e.isCorrect),q=u.map(e=>e.status);return{isActive:!0,currentQuestionId:c,statuses:q,completed:{currentQuestionId:c,statuses:q,isCorrectMsg:l,message:(null==d?void 0:d.text)||"",correctMessage:(null==m?void 0:m.text)||"",isLoadingAnswer:!1,isFinish:c===u.length&&null!==l}}})(t,B,D,J);Y({isComplete:!0,currentQuestionId:n.currentQuestionId,key:Ee}),(e=>e.isActive)(n)&&(w(!0,t.current),ge({type:b,completed:n.completed}))}).catch(()=>{e||Y({isComplete:!0,currentQuestionId:null,key:Ee})}),()=>{e=!0}},[w,G,D,B]),Object(r.useEffect)(()=>{var e;if(!be.length)return;const t=be[he-1],{submittedAnswerId:n}=t;if(!n)return;const{answers:s}=t,a=null===(e=s.find(({id:e})=>e===+n))||void 0===e?void 0:e.text;ge({type:z,message:a})},[he,be]),Object(r.useEffect)(()=>{V.isUniqQuestion&&ge({type:b,completed:{...f,currentQuestionId:V.questionId}})},[V.isUniqQuestion,V.questionId]);const je=Object(r.useCallback)(e=>{let t=o?e.tablet:e.default;pe.current&&(t=pe.current.offsetTop+50),Object(q.A)(null,{top:t,behavior:"smooth"})},[o]);Object(r.useEffect)(()=>{if(V.isUniqQuestion){const e=/^(\d+\/)?day-\d+\/\d+\//,t=P.pathname.replace(q.g.soloVoprosi,"").replace(e,"").replace("/","");N(t)}},[V.isUniqQuestion]),Object(r.useEffect)(()=>{!n&&s&&V.questionId>t.length&&k(q.g.soloResults)},[s,n,V.isUniqQuestion]),Object(r.useEffect)(()=>{const{initNewQuestion:e}=de;je(e)},[je]),Object(r.useEffect)(()=>{const e=ee[V.questionId-1];!ee.length||e.includes(q.B.NA)||null!==ie||V.isUniqQuestion||setTimeout(()=>ge({type:E,isCorrectMsg:"NO"!==e}))},[ee,V.questionId,ie,V.isUniqQuestion]);const Ne=e=>{ge({type:v,isCorrectMsg:null,message:null,currentQuestionId:e})};Object(r.useEffect)(()=>{ee.length&&!V.isUniqQuestion&&(ee[V.questionId-1].includes(q.B.NO)&&ge({type:E,isCorrectMsg:!1}),(ee[V.questionId-1].includes(q.B.OK)||ee[V.questionId-1].includes("ok"))&&ge({type:E,isCorrectMsg:!0})),ee.length&&!ee.length&&ge({type:h,statuses:ee}),_e!==V.questionId&&Ne(V.questionId),_e!==t.length||null===ie||qe||ge({type:j,isFinish:!0})},[_e,V.questionId,ie,t,ee,ee.length,qe]);const Ie=Object(r.useMemo)(()=>((e,t,n)=>null!==e&&t<n)(ie,_e,t.length),[ie,_e,t.length]),we=Object(r.useCallback)(()=>{const{initNewQuestion:e}=de;je(e),Ne(_e+1)},[je,_e]),Ce=Object(r.useCallback)((e,n=!1)=>{let s="";s=C?a()("",["question","title"],O):a()("",[[_e-1],"title"],t);let r=n?L.a:L.d;return s.length&&(r=n?`${e} ${s} `:`${s} ${e}`),r},[t,_e]),Qe=Object(r.useMemo)(()=>t.length>V.questionId&&t.length&&!G?Object(q.l)(t,V.questionId):Object(q.l)(t,V.questionId,void 0,`${T?T+"/":""}day-${U}/${D}/`),[V.questionId,t]),ke=Object(r.useMemo)(()=>{let e=a()({},["question"],O);if(V.isUniqQuestion&&!Object.keys(e).length){e=a()([],["current","questions"],O).find(({id:e})=>e===V.currentId)||{}}return e},[V.isUniqQuestion,P.state,O]);x&&k("/404/");const Pe=Object(r.useMemo)(()=>(({isPlanQuiz:e,userPlan:t,userPlanId:n,day:s,planId:a})=>!!(e&&t&&n)&&(t.group_id?`/group/reading/${n}/day-${s}/result/?plan_id=${a}`:`/reading-plan/${n}/day-${s}/result/?plan_id=${a}`))({isPlanQuiz:G,userPlan:X,userPlanId:Z,day:U,planId:D}),[U,G,D,X,Z]),Me=!G||Boolean(Pe),Se=Object(r.useMemo)(()=>{var e,n;return(null===(e=t[_e-1])||void 0===e?void 0:e.mediaQuestion)||(null===(n=t[_e-1])||void 0===n?void 0:n.mediaAnswer)});return i.a.createElement(ce.Provider,{value:[(e,n,s,a,r)=>{ge({type:y,isLoadingAnswer:!0});
1const i={isCorrectMsg:e,message:n,correctMessage:r,isLoadingAnswer:!1};!C||t.length&&!V.isUniqQuestion?Object(m.e)(s,a).then(({queeze:{questions:e}})=>{i.statuses=e.map(e=>e.status),ge({type:b,completed:i})}):ge({type:b,completed:i});const{afterUpdateQuiz:u}=de;je(u)}]},i.a.createElement(c.a,null,i.a.createElement("title",null," ",Ce("- Библейская викторина Экзегета",!1)," "),i.a.createElement("meta",{name:"description",content:Ce("Библейская викторина Экзегета: ",!0)})),!C||G||t.length&&!V.isUniqQuestion?(({isLoading:e,isPlanQuiz:t,isPlanRecoveryComplete:n,hasUsableQuestions:s})=>t?!n&&(e||!s):e)({isLoading:n,isPlanQuiz:G,isPlanRecoveryComplete:Oe,hasUsableQuestions:ze})?i.a.createElement(R.a,null):ye?i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:d()("quiz-questions__header",{"quiz-testament__header-safari":M})},i.a.createElement(A,{questionRef:pe}),Se&&i.a.createElement("div",null,i.a.createElement(se.a,{className:"quiz-audio-player",forQuiz:!0,autoPlay:$,forQuizData:{isCorrectMsg:ie,message:ue,currentQuestionId:_e},src:"",title:""}),i.a.createElement(ae,{isAutoplay:$,setAutoplay:F})),_e<t.length&&null!==ie&&i.a.createElement("div",{className:"quiz-link__wrapper"},i.a.createElement(Q.a,{text:"Следующий вопрос",getNewQuestion:we,path:Qe})),qe&&Me&&i.a.createElement("div",{className:"quiz-link__wrapper quiz-link__wrapper-to-results"},i.a.createElement(Q.a,{className:"quiz-link__to-results btn quiz-ui__link",text:"Посмотреть результаты",path:Pe||q.g.soloResults}))),i.a.createElement("div",{className:"quiz-questions quiz-testaments",ref:fe},i.a.createElement(W,{title:t[_e-1].title,isLoadingAnswer:me,isCorrectMsg:ie,message:ue,question:t[_e-1],correctMessage:le}),i.a.createElement(S,{href:Pe||q.g.soloResults,questionsRef:fe,getIsLastItem:Ie,questions:t.length,isFinish:qe&&Me,currentQuestionId:_e,questionsStatuses:ee,history:e,getNewQuestion:we,isCorrectMsg:ie,questionRouteParams:Qe}))):i.a.createElement("p",{className:"quiz__not-found"}," ",L.c," "):i.a.createElement(te,{questionTitleRef:pe,questionsRef:fe,mainTitle:ke.title,isLoadingAnswer:me,isCorrectMsg:ie,message:ue,question:ke,correctMessage:le,currentId:V.currentId,isSafari:M}))};me.defaultProps={questions:[],isLoading:!1,isLoaded:!1};t.default=Object(u.b)(e=>({questions:Object(g.j)(e),isLoading:Object(g.k)(e),isLoaded:Object(g.h)(e),userPlans:Object(ie.m)(e),isTablet:Object(p.e)(e),questionData:Object(g.e)(e),isLoadedCurrentQuestion:Object(g.g)(e)}),le)(me)},LUQCLMS8:function(e,t,n){"use strict";n.r(t);t.default=function(e,t){}},VSGJIZlF:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var s=n("G4qVKx1F");const a=e=>e.browsers,r=Object(s.a)(a,e=>e.isSafari);Object(s.a)(a,e=>e.isGoogle)},i7bBToG9:function(e,t,n){"use strict";n.d(t,"f",(function(){return i})),n.d(t,"g",(function(){return u})),n.d(t,"e",(function(){return o})),n.d(t,"c",(function(){return c})),n.d(t,"d",(function(){return l})),n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return m}));var s=n("5dvCu3Uu"),a=n("ysw+0GcK"),r=n("Eg3YP8vh");const i=()=>{if("undefined"==typeof window)return null;try{const e=window.sessionStorage.getItem("plan_quiz_context");return e?JSON.parse(e):null}catch(e){return null}},u=()=>Object(s.b)({url:"queeze/tutorial/"}).then(({url:e})=>({url:e,error:null})).catch(({message:e,status:t})=>({url:null,error:{message:e,status:t}})),o=(e,t)=>e&&t?Object(s.b)({url:`/queeze/answer/${e}/${t}/`}):console.log("Не верно построен запрос"),c=(e,t,n,r="",i="",u="",o,c,l,d)=>Object(s.b)({url:`/queeze/create/${e}${t}${n}${r}${i}${u}`,method:"POST"}).then(({queeze:e})=>{c(!0,e),Object(a.v)(e,o)}).catch(()=>{l(["Викторина под заданные вами настройки не найдена."]),d(!1)}),l=(e,t,n,r,i,u,o,c=null)=>Object(s.b)({url:`/queeze/create/?is_related_to_text=1&is_related_to_interpretations=0&chapter_id=${t}&book_ids[]=${e}&plan_id=${n}${o?"&question_id="+o:""}\n    ${(null==c?void 0:c.id)?"&user_plan_id="+c.id:""}`,method:"POST"}).then(({queeze:e})=>{(({planId:e,quizId:t})=>{if("undefined"!=typeof window)try{window.sessionStorage.setItem("plan_quiz_context",JSON.stringify({planId:e,quizId:t}))}catch(e){}})({planId:n,quizId:e.id}),r(!0,e),Object(a.v)(e,i,{day:u,planId:n,userPlanId:null==c?void 0:c.plan_id})}),d=(e,t)=>{e&&t?Object(s.b)({url:"queeze/complete/"}).then(()=>e(t)):Object(s.b)({url:"queeze/complete/"})},m=(e,t,n,i=a.b,u={})=>{Object(s.b)({url:`/queeze/continue/${e}/`}).then(({queeze:e})=>{t(!0,e),n(r.e.soloVoprosi+i,u.state)})}},"r5oT+gZv":function(e,t,n){"use strict";n.r(t),n.d(t,"QuizResultsContext",(function(){return R}));var s=n("q1tIBJhx"),a=n.n(s),r=n("/MKjzBat"),i=n("TJpkI2Pn"),u=n.n(i),o=n("TSYQbtd+"),c=n.n(o),l=n("XaXcGLD7"),d=n("6zS+dVYF"),m=n("s4JOJC6L"),q=n("yXPUfTdm"),_=n.n(q),g=n("WgwcSx5C"),p=n.n(g),f=n("J2t7NMeu"),b=n.n(f),v=n("55IpiCAJ"),h=n("Ty5D64uf"),E=n("9ZbMQR6m"),z=n("i7bBToG9"),O=n("17x9q+7Q"),y=n.n(O);y.a.array,y.a.string,y.a.string,y.a.number,y.a.string,y.a.array,y.a.shape({correct:y.a.number,total:y.a.number}),y.a.number,y.a.string;var j=n("ysw+0GcK");n("slGsSHyE");const N={getCurrentQuestion:l.o},I=({questions:e,id:t,created_at:n,status:r,isFirst:i=!1,description:u,books:o,meta:d,type:m,members:q,current_question_code:g=j.b,current_question:f=1,history:{push:h,location:{pathname:O}}})=>{const[y]=Object(s.useContext)(R),[N,I]=Object(s.useState)(!1),[w,C]=Object(s.useState)(!1),[Q]=Object(s.useState)(()=>Object(j.l)(e,f-1,f)),k=Object(s.useCallback)(e=>1===e?"вопрос":e>1&&e<=4?"вопроса":"вопросов",[]),P=Object(s.useMemo)(()=>a.a.createElement("span",{className:"quiz-result__desc"},"Вы ответили верно на ",a.a.createElement("span",{className:"quiz-result__ans-count"},d.correct)," ",k(Number(d.correct))," из",a.a.createElement("span",{className:"quiz-result__ans-count"}," ",d.total)),[k,d.correct,d.total]),M=Object(s.useCallback)(()=>I(!N),[N]),S=Object(s.useMemo)(()=>a.a.createElement("ul",{className:"quiz-result__books"},N?o.map(({bookId:e,title:t,code:n},s)=>a.a.createElement("li",{className:"quiz-result__book",key:`${e}${n}`},a.a.createElement(v.b,{to:`/bible/${n}/glava-1/`,className:"quiz-result__book-link"},` ${t}${o.length-1!==s?", ":"."}`))):o.slice(0,5).map(({title:e,code:t},n)=>{const s=`/bible/${t}/glava-1/`;return a.a.createElement("li",{className:"quiz-result__book",key:t},o.length>5?o.slice(0,5).length-1===n?a.a.createElement("span",null,e.slice(0,-3)+"..."):a.a.createElement(v.b,{to:s,className:"quiz-result__book-link"},e+", "):a.a.createElement(v.b,{to:s,className:"quiz-result__book-link"},e+" "))})),[o,t,N]),[L,x]=Object(s.useState)(null),[A,$]=Object(s.useState)(null),[F,U]=Object(s.useState)(null),[D,T]=Object(s.useState)(!1),B=function(){var e=_()((function*(e,t,n,s){if("NA"===n&&"S"===m)return;const a=yield Object(l.m)(e);switch((null==a?void 0:a.exists)?a.current.questions.forEach(t=>{t.code===e&&C({...a,question:t})}):C(a),$(t),U(s),T(!0),n){case"OK":x(!0);break;case"NO":case"NA":x(!1)}}));return function(t,n,s,a){return e.apply(this,arguments)}}(),G=Object(s.useMemo)(()=>{var e,t,n,s;const a=(null==w||null===(e=w.question)||void 0===e?void 0:e.answers
1)||[],r=null==w||null===(t=w.question)||void 0===t?void 0:t.title,i=null==w||null===(n=w.question)||void 0===n?void 0:n.id,u=null==w||null===(s=w.question)||void 0===s?void 0:s.code;let o,c;return a.forEach(({id:e,is_correct:t,text:n})=>{A!==e?t&&(o=n):c=n}),{link:u,question:r,id:i,rightAnswer:o,currentAnswer:c}},[A,w.question]),J=Object(s.useMemo)(()=>{const e=Math.abs(q),t=e%10,n=e%100;return n>=11&&n<=14?q+" участников":1===t?q+" участник":t>=2&&t<=4?q+" участника":q+" участников"},[q]),K=Object(s.useMemo)(()=>{let e;switch(m){case"F":case"FL":case"FLP":e="Игра с друзьями. "+J;break;case"O":e="Игра онлайн. "+J;break;case"S":e="Одиночная игра";break;default:e=!1}return e},[m]);return a.a.createElement("div",{className:"quiz-result__container"},a.a.createElement("div",{className:c()("quiz-result__border-container",{"quiz-result__latest":i,"quiz-result__active":null==G?void 0:G.currentAnswer})},a.a.createElement("div",{className:"quiz-result__desc-main"},a.a.createElement("span",{className:"quiz-result__date"},p()(n).locale("ru",b.a).format("DD MMM YYYY")),K&&a.a.createElement("span",{className:"quiz-result__type"},K),e.length&&P),a.a.createElement("div",{className:"quiz-result__text-container"},a.a.createElement("div",{className:"quiz-result__left-side"},a.a.createElement("span",{className:"quiz-result__text"}," ",u," "),a.a.createElement("div",{className:"quiz-result__books-container"},o.length&&S,o.length>5&&a.a.createElement("button",{className:"page__desc-toggle text_underline quiz-result__btn-desc",onClick:M},N?"Скрыть все книги":"Показать все книги"))),a.a.createElement("div",{className:"quiz-result__desc-container"},("P"===r||"R"===r)&&f&&a.a.createElement("button",{className:"btn quiz-ui__link",onClick:()=>Object(z.b)(t,y,h,g,Q)},"Продолжить",a.a.createElement("i",{className:"quiz-ui__right"})))),a.a.createElement("ul",{className:"quiz-questions__count"},e.map(({num:e,status:t,code:n,submittedAnswerId:s})=>{const r="FL"===m?j.B.OK:t;return a.a.createElement(E.a,{key:e,questionIndex:e-1,status:r,currentResultIndex:F,currentMessage:G,type:m,isResult:!0,onClick:()=>B(n,s,r,e)})})),D&&(null==G?void 0:G.question)&&a.a.createElement("div",{className:"quiz-questions__message"},a.a.createElement(v.b,{to:{pathname:`/bibleyskaya-viktorina/solo/voprosi/${null==G?void 0:G.link}/`,state:{questionId:1,isUniqQuestion:!0,currentId:null==G?void 0:G.id,prevUrlAllQuestions:O}},className:"quiz-questions__message-question"},null==G?void 0:G.question),L?a.a.createElement("div",{className:"quiz-questions__message-right"},"FL"===m?a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"quiz-questions__message-header"},"Верный ответ:"),a.a.createElement("div",{className:"quiz-questions__message-description"},null==G?void 0:G.rightAnswer)):a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"quiz-questions__message-header"},"Верно!"),a.a.createElement("div",{className:"quiz-questions__message-description"},null==G?void 0:G.currentAnswer))):a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"quiz-questions__message-wrong"},(null==G?void 0:G.currentAnswer)?a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"quiz-questions__message-header"},"Неверно!"),a.a.createElement("div",{className:"quiz-questions__message-description"},null==G?void 0:G.currentAnswer)):a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"quiz-questions__message-header"},"Вы не успели ответить!"))),a.a.createElement("div",{className:"quiz-questions__message-right"},a.a.createElement("div",{className:"quiz-questions__message-header"},"Верный ответ:"),a.a.createElement("div",{className:"quiz-questions__message-description"},null==G?void 0:G.rightAnswer))))))};var w=Object(h.withRouter)(Object(r.b)(e=>({}),N)(Object(s.memo)(I)));const C=({completedQuestions:e=[]})=>{const t=Object(s.useMemo)(()=>e.sort((e,t)=>new Date(t.created_at)-new Date(e.created_at)),[e]);return e.length?a.a.createElement("div",{className:"quiz-results__container quiz-testaments"},a.a.createElement("p",{className:"quiz-questions__title quiz-results__title"},"Результаты"),t.map(({questions:e,created_at:t,status:n,id:s,description:r,books:i,meta:u,current_question_code:o,current_question:c,type:l,members:d},m)=>a.a.createElement(w,{key:s,id:s,questions:e,created_at:t,status:n,description:r,books:i,meta:u,current_question:c,isFirst:!m,current_question_code:o,type:l,members:d}))):a.a.createElement("p",{className:"quiz__not-found"}," ","У вас отсутствуют начатые или завершённые викторины"," ")};var Q=Object(s.memo)(C),k=n("f6n7GCiS"),P=n("uYqNN4LM"),M=n("VSGJIZlF"),S=n("Eg3YP8vh");const R=Object(s.createContext)(null),L={getQuizList:l.r,getCurrentQueeze:l.n};t.default=Object(r.b)(e=>({completedQuestions:Object(d.d)(e),isLoading:Object(d.l)(e)}),L)(({getQuizList:e,completedQuestions:t,isLoading:n,getCurrentQueeze:i})=>{const o=Object(r.d)(M.a);return Object(s.useEffect)(()=>{e(),Object(j.A)()},[]),a.a.createElement(R.Provider,{value:[i]},a.a.createElement(u.a,null,a.a.createElement("title",null," ",P.e," "),a.a.createElement("meta",{name:"description",content:P.b})),a.a.createElement("div",{className:c()("quiz-questions__header",{"quiz-testament__header-safari-results":o})},a.a.createElement("div",{className:"quiz-title"},a.a.createElement("h1",{className:"page__title"},"Библейская викторина")),a.a.createElement("div",{className:"quiz-results__start-again"},a.a.createElement(m.a,{text:"Начать заново",path:S.e.main}))),n?a.a.createElement(k.a,null):a.a.createElement(Q,{completedQuestions:t}))})},rlaI3hsN:function(e,t,n){},s4JOJC6L:function(e,t,n){"use strict";var s=n("q1tIBJhx"),a=n.n(s),r=n("55IpiCAJ"),i=(n("08W57OBM"),n("Eg3YP8vh"));const u=({text:e,path:t,className:n="btn quiz-ui__link",getNewQuestion:s=(e=>e),isIcon:i=!0})=>a.a.createElement(r.b,{className:n,to:t,onClick:s},e,i&&a.a.createElement("i",{className:"quiz-ui__right"}));u.defaultProps={path:i.e.main,text:"Назад к Викторине"},t.a=Object(s.memo)(u)}
1,slGsSHyE:function(e,t,n){},"tFsRxnF/":function(e,t,n){"use strict";function s(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(t,"__esModule",{value:!0});var a=n("Ty5D64uf"),r=s(n("q1tIBJhx")),i=n("LhCvt1eM");n("17x9q+7Q"),n("LUQCLMS8");var u=s(n("9R943TSf"));function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e}).apply(this,arguments)}function c(e,t){e.prototype=Object.create(t.prototype),function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e.prototype.constructor=e,t)}function l(e,t){if(null==e)return{};var n,s,a={},r=Object.keys(e);for(s=0;s<r.length;s++)n=r[s],0<=t.indexOf(n)||(a[n]=e[n]);return a}var d=function(e){function t(){for(var t,n=arguments.length,s=new Array(n),a=0;a<n;a++)s[a]=arguments[a];return(t=e.call.apply(e,[this].concat(s))||this).history=i.createBrowserHistory(t.props),t}return c(t,e),t.prototype.render=function(){return r.createElement(a.Router,{history:this.history,children:this.props.children})},t}(r.Component),m=function(e){function t(){for(var t,n=arguments.length,s=new Array(n),a=0;a<n;a++)s[a]=arguments[a];return(t=e.call.apply(e,[this].concat(s))||this).history=i.createHashHistory(t.props),t}return c(t,e),t.prototype.render=function(){return r.createElement(a.Router,{history:this.history,children:this.props.children})},t}(r.Component),q=function(e,t){return"function"==typeof e?e(t):e},_=function(e,t){return"string"==typeof e?i.createLocation(e,null,null,t):e},g=function(e){return e},p=r.forwardRef;void 0===p&&(p=g);var f=p((function(e,t){var n=e.innerRef,s=e.navigate,a=e.onClick,i=l(e,["innerRef","navigate","onClick"]),u=i.target,c=o({},i,{onClick:function(e){try{a&&a(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||u&&"_self"!==u||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),s())}});return c.ref=g!==p&&t||n,r.createElement("a",c)})),b=p((function(e,t){var n=e.component,s=void 0===n?f:n,c=e.replace,d=e.to,m=e.innerRef,b=l(e,["component","replace","to","innerRef"]);return r.createElement(a.__RouterContext.Consumer,null,(function(e){e||u(!1);var n=e.history,a=_(q(d,e.location),e.location),l=a?n.createHref(a):"",f=o({},b,{href:l,navigate:function(){var t=q(d,e.location),s=i.createPath(e.location)===i.createPath(_(t));(c||s?n.replace:n.push)(t)}});return g!==p?f.ref=t||m:f.innerRef=m,r.createElement(s,f)}))})),v=function(e){return e},h=r.forwardRef;void 0===h&&(h=v);var E=h((function(e,t){var n=e["aria-current"],s=void 0===n?"page":n,i=e.activeClassName,c=void 0===i?"active":i,d=e.activeStyle,m=e.className,g=e.exact,p=e.isActive,f=e.location,E=e.sensitive,z=e.strict,O=e.style,y=e.to,j=e.innerRef,N=l(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return r.createElement(a.__RouterContext.Consumer,null,(function(e){e||u(!1);var n=f||e.location,i=_(q(y,n),n),l=i.pathname,I=l&&l.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),w=I?a.matchPath(n.pathname,{path:I,exact:g,sensitive:E,strict:z}):null,C=!!(p?p(w,n):w),Q="function"==typeof m?m(C):m,k="function"==typeof O?O(C):O;C&&(Q=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return e})).join(" ")}(Q,c),k=o({},k,d));var P=o({"aria-current":C&&s||null,className:Q,style:k,to:i},N);return v!==h?P.ref=t||j:P.innerRef=j,r.createElement(b,P)}))}));Object.defineProperty(t,"MemoryRouter",{enumerable:!0,get:function(){return a.MemoryRouter}}),Object.defineProperty(t,"Prompt",{enumerable:!0,get:function(){return a.Prompt}}),Object.defineProperty(t,"Redirect",{enumerable:!0,get:function(){return a.Redirect}}),Object.defineProperty(t,"Route",{enumerable:!0,get:function(){return a.Route}}),Object.defineProperty(t,"Router",{enumerable:!0,get:function(){return a.Router}}),Object.defineProperty(t,"StaticRouter",{enumerable:!0,get:function(){return a.StaticRouter}}),Object.defineProperty(t,"Switch",{enumerable:!0,get:function(){return a.Switch}}),Object.defineProperty(t,"generatePath",{enumerable:!0,get:function(){return a.generatePath}}),Object.defineProperty(t,"matchPath",{enumerable:!0,get:function(){return a.matchPath}}),Object.defineProperty(t,"useHistory",{enumerable:!0,get:function(){return a.useHistory}}),Object.defineProperty(t,"useLocation",{enumerable:!0,get:function(){return a.useLocation}}),Object.defineProperty(t,"useParams",{enumerable:!0,get:function(){return a.useParams}}),Object.defineProperty(t,"useRouteMatch",{enumerable:!0,get:function(){return a.useRouteMatch}}),Object.defineProperty(t,"withRouter",{enumerable:!0,get:function(){return a.withRouter}}),t.BrowserRouter=d,t.HashRouter=m,t.Link=b,t.NavLink=E},uYqNN4LM:function(e,t,n){"use strict";n.d(t,"d",(function(){return s})),n.d(t,"a",(function(){return a})),n.d(t,"e",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return u}));const s="Библейская викторина - вопросы по Библии на сайте Экзегет",a="Викторина по Библии с вариантами ответов на официальном православном портале Экзегет. Игра-викторина на библейскую тематику для молодежи и взрослых.",r="Ваши результаты - библейская викторина",i='Вы прошли викторину на тему "Библия". Попробовать еще раз?',u="В выбранных книгах мало вопросов по толкованиям. Выберите дополнительно одну книгу Нового Завета или вопросы по тексту."}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.