PageSourceSearch

https://profinansy.ru/_next/static/chunks/pages/club/education/[ed…/lessons/[lessonId]-e3b1d8fc6b175e4c.js

js profinansy.ru collected 2026-10-02 14:56:43 UTC 51,874 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3308],{6073:function(e,t,n){"use strict";var i,r,l,o=n(67294),a=["title","titleId"];function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}t.Z=function(e){var t=e.title,n=e.titleId,d=function(e,t){if(null==e)return{};var n,i,r=function(e,t){if(null==e)return{};var n={};for(var i in e)if(({}).hasOwnProperty.call(e,i)){if(t.includes(i))continue;n[i]=e[i]}return n}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(i=0;i<l.length;i++)n=l[i],t.includes(n)||({}).propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,a);return o.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",width:18,height:18,viewBox:"0 0 18 18",fill:"none","aria-labelledby":n},d),t?o.createElement("title",{id:n},t):null,i||(i=o.createElement("path",{d:"M11.445 16.686h-4.89c-3.683 0-5.258-1.575-5.258-5.257v-.098c0-3.33 1.313-4.935 4.253-5.212.3-.023.585.202.615.51a.564.564 0 01-.51.615C3.3 7.46 2.422 8.57 2.422 11.339v.097c0 3.053 1.08 4.133 4.133 4.133h4.89c3.052 0 4.132-1.08 4.132-4.133v-.097c0-2.783-.892-3.893-3.292-4.095a.562.562 0 01.097-1.118c2.985.255 4.32 1.868 4.32 5.22v.098c0 3.667-1.575 5.242-5.257 5.242z",fill:"#6553F5"})),r||(r=o.createElement("path",{d:"M9 11.723a.567.567 0 01-.563-.563V1.5c0-.308.256-.563.563-.563.307 0 .563.255.563.563v9.66a.562.562 0 01-.563.563z",fill:"#6553F5"})),l||(l=o.createElement("path",{d:"M9 12.561a.556.556 0 01-.398-.165L6.09 9.884a.566.566 0 010-.795.566.566 0 01.795 0L9 11.204l2.115-2.115a.566.566 0 01.795 0 .566.566 0 010 .795l-2.513 2.512a.556.556 0 01-.397.165z",fill:"#6553F5"})))}},29325:function(e,t,n){"use strict";var i,r=n(67294),l=["title","titleId"];function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}t.Z=function(e){var t=e.title,n=e.titleId,a=function(e,t){if(null==e)return{};var n,i,r=function(e,t){if(null==e)return{};var n={};for(var i in e)if(({}).hasOwnProperty.call(e,i)){if(t.includes(i))continue;n[i]=e[i]}return n}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(i=0;i<l.length;i++)n=l[i],t.includes(n)||({}).propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,l);return r.createElement("svg",o({width:16,height:12,viewBox:"0 0 16 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":n},a),t?r.createElement("title",{id:n},t):null,i||(i=r.createElement("path",{d:"M1 6.5l3.625 3.755a1 1 0 001.44 0L15 1",stroke:"#898989",strokeWidth:1.5,strokeLinecap:"round"})))}},13441:function(e,t,n){"use strict";var i,r=n(67294),l=["title","titleId"];function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}t.Z=function(e){var t=e.title,n=e.titleId,a=function(e,t){if(null==e)return{};var n,i,r=function(e,t){if(null==e)return{};var n={};for(var i in e)if(({}).hasOwnProperty.call(e,i)){if(t.includes(i))continue;n[i]=e[i]}return n}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(i=0;i<l.length;i++)n=l[i],t.includes(n)||({}).propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,l);return r.createElement("svg",o({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":n},a),t?r.createElement("title",{id:n},t):null,i||(i=r.createElement("path",{d:"M8 1.333C4.327 1.333 1.333 4.326 1.333 8c0 3.673 2.994 6.666 6.667 6.666 3.673 0 6.667-2.993 6.667-6.666 0-3.674-2.994-6.667-6.667-6.667zm3.187 5.133l-3.78 3.78a.5.5 0 01-.707 0L4.813 8.36a.503.503 0 010-.707.503.503 0 01.707 0l1.533 1.533L10.48 5.76a.503.503 0 01.707 0 .503.503 0 010 .706z",fill:"#29B279"})))}},14527:function(e,t,n){"use strict";var i,r=n(67294),l=["title","titleId"];function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}t.Z=function(e){var t=e.title,n=e.titleId,a=function(e,t){if(null==e)return{};var n,i,r=function(e,t){if(null==e)return{};var n={};for(var i in e)if(({}).hasOwnProperty.call(e,i)){if(t.includes(i))continue;n[i]=e[i]}return n}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(i=0;i<l.length;i++)n=l[i],t.includes(n)||({}).propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,l);return r.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",width:12,height:13,viewBox:"0 0 12 13",fill:"none","aria-labelledby":n},a),t?r.createElement("title",{id:n},t):null,i||(i=r.createElement("path",{d:"M.375 6.057V3.684c0-2.947 2.087-4.154 4.64-2.68l2.06 1.186 2.06 1.187c2.553 1.473 2.553 3.887 0 5.36l-2.06 1.187-2.06 1.186c-2.553 1.474-4.64.267-4.64-2.68V6.057z",fill:"#9B8EFF",stroke:"#9B8EFF",strokeWidth:.75,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"})))}},67145:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/club/education/[educationSection]/course/[courseId]/lessons/[lessonId]",function(){return n(96909)}])},40462:function(e,t,n){"use strict";n.d(t,{qk:function(){return l},vh:function(){return r},yJ:function(){return i}});var i=6e4,r=36e5,l=1e3},96909:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return e5},default:function(){return e6}});var i,r,l=n(85893),o=n(11163),a=n(62756),s=n(92647),d=n(28677),u=n(42377),c=n(67294),p=n(29325),m=n(11787),f=n(34265);let h=e=>{if(!(null==e?void 0:e.length))return[];let t=new Set,n=[];for(let r of e){var i;for(let e of null!==(i=r.lessons)&&void 0!==i?i:[]){let i=e.lesson_uuid;!i||t.has(i)||(t.add(i),n.push(e))}}return n},g=(e,t)=>{if(!(null==e?void 0:e.length))return;let n=e.filter(e=>{var n;return(null!==(n=e.lessons)&&void 0!==n?n:[]).some(e=>e.lesson_uuid===t)});return n.length?n.reduce((e,t)=>
1{var n,i,r,l;return(null!==(r=null===(n=t.lessons)||void 0===n?void 0:n.length)&&void 0!==r?r:0)>(null!==(l=null===(i=e.lessons)||void 0===i?void 0:i.length)&&void 0!==l?l:0)?t:e}):e[0]};var x=n(54335);let v=x.default.div.withConfig({componentId:"sc-4345a2a7-0"})(["width:100%;",""],e=>{let{$variant:t,theme:n}=e;return"modal"===t?(0,x.css)(["max-width:none;min-width:unset;background:transparent;border-radius:0;padding:0;position:static;margin-top:0;"]):(0,x.css)(["max-width:336px;background:",";min-width:336px;border-radius:20px;padding:16px;position:sticky;top:calc("," + 24px);@media (max-width:900px){margin-top:20px;}@media (max-width:600px){min-width:unset;max-width:unset;}"],n.background.content,(0,u.getHeightHeaderV2)())}),w=x.default.div.withConfig({componentId:"sc-4345a2a7-1"})(["display:flex;gap:12px;",""],e=>{let{$variant:t}=e;return"modal"===t&&(0,x.css)(["align-items:center;"])}),y=x.default.img.withConfig({componentId:"sc-4345a2a7-2"})(["width:60px;height:88px;border-radius:6px;object-fit:cover;"]),b=x.default.div.withConfig({componentId:"sc-4345a2a7-3"})(["display:flex;flex-direction:column;align-items:flex-start;gap:12px;flex:1 0 0;align-self:stretch;min-width:0;",""],e=>{let{$variant:t}=e;return"modal"===t?(0,x.css)(["align-self:unset;"]):null}),_=x.default.div.withConfig({componentId:"sc-4345a2a7-4"})(["margin-top:14px;display:flex;flex-direction:column;align-self:stretch;",""],e=>{let{$variant:t}=e;return"modal"===t?(0,x.css)(["gap:10px;margin-top:16px;@media (max-width:743px){gap:12px;}"]):(0,x.css)(["gap:12px;"])}),j=x.default.div.withConfig({componentId:"sc-4345a2a7-5"})(["margin-top:12px;width:100%;"]),k=x.default.div.withConfig({componentId:"sc-4345a2a7-6"})(["display:flex;align-items:center;gap:12px;padding:16px 8px;border-radius:12px;background:",";cursor:pointer;border:0.5px solid transparent;&:hover{border-color:",";}",""],e=>{let{theme:t}=e;return t.background.secondary},e=>{let{theme:t}=e;return t.stroke.accent},e=>e.$isActive&&(0,x.css)(["border-color:",";"],e=>{let{theme:t}=e;return t.stroke.accent})),I=x.default.span.withConfig({componentId:"sc-4345a2a7-7"})(["display:grid;place-items:center;min-width:32px;height:32px;border-radius:50%;background:",";p{color:",";}",""],e=>{let{theme:t}=e;return t.background.accent},e=>{let{theme:t}=e;return t.text.contrastThemed},e=>e.$isEnd&&(0,x.css)(["background:",";"],e=>{let{theme:t}=e;return t.icons.accentSecondary})),C=x.default.div.withConfig({componentId:"sc-4345a2a7-8"})(["path{stroke:",";}"],e=>{let{theme:t}=e;return t.icons.contrastThemed}),S=x.default.div.withConfig({componentId:"sc-4345a2a7-9"})(["display:flex;flex-direction:column;align-items:stretch;gap:10px;width:100%;padding:16px;text-align:left;border-radius:16px;background:rgba(53,49,164,0.04);cursor:pointer;transition:border-color 0.2s ease;border:1px solid transparent;position:relative;"," "," ",""],e=>{let{$isActive:t,theme:n}=e;return t&&(0,x.css)(["border-color:",";"],n.stroke.accent)},e=>{let{$disabled:t}=e;return t&&(0,x.css)(["opacity:0.5;cursor:default;pointer-events:none;"])},e=>{let{$disabled:t}=e;return!t&&(0,x.css)(["&:hover{border-color:",";}"],e=>{let{theme:t}=e;return t.stroke.accent})}),M=x.default.div.withConfig({componentId:"sc-4345a2a7-10"})(["display:flex;flex-direction:row;justify-content:space-between;align-items:flex-start;gap:12px;width:100%;align-self:stretch;",""],e=>{let{$padForChip:t}=e;return t&&(0,x.css)(["padding-right:112px;"])}),L=x.default.div.withConfig({componentId:"sc-4345a2a7-11"})(["display:flex;flex-direction:column;align-items:flex-start;gap:6px;flex:1;min-width:0;align-self:stretch;"]),T=(0,x.default)(u.Typography).withConfig({componentId:"sc-4345a2a7-12"})(["width:100%;"]),O=x.default.span.withConfig({componentId:"sc-4345a2a7-13"})(["display:flex;padding:2px 10px 4px 10px;align-items:flex-start;gap:4px;position:absolute;right:16px;top:12px;background:",";border-radius:34px;"],e=>{let{theme:t}=e;return t.icons.accent}),E=x.default.div.withConfig({componentId:"sc-4345a2a7-14"})(["display:flex;flex-wrap:wrap;align-items:flex-start;gap:8px;align-self:stretch;"]),P=x.default.div.withConfig({componentId:"sc-4345a2a7-15"})(["display:flex;align-items:center;gap:4px;svg{width:16px;height:16px;flex-shrink:0;display:block;}"]),N=x.default.div.withConfig({componentId:"sc-4345a2a7-16"})(["display:flex;align-items:center;gap:4px;svg{width:16px;height:16px;flex-shrink:0;display:block;}"]),R=x.default.div.withConfig({componentId:"sc-4345a2a7-17"})(["display:flex;flex-direction:column;align-items:flex-start;gap:4px;align-self:stretch;"]),A=x.default.div.withConfig({componentId:"sc-4345a2a7-18"})(["display:flex;justify-content:space-between;align-items:center;align-self:stretch;gap:8px;"]),q=x.default.div.withConfig({componentId:"sc-4345a2a7-19"})(["position:relative;height:8px;width:100%;background:",";border-radius:90px;&::before{content:'';position:absolute;top:50%;transform:translateY(-50%);left:0px;height:8px;width:","%;background:",";border-radius:80px;}"],e=>{let{theme:t}=e;return t.background.accentSecondaryTint},e=>{let{moduleProgressPercent:t}=e;return t},e=>{let{theme:t}=e;return t.icons.accent});var B=n(24309),D=n(30895),F=n(73680);let U=(e,t)=>{if(!(null==e?void 0:e.trim()))return"";let n=e.trim(),i=n.split(":").map(e=>parseInt(e.trim(),10));if(!i.length||i.some(e=>Number.isNaN(e)))return n;let r=0,l=0;return(i.length>=3?(r=i[0],l=i[1]+Math.round((i[2]||0)/60)):2===i.length?(r=i[0],l=i[1]):l=i[0],l>=60&&(r+=Math.floor(l/60),l%=60),r>0&&l>0)?t("course_card.time_hours_minutes",{hours:(0,F.j)(r),minutes:(0,F.j)(l)}):r>0?t("course_card.time_hours",{value:(0,F.j)(r)}):l>0?t("course_card.time_minutes",{value:(0,F.j)(l)}):""},$=e=>{let{lessons:t,lessonId:n,currentProgressLessonUuid:i,t:r,onLessonClick:o}=e;return(0,l.jsx)(l.Fragment,{children:t.map((e,t)=>{var a;let s=null!==(a=e.lesson_uuid)&&void 0!==a?a:"",d=!1===e.is_open,c=!!(s&&s===n),p=!!i&&s===i,m=U(e.time_theory,r),f=!e.is_end&&!!m.trim(),h=!!e.is_end||f;return(0,l.jsxs)(S,{$disabled:d,$isActive:c,tabIndex:d?-1:0,role:"button",onClick:()=>s&&!d&&o(s),children:[(0,l.jsxs)(M,{$padForChip:p,children:[(0,l.jsxs)(L,{children:[(0,l.jsxs)(u.Typography,{variant:"caption-Medium",colorName:"fourth",children:["#",t+1]}),(0,l.jsx)(T,{variant:"text-Medium",colorName:"primary",children:e.lesson_name})]}),p?(0,l.jsx)(O,{children:(0,l.jsx)(u.Typography,{variant:"caption-Medium",colorName:"contrastThemed",children:r("films_books_lesson.you_are_here")})}):null]}),h?(0,l.jsxs)(E,{children:[e.is_end?(0,l.jsxs)(P,{children:[(0,l.jsx)(B.Z,{"aria-hidden":!0}),(0,l.jsx)(u.Typography,{variant:"caption-Medium",colorName:"positive",children:r("films_books_lesson.lesson_completed")})]}):null,f?(0,l.jsxs)(N,{children:[(0,l.jsx)(D.Z,{"aria-hidden":!0}),(0,l.jsx)(u.Typography,{variant:"caption-Medium",colorName:"fourth",children:m})]}):null]}):null]},s||"".concat(e.lesson_name,"-").concat(t))})})},z=e=>{let{moduleProgressPercent:t,completedLessonsCount:n,lessonsCount:i,remainingMinutesFromLessons:r,courseListTiming:o}
1=e,{t:a}=(0,d.$G)("club"),s=(0,x.useTheme)(),p=(0,c.useMemo)(()=>{if(null!=o&&o.totalSeconds>0){var e;let t=Math.min(null!==(e=o.passedSeconds)&&void 0!==e?e:0,o.totalSeconds);return Math.max(0,Math.round((o.totalSeconds-t)/60))}return r},[o,r]);return(0,l.jsxs)(R,{children:[(0,l.jsxs)(A,{children:[(0,l.jsx)(u.Typography,{variant:"caption-Medium",color:s.text.fourth,children:a("films_books_lesson_sidebar.completed_of_total",{completed:n,total:i})}),(0,l.jsx)(u.Typography,{variant:"caption-Medium",color:s.text.fourth,children:a("films_books_lesson_sidebar.remaining_minutes",{minutes:(0,F.j)(p)})})]}),(0,l.jsx)(q,{moduleProgressPercent:t,children:(0,l.jsx)("div",{})})]})},Z=e=>{if(!e)return 0;let t=e.split(":").map(e=>parseInt(e,10));if(t.some(e=>Number.isNaN(e)))return 0;if(t.length>=3){let[e,n]=t;return 60*e+n}if(2===t.length){let[e,n]=t;return 60*e+n}return 0},V=e=>{var t,n,i;let{lessonId:r,courseId:a,courseModulesProgress:s,courseListTiming:x,variant:S="sidebar",onLessonNavigate:M,isAnalysis:L=!1,courseModules:T=[]}=e,{push:O,query:E}=(0,o.useRouter)(),{t:P}=(0,d.$G)("club"),N=E.educationSection,R=(0,c.useMemo)(()=>null==s?void 0:s.modules.find(e=>{var t;return!!(null===(t=e.lessons)||void 0===t?void 0:t.find(e=>e.lesson_uuid===r))}),[null==s?void 0:s.modules,r]),A=(0,c.useMemo)(()=>{var e,t;let n=new Map;for(let i of null!==(e=null==s?void 0:s.modules)&&void 0!==e?e:[])for(let e of null!==(t=i.lessons)&&void 0!==t?t:[]){let t=e.lesson_uuid;t&&n.set(t,e)}let i=(0,f.nQ)(T);return i.length?i.map(e=>{var t;return n.get(e.uuid)||{lesson_uuid:e.uuid,lesson_name:null!==(t=e.name)&&void 0!==t?t:"",is_open:e.is_open,is_end:e.is_end,time_theory:e.time_theory}}):h(null==s?void 0:s.modules)},[T,null==s?void 0:s.modules]),q=(0,c.useMemo)(()=>L?g(null==s?void 0:s.modules,r):void 0,[L,null==s?void 0:s.modules,r]),B=(0,c.useMemo)(()=>{var e;return L?A:null!==(e=null==R?void 0:R.lessons)&&void 0!==e?e:[]},[A,null==R?void 0:R.lessons,L]),D=(0,c.useMemo)(()=>{var e;if(!B.length)return"";let t=B.find(e=>!!e.is_open&&!e.is_end&&e.lesson_uuid);return null!==(e=null==t?void 0:t.lesson_uuid)&&void 0!==e?e:""},[B]),F=e=>{O({pathname:m.ns.club.lessonPage,query:{educationSection:N,courseId:a,lessonId:e}}),null==M||M()},U=B.length,V=(0,c.useMemo)(()=>B.filter(e=>e.is_end).length,[B]),H=(0,c.useMemo)(()=>B.length?B.reduce((e,t)=>t.is_end?e:e+Z(t.time_theory),0):0,[B]);if(!(null==s?void 0:null===(t=s.modules)||void 0===t?void 0:t.length)||L&&!A.length||!L&&!R)return null;let K=L?s.avatar_file?(0,f.zo)(s.avatar_file,"_"):(null==q?void 0:q.avatar_file)?(0,f.zo)(q.avatar_file,"_"):void 0:(null==R?void 0:R.avatar_file)?(0,f.zo)(R.avatar_file,"_"):void 0,Q=L?(null===(n=s.course_name)||void 0===n?void 0:n.trim())||(null==q?void 0:q.module_name)||"":(null===(i=s.course_name)||void 0===i?void 0:i.trim())||(null==R?void 0:R.module_name)||"",G=(0,l.jsx)(z,{moduleProgressPercent:U>0?Math.floor(V/U*100):0,completedLessonsCount:V,lessonsCount:U,remainingMinutesFromLessons:H,courseListTiming:x});return(0,l.jsxs)(v,{$variant:S,children:[(0,l.jsxs)(w,{$variant:S,children:[K&&(0,l.jsx)(y,{src:K,alt:"",loading:"lazy"}),(0,l.jsxs)(b,{$variant:S,children:[(0,l.jsx)(u.Typography,{variant:[{variant:"header6-SemiBold",resolution:null},{variant:"header5-Bold",resolution:1279}],colorName:"primary",children:Q}),"sidebar"===S?G:null]})]}),"modal"===S?(0,l.jsx)(j,{children:G}):null,(0,l.jsx)(_,{$variant:S,children:"modal"===S?(0,l.jsx)($,{lessons:B,lessonId:r,currentProgressLessonUuid:D,t:P,onLessonClick:F}):B.map((e,t)=>{var n;return(0,l.jsxs)(k,{$isActive:e.lesson_uuid===r,tabIndex:0,role:"button",onClick:()=>e.lesson_uuid&&F(e.lesson_uuid),children:[(0,l.jsx)(I,{$isEnd:!!e.is_end&&e.lesson_uuid!==r,children:e.is_end?(0,l.jsx)(C,{children:(0,l.jsx)(p.Z,{})}):(0,l.jsx)(u.Typography,{variant:"caption-Bold",children:t+1})}),(0,l.jsx)(u.Typography,{variant:"caption2-SemiBold",colorName:"primary",children:e.lesson_name})]},null!==(n=e.lesson_uuid)&&void 0!==n?n:"".concat(e.lesson_name,"-").concat(t))})})]})};var H=n(29396),K=n(4450),Q=["title","titleId"];function G(){return(G=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}var W=function(e){var t=e.title,n=e.titleId,l=function(e,t){if(null==e)return{};var n,i,r=function(e,t){if(null==e)return{};var n={};for(var i in e)if(({}).hasOwnProperty.call(e,i)){if(t.includes(i))continue;n[i]=e[i]}return n}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(i=0;i<l.length;i++)n=l[i],t.includes(n)||({}).propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,Q);return c.createElement("svg",G({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,viewBox:"0 0 20 20",fill:"none","aria-labelledby":n},l),t?c.createElement("title",{id:n},t):null,i||(i=c.createElement("path",{d:"M10.309 7.4h4.375M5.316 7.4l.625.625L7.816 6.15M10.309 13.232h4.375M5.316 13.232l.625.625 1.875-1.875",stroke:"#fff",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),r||(r=c.createElement("path",{d:"M7.5 18.333h5c4.166 0 5.833-1.667 5.833-5.834v-5c0-4.166-1.667-5.833-5.834-5.833h-5c-4.166 0-5.833 1.667-5.833 5.833v5c0 4.167 1.667 5.834 5.833 5.834z",stroke:"#fff",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})))},J=n(86184);
1let Y=(e,t,n)=>{let[i,r]=(0,c.useState)(null),[l,o]=(0,c.useState)(null),[a,s]=(0,c.useState)(null),[d,u]=(0,c.useState)(m.y2.IDLE),[p,h]=(0,c.useState)(null),[g,x]=(0,c.useState)([]),[v,w]=(0,c.useState)(null),[y,b]=(0,c.useState)(m.y2.IDLE),_=(0,c.useCallback)(async()=>{if(!e||!t){s(null),o(null),r(null),u(m.y2.IDLE);return}u(m.y2.LOADING);let[{data:n},{data:i},{data:l}]=await Promise.all([J.O.getCourseLesson(e,t),J.O.getCourseBriefInfo(t),J.O.getCourseLessonHeadInfo(e,t)]);s(l),o(i),r(n),u(m.y2.SUCCESS)},[t,e]),j=(0,c.useCallback)(async()=>{if(!t){h(null),x([]),w(null),b(m.y2.IDLE);return}b(m.y2.LOADING);let e=J.O.getCourseProgress(t),i=null!=n&&""!==n?J.O.getStudentCourses(n,{is_club:!0,sort:"club"}).catch(()=>({data:[]})):Promise.resolve({data:[]}),r=J.O.getCourseModules(t).catch(e=>((0,f.Mb)(e,"useGetLessonDetails: getCourseModules"),{data:[]})),[{data:l},{data:o},{data:a}]=await Promise.all([e,i,r]);h(l),x(null!=a?a:[]);let s=null==o?void 0:o.find(e=>e.unique_id===t);if(s&&"number"==typeof s.total_time&&s.total_time>0){var d;let e=Math.min(null!==(d=s.total_time_passed)&&void 0!==d?d:0,s.total_time);w({totalSeconds:s.total_time,passedSeconds:e})}else w(null);b(m.y2.SUCCESS)},[t,n,e]);return(0,c.useEffect)(()=>{_()},[_]),(0,c.useEffect)(()=>{j()},[j]),{lessonDetails:i,loading:d,briefInfo:l,lessonHeadInfo:a,courseModulesProgress:p,courseModules:g,courseListTiming:v,modulesLoading:y}};var X=n(6802),ee=n(2665),et=n(94474),en=n(14537),ei=n(10485),er=n(55945),el=n(6073);let eo=x.default.div.withConfig({componentId:"sc-17a7b150-0"})(["margin-top:24px;",""],e=>{let{$isAnalysis:t}=e;return t&&(0,x.css)(["margin-top:0;"])}),ea=x.default.div.withConfig({componentId:"sc-17a7b150-1"})(["margin-top:22px;padding:16px;background:",";border-radius:24px;",""],e=>{let{theme:t}=e;return t.background.content},e=>{let{$isAnalysis:t}=e;return t&&(0,x.css)(["margin-top:0;"])}),es=x.default.div.withConfig({componentId:"sc-17a7b150-2"})(["display:flex;justify-content:center;align-items:center;gap:8.602px;align-self:stretch;"]),ed=x.default.div.withConfig({componentId:"sc-17a7b150-3"})(["display:flex;justify-content:center;align-items:center;gap:8.602px;align-self:stretch;margin-bottom:20px;"]);x.default.div.withConfig({componentId:"sc-17a7b150-4"})(["position:relative;padding-bottom:56.25%;padding-top:25px;height:0;border-radius:12px;"]),x.default.iframe.withConfig({componentId:"sc-17a7b150-5"})(["position:absolute;top:0;left:0;width:100%;height:100%;border-radius:12px;"]);let eu=x.default.div.withConfig({componentId:"sc-17a7b150-6"})(["padding:",";color:",";& figure{margin-left:auto;margin-right:auto;}& img{display:block;margin:0 auto;}"],e=>{let{$isAnalysis:t}=e;return t?"16px 0 0":"0 0 0 12px"},e=>{let{theme:t}=e;return t.text.primary}),ec=x.default.div.withConfig({componentId:"sc-17a7b150-7"})(["margin-top:16px;margin-bottom:20px;color:",";& p{color:",";}& figure{margin-left:auto;margin-right:auto;}& img{display:block;}"],e=>{let{theme:t}=e;return t.text.primary},e=>{let{theme:t}=e;return t.text.primary}),ep=x.default.div.withConfig({componentId:"sc-17a7b150-8"})(["margin-top:16px;padding:16px 16px 16px 20px;border-radius:12px;background:",";"," & p{color:",";}"],e=>{let{theme:t}=e;return t.background.content},e=>{let{$insideAnalysisCard:t}=e;return t&&(0,x.css)(["background:transparent;padding:16px 0 0;margin-top:16px;"])},e=>{let{theme:t}=e;return t.text.primary}),em=x.default.div.withConfig({componentId:"sc-17a7b150-9"})(["max-width:100%;min-width:0;overflow-wrap:anywhere;word-break:break-word;color:",";& p,& li,& a{max-width:100%;overflow-wrap:anywhere;word-break:break-word;}& a{color:",";}& ol,& ul{padding-left:20px;margin:0;}"],e=>{let{theme:t}=e;return t.text.primary},e=>{let{theme:t}=e;return t.text.accent}),ef=x.default.ul.withConfig({componentId:"sc-17a7b150-10"})(["list-style:none;padding:0;margin:0 0 20px;"]),eh=x.default.li.withConfig({componentId:"sc-17a7b150-11"})(["border-radius:8px;margin-bottom:8px;&:last-child{margin-bottom:0;}& a{padding:0;border:none;background-color:transparent;color:",";cursor:pointer;font-size:15px;line-height:20px;font-family:inherit;display:flex;align-items:center;gap:12px;&:hover{color:",";}}"],e=>{let{theme:t}=e;return t.text.primary},e=>{let{theme:t}=e;return t.text.accent}),eg=x.default.div.withConfig({componentId:"sc-17a7b150-12"})(["display:flex;gap:34px;align-items:center;@media (max-width:599px){padding-left:16px;}"]);x.default.div.withConfig({componentId:"sc-17a7b150-13"})(["display:flex;gap:18px;align-items:center;"]),x.default.button.withConfig({componentId:"sc-17a7b150-14"})(["width:36px;height:36px;background:",";display:grid;place-items:center;border-radius:50%;",""],e=>{let{theme:t}=e;return t.background.content},e=>{let{$isSecond:t}=e;return t&&(0,x.css)(["transform:rotate(180deg);"])});let ex=x.default.div.withConfig({componentId:"sc-17a7b150-15"})(["display:flex;flex-direction:column;gap:5px;margin-top:24px;"]);x.default.h3.withConfig({componentId:"sc-17a7b150-16"})(["margin:0;font-size:20px;font-weight:800;line-height:24px;margin-bottom:16px;"]);let ev=x.default.p.withConfig({componentId:"sc-17a7b150-17"})(["margin:0;font-size:15px;line-height:18.5px;color:",";"],e=>{let{theme:t}=e;return t.text.primary}),ew=x.default.button.withConfig({componentId:"sc-17a7b150-18"})(["font-weight:700;cursor:pointer;color:",";border:none;background:none;font-size:15px;"],e=>{let{theme:t}=e;return t.text.accent}),ey=x.default.div.withConfig({componentId:"sc-17a7b150-19"})(["display:flex;flex-direction:column;gap:16px;"]),eb=(0,x.default)(u.Typography).withConfig({componentId:"sc-17a7b150-20"})(["transition:0.3s all;"]),e_=x.default.button.withConfig({componentId:"sc-17a7b150-21"})(["width:100%;display:flex;align-items:center;justify-content:space-between;padding:12px 0;border-bottom:0.5px solid ",";&:hover{& path{fill:",";}& ","{color:",";}}"],e=>{let{theme:t}=e;return t.stroke.secondary},e=>{let{theme:t}=e;return t.text.accent},eb,e=>{let{theme:t}=e;return t.text.primary}),ej=x.default.span.withConfig({componentId:"sc-17a7b150-22"})(["display:flex;gap:16px;align-items:center;"]),ek=(0,x.default)(el.Z).withConfig({componentId:"sc-17a7b150-23"})(["& path{transition:0.3s all;fill:",";}"],e=>{let{theme:t}=e;return t.text.primary});var eI=n(14527),eC=n(13441);let eS=x.default.div.withConfig({componentId:"sc-1f953262-0"})(["width:100%;display:flex;gap:14px;border-radius:12px;padding:8px;
1cursor:pointer;background:",";&:hover{background:",";}@media (((max-width:1100px) and (min-width:960px)) or (max-width:900px)){width:fit-content;}"],e=>{let{theme:t,$isActive:n}=e;return n?t.background.fieldSecondary:t.background.content},e=>{let{theme:t,$isActive:n}=e;return!n&&t.background.secondary}),eM=x.default.div.withConfig({componentId:"sc-1f953262-1"})(["max-width:122px;min-width:122px;width:100%;height:70px;position:relative;border-radius:8px;overflow:hidden;img{width:100%;height:100%;object-fit:cover;}@media (max-width:1279px){max-width:112px;min-width:108px;height:62px;}"]),eL=x.default.div.withConfig({componentId:"sc-1f953262-2"})(["width:32px;height:32px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:flex;align-items:center;justify-content:center;border-radius:100px;background:",";cursor:pointer;svg{width:18px;}"],e=>{let{theme:t}=e;return t.icons.contrastThemed}),eT=x.default.div.withConfig({componentId:"sc-1f953262-3"})(["width:100%;display:flex;flex-direction:column;gap:2px;p{word-break:break-word;}@media (((max-width:1100px) and (min-width:960px)) or (max-width:900px)){display:none;}"]),eO=(0,x.default)(eC.Z).withConfig({componentId:"sc-1f953262-4"})(["position:absolute;top:4px;right:4px;width:16px;height:16px;"]),eE=e=>{let{idx:t,name:n,video:i,selectedVideo:r,changeSelectedVideo:o}=e,a=(null==r?void 0:r.file_k)===(null==i?void 0:i.file_k);return(0,l.jsxs)(eS,{$isActive:a,onClick:()=>o(i),children:[(0,l.jsxs)(eM,{children:[(0,l.jsx)(eL,{children:(0,l.jsx)(eI.Z,{})}),(0,l.jsx)("img",{src:(null==i?void 0:i.image)?(0,f.zo)(i.image,"_"):i.previewLink,alt:""}),i.is_completed&&(0,l.jsx)(eO,{})]}),(0,l.jsxs)(eT,{children:[(0,l.jsxs)(u.Typography,{variant:"caption2-Medium",colorName:"fourth",children:["Видео ",t+1]}),!!(null==n?void 0:n.trim())&&(0,l.jsx)(u.HiddenText,{mode:"multiline",lines:3,children:(0,l.jsx)(u.Typography,{variant:"caption-SemiBold",colorName:"primary",children:n})})]})]})};var eP=n(24620);let eN=(e,t,n)=>t?e?"287px":"373px":e?n?"287px":"334px":"100%",eR=x.default.div.withConfig({componentId:"sc-a34ff97e-0"})(["display:flex;gap:12px;@media (max-width:743px){flex-direction:column-reverse;margin-bottom:8px;}"]),eA=x.default.div.withConfig({componentId:"sc-a34ff97e-1"})(["max-width:",";width:100%;max-height:",";position:relative;border-radius:12px;overflow:hidden;img{width:100%;height:100%;object-fit:cover;}@media (max-width:750px){max-width:",";max-height:",";margin:0 auto;}@media (max-width:450px){max-width:100%;display:flex;justify-content:center;}"],e=>{let{$hasMoreVideo:t}=e;return t?"595px":"100%"},e=>{let{$hasMoreVideo:t,$openMode:n}=e;return eN(t,!1,n)},e=>{let{$hasMoreVideo:t}=e;return t?"513px":"100%"},e=>{let{$hasMoreVideo:t}=e;return eN(t,!0)}),eq=x.default.div.withConfig({componentId:"sc-a34ff97e-2"})(["flex:1 0 0;min-width:240px;width:100%;max-height:",";display:flex;flex-direction:column;gap:4px;overflow:auto;padding-right:8px;",";@media (max-width:1100px){min-width:136px;}@media (max-width:750px){max-height:",";}@media (max-width:743px){flex:1;flex-direction:row;padding-right:0;padding-bottom:8px;}"],e=>{let{$openMode:t}=e;return eN(!0,!1,t)},e=>{let{theme:t}=e;return(0,eP.W)(t)},eN(!0,!0)),eB=e=>{var t,n,i;let{lessonParts:r,isAnalysis:o,lessonNumber:a,lessonTitle:s,lessonInfoHtml:d,lessonMaterials:p=[]}=e,m=(0,u.useOpenSideMenu)(),f=p.filter(e=>{let{file:t}=e;return!!t}),h=(0,c.useMemo)(()=>r.map(e=>({...e.video,name:e.name||e.video.name})).filter(e=>!!e.file_k||!!e.file),[r]),{videosWithDetails:g,updateCompletedVideo:x}=(0,ee.i)(h),[v,w]=(0,c.useState)(null),y=(0,c.useMemo)(()=>{if(v){var e;return null!==(e=r.find(e=>{var t;return(null===(t=e.video)||void 0===t?void 0:t.file_k)===v.file_k}))&&void 0!==e?e:r.find(e=>{var t;return(null===(t=e.video)||void 0===t?void 0:t.uuid)===v.uuid})}return r[0]},[r,v]),b=null!==(n=null!=v?v:g[0])&&void 0!==n?n:null===(t=r[0])||void 0===t?void 0:t.video,_=null==y?void 0:y.info,j=null!==(i=null==y?void 0:y.materials)&&void 0!==i?i:[],k=(null==v?void 0:v.timingsK)||(null==b?void 0:b.timings),I=!!(null==_?void 0:_.length),C=!!(null==k?void 0:k.length),S=!!(null==j?void 0:j.length),M=!!o&&I&&C,{tabOptions:L,selectedTab:T,setSelectedTab:O}=(0,H.Cs)({hasDesc:!o&&I,hasTimings:!o&&C,hasMaterials:!o&&S}),[E,P]=(0,c.useState)("description"),N=(0,c.useMemo)(()=>
1{if(!M)return[];let e=[{label:"Описание",value:"description"},{label:"Тайминги",value:"timing"}];return S&&e.push({label:"Материалы",value:"files"}),e},[M,S]),{timing:R,setTiming:A,getTime:q,handleTimingClick:B}=(0,ei.s)({videoKineskope:null==v?void 0:v.file_k}),{link:D}=(0,en.B)({videoLink:(null==v?void 0:v.file_k)||(null==v?void 0:v.file)});(0,c.useEffect)(()=>{if((null==g?void 0:g.length)&&!v){w(g[0]);return}v&&!v.timings&&!v.timingsK&&(null==g?void 0:g.length)&&w(g.find(e=>e.file_k===v.file_k)||null)},[v,g]),(0,c.useEffect)(()=>{(null==v?void 0:v.time_watched)&&A(v.time_watched)},[v,A]),(0,c.useEffect)(()=>{P("description")},[null==v?void 0:v.uuid]),(0,c.useEffect)(()=>{M&&N.length&&(new Set(N.map(e=>e.value)).has(E)||P(N[0].value))},[M,N,E]);let F=e=>{A(null),w(e)},U=null!=a||!!(null==s?void 0:s.trim()),$=null==d?void 0:d.trim(),z=C&&(null==k?void 0:k.length)?(0,l.jsx)(ex,{children:k.map(e=>{let{name:t,time:n}=e;return(0,l.jsxs)(ev,{children:[(0,l.jsx)(ew,{onClick:()=>B(String(n)),children:q(String(n))})," - ",t]},n)})}):null,Z=S?(0,l.jsx)(ey,{children:(null!=j?j:[]).map(e=>(0,l.jsx)("a",{href:e.file,target:"_blank",rel:"noreferrer",children:(0,l.jsxs)(e_,{children:[(0,l.jsx)(ej,{children:(0,l.jsx)(u.Typography,{colorName:"secondary",variant:"text-Regular",children:e.name})}),(0,l.jsxs)(ej,{children:[(0,l.jsx)(eb,{colorName:"secondary",variant:"description-Regular",children:(0,er.h)(+e.size)}),(0,l.jsx)(ek,{})]})]})},e.name))}):null,V=()=>{let e=null==b?void 0:b.info;return(null==e?void 0:e.length)||f.length?(0,l.jsxs)(ep,{children:[!!f.length&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(u.Typography,{variant:"header4-SemiBold",colorName:"primary",marginBottom:"16px",children:"Материалы к уроку:"}),(0,l.jsx)(ef,{children:f.map(e=>(0,l.jsx)(eh,{children:(0,l.jsxs)("a",{download:"",href:e.file,target:"_blank",rel:"noreferrer",children:[(0,X.LP)(e.file||e.name||""),e.name]})},e.material_uuid||e.file||e.name))})]}),!!(null==e?void 0:e.length)&&(0,l.jsx)(em,{dangerouslySetInnerHTML:{__html:e}})]}):null};return(0,l.jsxs)(eo,{$isAnalysis:o,children:[(0,l.jsxs)(ea,{$isAnalysis:o,children:[o&&U&&(0,l.jsxs)(ed,{children:[null!=a&&(0,l.jsxs)(u.Typography,{variant:[{variant:"header3-Bold",resolution:null},{variant:"header5-Bold",resolution:743}],colorName:"secondary",children:["#",a]}),!!(null==s?void 0:s.trim())&&(0,l.jsx)(u.Typography,{variant:[{variant:"header3-Bold",resolution:null},{variant:"header5-Bold",resolution:743}],colorName:"primary",width:"100%",children:s.trim()})]}),o&&!U&&(null==b?void 0:b.name)&&(0,l.jsx)(es,{children:(0,l.jsx)(u.Typography,{variant:"header2-Bold",colorName:"primary",children:b.name})}),o&&!!$&&(0,l.jsx)(ec,{dangerouslySetInnerHTML:{__html:$}}),!!h.length&&(0,l.jsxs)(eR,{children:[(0,l.jsx)(eA,{$hasMoreVideo:h.length>1,$openMode:m,children:D&&(0,l.jsx)(et._,{link:D,uuid:(null==v?void 0:v.uuid)||(null==b?void 0:b.uuid)||"",timing:R,videoIsCompleted:null==v?void 0:v.is_completed,updateCompletedVideo:x})}),g.length>1&&(0,l.jsx)(eq,{$openMode:m,children:g.map((e,t)=>{var n;return(0,l.jsx)(eE,{idx:t,name:null===(n=r.find(t=>{var n;return(null===(n=t.video)||void 0===n?void 0:n.file_k)===e.file_k}))||void 0===n?void 0:n.name,video:e,selectedVideo:v,changeSelectedVideo:F},e.uuid||t)})})]}),!o&&!!L.length&&(0,l.jsx)(u.Bubbles,{onChange:e=>O(e),style:{marginBottom:"16px",padding:"4px",marginTop:"24px"},selectedValue:T,options:L}),o&&M&&(0,l.jsx)(u.Bubbles,{onChange:e=>P(e),style:{marginBottom:"16px",padding:"4px",marginTop:"24px"},selectedValue:E,options:N}),!o&&"description"===T&&I&&(0,l.jsx)(eu,{dangerouslySetInnerHTML:{__html:_}}),!o&&"files"===T&&Z,!o&&"timing"===T&&z,o&&M&&(0,l.jsxs)(l.Fragment,{children:["description"===E&&I&&(0,l.jsx)(eu,{$isAnalysis:!0,dangerouslySetInnerHTML:{__html:_}}),"timing"===E&&z,"files"===E&&Z]}),o&&!M&&(0,l.jsxs)(l.Fragment,{children:[I&&(0,l.jsx)(eu,{$isAnalysis:!0,dangerouslySetInnerHTML:{__html:_}}),z,Z]}),o&&V()]}),!o&&V()]})},eD=e=>{let{list:t,isAnalysis:n,lessonNumber:i,lessonTitle:r,lessonInfoHtml:o}=e,a=null==o?void 0:o.trim(),s=(0,c.useMemo)(()=>t.filter(e=>{var t,n,i,r;return!!(null===(t=e.video)||void 0===t?void 0:t.file_k)||!!(null===(n=e.video)||void 0===n?void 0:n.file)||!!(null===(i=e.info)||void 0===i?void 0:i.trim())||!!(null===(r=e.materials)||void 0===r?void 0:r.length)}),[t]),d=(0,c.useMemo)(()=>s.filter(e=>{var t,n;return!!(null===(t=e.video)||void 0===t?void 0:t.file_k)||!!(null===(n=e.video)||void 0===n?void 0:n.file)}).length,[s]),p=null!=i||!!(null==r?void 0:r.trim()),m=(0,c.useMemo)(()=>t.flatMap(e=>e.materials),[t]),f=d>0,h=n&&(p||!!a||s.length>0);return f||h?(0,l.jsxs)(eo,{$isAnalysis:n,children:[!n&&f&&(0,l.jsx)(eg,{children:(0,l.jsxs)(u.Typography,{variant:"header2-Bold",colorName:"primary",children:[(0,l.jsx)(u.Typography,{variant:"header2-Bold",colorName:"accent",tag:"span",children:"Видео"})," ",d]})}),(0,l.jsx)("div",{children:(0,l.jsx)(eB,{lessonParts:s,isAnalysis:n,lessonNumber:i,lessonTitle:r,lessonInfoHtml:o,lessonMaterials:m})})]}):null},eF=e=>{var t;
1let{lessonDetails:n,lessonNumber:i,lessonTitle:r}=e;return(0,l.jsx)(eD,{list:n.lesson_parts,isAnalysis:!0,lessonNumber:i,lessonTitle:r,lessonInfoHtml:(null===(t=n.info)||void 0===t?void 0:t.trim())?n.info:void 0})};var eU=n(35869);x.default.div.withConfig({componentId:"sc-901c6343-0"})(["display:flex;align-items:flex-start;gap:20px;"]),x.default.div.withConfig({componentId:"sc-901c6343-1"})(["max-width:804px;width:100%;@media (max-width:900px){max-width:unset;}"]),x.default.div.withConfig({componentId:"sc-901c6343-2"})(["width:100%;display:grid;place-items:center;padding-top:100px;max-width:804px;@media (max-width:900px){max-width:unset;}"]),x.default.div.withConfig({componentId:"sc-901c6343-3"})(["margin-top:24px;padding:16px 16px 16px 20px;border-radius:12px;color:",";background:",";p{color:",";}"],e=>{let{theme:t}=e;return t.text.primary},e=>{let{theme:t}=e;return t.background.content},e=>{let{theme:t}=e;return t.text.primary});let e$=x.default.div.withConfig({componentId:"sc-901c6343-4"})(["margin-top:20px;display:flex;justify-content:space-between;align-items:center;button.button{background:",";}@media (max-width:600px){padding:0 16px;margin-top:16px;}"],e=>{let{theme:t}=e;return t.background.accent}),ez=x.default.div.withConfig({componentId:"sc-901c6343-5"})(["transform:rotate(180deg);"]),eZ=e=>{let{prevLessonId:t,nextLessonId:n}=e,{query:i,push:r}=(0,o.useRouter)(),a=(0,u.useMediaQuery)(u.breakpoint.down(743)),s=e=>{e&&r({pathname:m.ns.club.lessonPage,query:{educationSection:i.educationSection,courseId:i.courseId,lessonId:e}})};return(0,l.jsxs)(e$,{children:[(0,l.jsx)(u.Button,{disabled:!t,onClick:()=>s(t),iconLeft:(0,l.jsx)(ez,{children:(0,l.jsx)(eU.Z,{})}),text:a?"":"Предыдущий"}),(0,l.jsx)(u.Button,{disabled:!n,onClick:()=>s(n),iconRight:(0,l.jsx)(eU.Z,{}),text:a?"":"Следующий"})]})},eV=(0,x.default)(u.SideModal).withConfig({componentId:"sc-98b2afd2-0"})(["& .sideModal-content{max-width:684px;width:100%;background:",";padding:24px;}& .sideModal-contentInside{height:auto;}& .sideModal-header{display:none;}@media (max-width:1279px) and (min-width:743px){& .sideModal-content{max-width:min(684px,calc(100vw - 60px));}}@media (max-width:743px){& .sideModal-content{max-width:100%;padding:16px 5px 16px 16px;}}"],e=>{let{theme:t}=e;return t.background.content}),eH=e=>{let{isOpen:t,onClose:n,courseId:i,lessonId:r,courseModulesProgress:o,courseModules:a=[],courseListTiming:s}=e;return o?(0,l.jsx)(eV,{isOpen:t,title:"",onClose:n,children:(0,l.jsx)(V,{isAnalysis:!0,variant:"modal",courseId:i,lessonId:r,courseModulesProgress:o,courseModules:a,courseListTiming:s,onLessonNavigate:n})}):null},eK=x.default.div.withConfig({componentId:"sc-e9475ee4-0"})(["display:flex;align-items:flex-start;gap:24px;margin-top:20px;@media (max-width:743px){margin-top:16px;}"]),eQ=x.default.div.withConfig({componentId:"sc-e9475ee4-1"})(["max-width:804px;width:100%;@media (max-width:1279px){max-width:unset;}"]),eG=x.default.div.withConfig({componentId:"sc-e9475ee4-2"})(["display:flex;align-items:center;gap:10px;@media (max-width:1279px){justify-content:space-between;align-self:stretch;button{svg{path{fill:none;}}:hover{svg{path{fill:none;}}}}}@media (max-width:743px){padding:0 16px;}"]),eW=x.default.div.withConfig({componentId:"sc-e9475ee4-3"})(["display:flex;justify-content:center;align-items:center;gap:2px;cursor:pointer;svg{path{fill:",";}}"],e=>{let{theme:t}=e;return t.icons.fourth}),eJ=x.default.div.withConfig({componentId:"sc-e9475ee4-4"})(["width:100%;display:grid;place-items:center;padding-top:100px;max-width:804px;@media (max-width:900px){max-width:unset;}"]);x.default.div.withConfig({componentId:"sc-e9475ee4-5"})(["margin-top:24px;padding:16px 16px 16px 20px;border-radius:12px;color:",";background:",";p{color:",";}"],e=>{let{theme:t}=e;return t.text.primary},e=>{let{theme:t}=e;return t.background.content},e=>{let{theme:t}=e;return t.text.primary}),x.default.div.withConfig({componentId:"sc-e9475ee4-6"})(["margin-top:24px;display:flex;justify-content:space-between;align-items:center;button.button{background:",";}@media (max-width:600px){padding:0 16px;}"],e=>{let{theme:t}=e;return t.background.accent}),x.default.div.withConfig({componentId:"sc-e9475ee4-7"})(["transform:rotate(180deg);"]);let eY=e=>{let{courseId:t,lessonId:n,courseModulesProgress:i,courseModules:r=[],courseListTiming:o}=e;return i?(0,l.jsx)(V,{isAnalysis:!0,courseId:t,lessonId:n,courseModulesProgress:i,courseModules:r,courseListTiming:o}):null},eX=()=>{var e,t;let{t:n}=(0,d.$G)("club"),{query:i,push:r}=(0,o.useRouter)(),[a,p]=(0,c.useState)(!1),f=(0,c.useMemo)(()=>i.courseId,[i.courseId]),h=(0,c.useMemo)(()=>i.lessonId,[i.lessonId]),g=i.educationSection,{loading:x,lessonDetail
1s:v,lessonHeadInfo:w,courseModulesProgress:y,courseModules:b,courseListTiming:_}=Y(h,f,(0,c.useMemo)(()=>{var e;let t=i.educationSection;return"string"==typeof t?t:Array.isArray(t)&&null!==(e=t[0])&&void 0!==e?e:""},[i.educationSection])),{hasAccess:j,userLoaded:k}=(0,H.eS)();(0,c.useLayoutEffect)(()=>{!j&&k&&window.location.replace(s.KN)},[j,k]);let I=(0,u.useMediaQuery)(u.breakpoint.down(1279));(0,c.useEffect)(()=>{I||p(!1)},[I]);let C=null==v?void 0:null===(e=v.early_lesson)||void 0===e?void 0:e.unique_id,S=null==v?void 0:null===(t=v.next_lesson)||void 0===t?void 0:t.unique_id,M=(0,c.useMemo)(()=>{var e;let t=null==y?void 0:y.modules.find(e=>e.lessons.some(e=>e.lesson_uuid===h)),n=null!==(e=null==t?void 0:t.lessons.findIndex(e=>e.lesson_uuid===h))&&void 0!==e?e:-1;return n>=0?n+1:void 0},[null==y?void 0:y.modules,h]),L=(0,c.useMemo)(()=>{var e,t;return(null==w?void 0:null===(e=w.lesson_name)||void 0===e?void 0:e.trim())||(null==v?void 0:null===(t=v.lesson_name)||void 0===t?void 0:t.trim())||void 0},[null==w?void 0:w.lesson_name,null==v?void 0:v.lesson_name]);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(eG,{children:[(0,l.jsxs)(eW,{onClick:()=>{r({pathname:m.ns.club.coursePage,query:{courseId:f,educationSection:g}})},children:[(0,l.jsx)(K.Z,{}),(0,l.jsx)(u.Typography,{variant:"text-Medium",colorName:"secondary",children:"Назад"})]}),I&&y?(0,l.jsx)(u.Button,{text:n("films_books_lesson.navigation"),iconLeft:(0,l.jsx)(W,{}),size:"S",onClick:()=>p(!0)}):null]}),(0,l.jsxs)(eK,{children:[(0,l.jsx)(eQ,{children:x===m.y2.SUCCESS&&j?v?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(eF,{lessonDetails:v,lessonNumber:M,lessonTitle:L}),(0,l.jsx)(eZ,{prevLessonId:C,nextLessonId:S})]}):null:(0,l.jsx)(eJ,{children:(0,l.jsx)(u.Spinner,{})})}),!I&&(0,l.jsx)(eY,{courseId:f,lessonId:h,courseModulesProgress:y,courseModules:b,courseListTiming:_}),I&&y?(0,l.jsx)(eH,{isOpen:a,onClose:()=>p(!1),courseId:f,lessonId:h,courseModulesProgress:y,courseModules:b,courseListTiming:_}):null]})]})};var e0=n(95294);let e1={[s.pC.movie]:{title:"Экспертный онбординг по фильму о финансах - Клуб | PRO.FINANSY",description:"Пройдите онбординг от ведущего эксперта клуба по фильму о финансах. Получите ценные знания и навыки, необходимые для эффективного управления финансами."},[s.pC.education]:{title:"Экспертный онбординг по финансам - Клуб | PRO.FINANSY",description:"Пройдите онбординг от ведущего эксперта клуба по финансовой грамотности. Получите ценные знания и навыки, необходимые для эффективного управления финансами."},[s.pC.reading]:{title:"Экспертный онбординг по книге о финансах - Клуб | PRO.FINANSY",description:"Пройдите онбординг от ведущего эксперта клуба по книге о финансах. Получите ценные знания и навыки, необходимые для эффективного управления финансами."}};var e5=!0;function e6(){let{query:e}=(0,o.useRouter)(),{title:t,description:n}=e1[e.educationSection];return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(e0.j,{title:t,description:n}),(0,l.jsx)(eX,{})]})}e6.getLayout=function(e){return(0,l.jsx)(a.xt,{children:e})}},94474:function(e,t,n){"use strict";n.d(t,{_:function(){return c}});var i=n(85893),r=n(7595),l=n(42377),o=n(67294),a=n(81989),s=n(54335);let d=s.default.div.withConfig({componentId:"sc-6e8604b0-0"})(["width:100%;position:relative;padding-bottom:56.25%;height:0;overflow:hidden;border-radius:16px;& iframe{position:absolute;top:0;left:0;width:100%;height:100%;border:0;}"]),u=s.default.div.withConfig({componentId:"sc-6e8604b0-1"})(["position:absolute;top:0;right:0;background-color:rgba(128,128,128,0.6);display:flex;align-items:center;padding:8px 24px;border-radius:0 16px 0 16px;font-size:12px;z-index:1000;pointer-events:none;"]),c=e=>{let{timing:t,link:n,uuid:s,videoIsCompleted:c=!1,updateCompletedVideo:p}=e,[m,f]=(0,o.useState)(!1),[h,g]=(0,o.useState)(!1),[x,v]=(0,o.useState)(!1),[w,y]=(0,o.useState)(!1),b=(0,o.useRef)(null),_=(0,o.useRef)(0),[j]=(0,a.wJ)();(0,o.useEffect)(()=>
1{if(t&&m){var e;null===(e=b.current)||void 0===e||e.seekTo(t)}},[t]),(0,o.useEffect)(()=>{requestAnimationFrame(()=>{f(!0)})},[]),(0,o.useEffect)(()=>{v(c),y(!0)},[c]),(0,o.useEffect)(()=>{let e=null;return s&&h&&(e=setInterval(()=>{j({id:s,payload:{time_watched:_.current,is_completed:x}})},1e4)),()=>{e&&clearInterval(e)}},[s,h,x]);let k=async e=>{let{duration:n}=e;if(!t||!b.current)return;let i=n-t;if(t&&i>11){var r;await b.current.pause(),await (null===(r=b.current)||void 0===r?void 0:r.seekTo(t)),await b.current.play()}},I=(0,o.useMemo)(()=>{if(n){let e=n.split("/");return e[e.length-1]}return""},[n]);return m?(0,i.jsxs)(d,{children:[x&&w&&(0,i.jsx)(u,{children:(0,i.jsx)(l.Typography,{variant:"text-Medium",tag:"span",colorName:"contrastThemed",children:"Просмотрено"})}),(0,i.jsx)(r.Z,{ref:b,videoId:I,onTimeUpdate:e=>{let{currentTime:t}=e;_.current=t},onPlay:()=>{y(!1),g(!0)},onPause:()=>{g(!1)},onEnded:()=>{v(!0),y(!0),p&&p(s),j({id:s,payload:{time_watched:_.current,is_completed:!0}})},onReady:k,localStorage:!1})]}):null}},81989:function(e,t,n){"use strict";n.d(t,{AQ:function(){return h},Gh:function(){return x},HK:function(){return g},L1:function(){return u},Qw:function(){return v},U6:function(){return w},__:function(){return p},bw:function(){return c},nJ:function(){return d},sI:function(){return m},v3:function(){return y},wJ:function(){return f}});var i=n(82003),r=n(34265),l=n(84898),o=n(29393);n(54046);let a=l.M.injectEndpoints({endpoints:e=>({getStudentCourses:e.query({query:()=>({url:"/student/courses",baseURL:i.e.lmsApi})}),getCoursePaywall:e.query({query:e=>({url:e.uuid_course?"/student/paywall/".concat(e.uuid_course):"/student/paywall",baseURL:i.e.lmsApi,params:{partition:e.partition}}),transformResponse:e=>{let{data:t}=e;return t}}),getTournamentDates:e.query({query:e=>{let{uuid_course:t}=e;return{url:"/student/tournament/".concat(t),baseURL:i.e.lmsApi}},transformResponse:e=>{let{data:t}=e;return t}}),getCheckLists:e.query({query:e=>{let{courseUuid:t,forResident:n,tariffId:l}=e;return{url:"/student/checks/".concat(t),baseURL:i.e.lmsApi,params:(0,r.DD)({for_resident:n,tariff_id:l})}},transformResponse:e=>{let{data:t}=e;return t},providesTags:(e,t,n)=>{let{courseUuid:i}=n;return[{type:o.Vh,id:i}]}}),setCheckList:e.mutation({query:e=>{let{uuid_check:t,is_set:n}=e;return{url:"/student/check/".concat(t,"/set?is_set=").concat(n),baseURL:i.e.lmsApi,method:"POST"}},invalidatesTags:(e,t,n)=>{let{courseUuid:i}=n;return[{type:o.Vh,id:i}]}}),saveProgress:e.mutation({query:e=>{let{id:t,payload:n}=e;return{url:"student/video/".concat(t,"/progress"),baseURL:i.e.lmsApi,method:"POST",data:n}}}),getLessonChecklist:e.query({query:e=>({url:"/student/check/".concat(e.lessonId),baseURL:i.e.lmsApi}),transformResponse:e=>{let{data:t}=e;return t}}),getLessonChecklistProgress:e.query({query:e=>({url:"/student/check/".concat(e.lessonId,"/progress"),baseURL:i.e.lmsApi}),transformResponse:e=>{let{data:t}=e;return t}}),setLessonCheck:e.mutation({query:e=>{let{checkId:t,status:n}=e;return{url:"/student/check/".concat(t,"/set?is_set=").concat(n),baseURL:i.e.lmsApi,method:"POST"}},async onQueryStarted(e,t){let{checkId:n,status:i,lessonId:r}=e,{dispatch:l,queryFulfilled:o}=t;try{await o,l(a.util.updateQueryData("getLessonChecklist",{lessonId:r},e=>{let t=e.find(e=>e.check_uuid===n);t&&(t.is_checked=i)})),l(a.util.updateQueryData("getLessonChecklistProgress",{lessonId:r},e=>{e&&(e.checked_count=i?(e.checked_count||0)+1:Math.max((e.checked_count||1)-1,0))}))}catch(e){throw Error(e)}}}),getCourseTimeline:e.query({query:e=>{let{courseUuid:t,currentDate:n,tariffId:l}=e;return{url:"/student/time_line/".concat(t),baseURL:i.e.lmsApi,params:(0,r.DD)({time:n,tariff_id:l})}},transformResponse:e=>{let{data:t}=e;return t}}),getEventCategories:e.query({query:()=>({url:"/student/event_categories",baseURL:i.e.lmsApi}),transformResponse:e=>{let{data:t}=e;return t}}),getCourseExpert:e.query({query:e=>{let{courseUuid:t,tariffId:n}=e;return{url:"student/course/".concat(t,"/expert"),baseURL:i.e.lmsApi,params:(0,r.DD)({tariff_id:n})}},transformResponse:e=>{let{data:t}=e;return t}})})}),{useGetStudentCoursesQuery:s,useLazyGetStudentCoursesQuery:d,useGetCoursePaywallQuery:u,useGetTournamentDatesQuery:c,useGetCheckListsQuery:p,use
1SetCheckListMutation:m,useSaveProgressMutation:f,useGetLessonChecklistQuery:h,useGetLessonChecklistProgressQuery:g,useSetLessonCheckMutation:x,useGetCourseTimelineQuery:v,useGetEventCategoriesQuery:w,useGetCourseExpertQuery:y}=a},54046:function(e,t,n){"use strict";n.d(t,{MT:function(){return d},H7:function(){return a},Ui:function(){return s}});var i=n(82003),r=n(34265),l=n(84898),o=n(29393);let{useGetLessonQuestionsQuery:a,useUploadLessonQuestionFileMutation:s,useCreateLessonQuestionMutation:d}=l.M.injectEndpoints({endpoints:e=>({getLessonQuestions:e.query({query:e=>{let{courseUuid:t,tariffId:n}=e;return{url:"student/course/".concat(t,"/lesson-questions"),baseURL:i.e.lmsApi,params:(0,r.DD)({tariff_id:n})}},transformResponse:e=>{let{data:t}=e;return t},providesTags:(e,t,n)=>{let{courseUuid:i}=n;return[{type:o.af,id:i}]}}),uploadLessonQuestionFile:e.mutation({query:e=>{let{lessonUuid:t,courseUuid:n,tariffId:l,file:o}=e,a=new FormData;return a.append("file",o),{url:"/student/lesson/".concat(t,"/question/file"),baseURL:i.e.lmsApi,method:"POST",data:a,params:(0,r.DD)({uuid_course:n,tariff_id:l})}}}),createLessonQuestion:e.mutation({query:e=>{let{lessonUuid:t,courseUuid:n,tariffId:l,text:o}=e;return{url:"/student/lesson/".concat(t,"/question"),baseURL:i.e.lmsApi,method:"POST",data:{text:o},params:(0,r.DD)({uuid_course:n,tariff_id:l})}},invalidatesTags:(e,t,n)=>{let{courseUuid:i}=n;return[{type:o.af,id:i}]}})})})},2665:function(e,t,n){"use strict";n.d(t,{i:function(){return o}});var i=n(67294),r=n(41931),l=n(34265);let o=e=>{let[t,n]=(0,i.useState)(e||[]),[o]=(0,r.yy)();return(0,i.useEffect)(()=>{(null==e?void 0:e.length)&&(async()=>{try{let t=await Promise.all(e.map(async e=>{if(e.file_k){var t,n,i,r,l;let a=e.file_k.split("/").pop();if(!a)return{previewLink:"",timingsK:null};let{data:s}=await o({videoId:a});return{previewLink:(null==s?void 0:null===(n=s.data)||void 0===n?void 0:null===(t=n.poster)||void 0===t?void 0:t.original)||"",timingsK:(null===(r=s.data)||void 0===r?void 0:null===(i=r.chapters.items)||void 0===i?void 0:i.length)?null===(l=s.data)||void 0===l?void 0:l.chapters.items.map(e=>({time:String(e.time),name:e.title})):null}}return e.image?{previewLink:encodeURI(e.image),timingsK:null}:{previewLink:"",timingsK:null}}));n(e.map((e,n)=>({...e,previewLink:t[n].previewLink,timingsK:t[n].timingsK})))}catch(e){(0,l.Mb)(e,"useGetVideosWithDetails: fetchDetails")}})()},[e]),{videosWithDetails:t,updateCompletedVideo:e=>{n(t.map(t=>t.uuid===e?{...t,is_completed:!0}:t))}}}},10485:function(e,t,n){"use strict";n.d(t,{_:function(){return d},s:function(){return s}});var i=n(29579),r=n(67294),l=n(87594);let o=e=>{if(!e.includes(":")){var t,n,r;let l=(0,i.Z)({start:0,end:Number(e)});return"".concat(String(null!==(t=l.hours)&&void 0!==t?t:0).padStart(2,"0"),":").concat(String(null!==(n=l.minutes)&&void 0!==n?n:0).padStart(2,"0"),":").concat(String(null!==(r=l.seconds)&&void 0!==r?r:0).padStart(2,"0"))}return e.includes(":")?e:(0,l.E)(e)},a=e=>Math.floor(e/1e3),s=e=>{let{videoKineskope:t}=e,[n,i]=(0,r.useState)(null);return{timing:n,setTiming:i,getTime:o,handleTimingClick:e=>{if(t){if(e.includes(":")){let[t,n,r]=e.split(":").map(Number);i(3600*t+60*n+r)}else i(a(+e))}}}},d=e=>{let{videoKineskope:t}=e,[n,i]=(0,r.useState)("");return{timing:n,setTiming:i,getTime:o,handleTimingClick:e=>{if(t){if(e.includes(":")){let[t,n,r]=e.split(":").map(Number);i("?t=".concat(3600*t+60*n+r))}else i("?t=".concat(a(+e)))}else i("#t=".concat((0,l.E)(e)))}}}},55945:function(e,t,n){"use strict";n.d(t,{h:function(){return i}});let i=e=>{if("number"!=typeof e)return;let t=+(e/1e3).toFixed(2),n=+(e/1e6).toFixed(2);return t>1e3?n+" МБ":t+" КБ"}},87594:function(e,t,n){"use strict";n.d(t,{E:function(){return i}});let i=e=>{let[t,n,i]=e.split(":");return(t?"".concat(t,"h"):"")+(n?"".concat(n,"m"):"")+(i?"".concat(i,"s"):"")}}},function(e){e.O(0,[9382,6310,7536,9045,2755,7595,815,4119,3817,2647,3988,5706,2756,8745,2888,9774,179],function(){return e(e.s=67145)}),_N_E=e.O()}]);

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.