PageSourceSearch

https://www.filimo.school/_next/static/chunks/pages/course/[id]/chapter/[cid]/question-22c400fd0b0e34b4.js

js filimo.school collected 2026-10-08 21:01:28 UTC 9,105 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="ac85eb74-c449-4231-8486-0a1921f0543b",e._sentryDebugIdIdentifier="sentry-dbid-ac85eb74-c449-4231-8486-0a1921f0543b")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8038],{32454:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/course/[id]/chapter/[cid]/question",function(){return r(5611)}])},63605:function(e,t,r){"use strict";var a=r(11527),n=r(6932),s=r.n(n),l=r(24349),i=r(96672),o=r(57262),c=r(37032);t.Z=e=>{let{link:t,className:r,...n}=e,d=(0,l.useRouter)();return(0,a.jsx)("div",{className:(0,o.cn)("relative mx-auto block max-w-[62.5rem] border-b-0 [&>div]:flex [&>div]:justify-start px-24 pt-15 pb-15 w-full","max-xs:h-[4.0625rem] xs:hidden",r),...n,children:(0,a.jsx)("div",{children:(0,a.jsx)(s(),{href:null!=t?t:"#",onClick:()=>{window.history.length>2&&d.back()},className:"relative -mr-12 flex h-36 w-36 items-center justify-center rounded-full [&_svg]:!fill-[rgb(var(--color-outline-low))] [&_svg]:!h-16 [&_svg]:!w-16 xs:[&_svg]:!h-[1.375rem] xs:[&_svg]:!w-[1.375rem]",children:(0,a.jsx)(i.Z,{...c.Z})})})})}},25561:function(e,t,r){"use strict";r.d(t,{B:function(){return s},v:function(){return l}});var a=r(11527),n=r(57262);let s=e=>{let{size:t,className:r,children:s}=e;return(0,a.jsx)("div",{className:(0,n.cn)("mx-auto mt-[17px] flex h-[var(--tab-height)] rounded-[20px] border-2 border-[#e6e6e6]","[--tab-height:42px] xs:[--tab-height:49px]",1===t?"max-w-[260px]":2===t?"max-w-[300px]":"max-w-[360px]",r),children:s})},l=e=>{let{active:t,count:r,className:s,children:l,onClick:i}=e;return(0,a.jsx)("button",{type:"button",onClick:i,className:(0,n.cn)("relative h-full flex-grow text-center text-black sm:hover:font-bold",t&&"font-bold text-white","before:absolute before:bottom-[-2px] before:left-0 before:z-[1] before:h-[calc(var(--tab-height)_-_3px)] before:w-full\n			before:rounded-[50px] before:bg-state-error-4 before:opacity-0 before:transition-opacity before:duration-100\n			before:ease-out before:content-['']","after:absolute after:left-0 after:top-[-2px] after:z-[2] after:h-[calc(var(--tab-height)_-_3px)] after:w-full\n			after:rounded-[50px] after:bg-brand after:opacity-0 after:transition-opacity after:duration-100 after:ease-out\n			after:content-['']",t&&"before:opacity-100 after:opacity-100",1!==r&&"first:before:left-[2px] first:after:left-[2px] last:before:left-[-2px] last:after:left-[-2px]","[&>span]:relative [&>span]:z-[5] [&>span]:inline-block [&>span]:-translate-y-[2px]",s),children:l})}},69347:function(e,t,r){"use strict";var a=r(11527),n=r(6932),s=r.n(n),l=r(96672),i=r(56864),o=r(57262),c=r(37032);t.Z=e=>{let{title:t,subtitle:r,backLink:n,className:d}=e;return(0,a.jsxs)("div",{className:(0,o.cn)("relative mx-auto max-w-[940px]",d),children:[(0,a.jsx)(i.H,{gray:!0,as:"h1",className:"xs:text-center xs:text-[24px]",children:t}),r&&(0,a.jsx)(i.P,{light:!0,className:"xs:text-center xs:text-[16px]",children:r}),n?(0,a.jsx)(s(),{href:n,passHref:!0,legacyBehavior:!0,children:(0,a.jsx)("a",{className:"absolute right-0 top-1/2 hidden -translate-y-1/2 transition-transform duration-200 ease-out hover:-translate-y-1/2       hover:translate-x-[3px] xs:block xs:max-sm:top-[8px] xs:max-sm:translate-y-0 xs:max-sm:hover:translate-x-[3px]       xs:max-sm:hover:translate-y-0 [&:hover_svg]:fill-brand",children:(0,a.jsx)(l.Z,{...c.Z,className:"fill-outline-low h-[20px] transition-[fill] duration-100 ease-out"})})}):null]})}},95521:function(e,t,r){"use strict";r.d(t,{Sy:function(){return p},dy:function(){return x},Ri:function(){return f},QY:function(){return m},_r:function(){return v},zr:function(){return b},R:function(){return w},L$:function(){return h},LU:function(){return y}});var a=r(41015),n=r(34457),s=r(32712),l=r(15125),i=r(63796),o=r(53932),c=r(22492);let d=e=>{let{id:t,title:r,course:a}=e.path.chapter_enrollment.chapter,{id:n,title:s}=a,{device:l}=e.app,{id:i,user_id:o,current_grade_id:c}=e.profile.profile;return{device:l,profile_id:i,user_id:o,grade_id:c,course:{id:n,title:s},chapter:{id:t,title:r}}},u=new a.Z("rS,w!@pcvret7pd(",10,"abcdefghijklmnopqrstuvwxyz1234567890"),x=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(r,a)=>new Promise(async(u,x)=>{r((0,n.o4)(s.dM.FETCH_STEP,!0)),r({type:c.Nf,payload:null});let p=(0,i.Y)("POST",null,{chapterId:e,isQuestion:t}),f=a().path.isTeacher;try{let e=await (0,i.Z)((0,l.DW)("/api/step",f),p);if(t?r({type:c.Pu,payload:e}):r({type:c.tV,payload:e}),"video"===e.type&&!f){let{device:e,...t}=d(a());(0,o.Ow)(e,t)}u(void 0)}catch(e){x(e.data)}r((0,n.o4)(s.dM.FETCH_STEP,!1))})},p=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(r,a)=>new Promise(async(x,p)=>{r((0,n.o4)(s.dM.COMPLETE_STEP,!0));let f=a(),h=f.path.isTeacher,{enrolled_chapter_id:m,id:b,type:y,v:{a:v,b:w},chapter:{id:g}}=f.path,_=(0,i.Y)("POST",null,{enrolled_chapter_id:m,stepId:b,choiceId:e,a:u.encode(v),b:u.encode(w),type:y,pageUrl:null==t?void 0:t.pageUrl}),{device:j,...k}=d(f);try{let e=await (0,i.Z)((0,l.DW)("/api/step/complete",f.path.isTeacher),_);r({type:c.Zt,payload:{...e,chapterId:g}}),e.chapter_is_finished&&(r({type:c.II,payload:null}),h||(0,o.D0)(j,k)),"question"===y&&r({type:c.XO,payload:e}),"document"!==y||h||(0,o.Lb)(j,k),"video"!==y||h||(0,o.Rc)(j,{...k,watched_time:w}),x(e)}catch(e){e.data.errors&&"answer.is.wrong"==e.data.errors.message&&(r({type:c.Zt,payload:null}),r({type:c.Qq,payload:e.data.errors})),p(e.data)}r((0,n.o4)(s.dM.COMPLETE_STEP,!1))})},f=e=>(t,r)=>new Promise(async(a,n)=>{t({type:c.Nf,payload:null});let s=(0,i.Y)("POST",null,{chapterId:e});try{let e=await (0,i.Z)((0,l.DW)("/api/step/video",r().path.isTeacher),s);t({type:c.dw,payload:e}),a(void 0)}catch(e){n(e.data)}}),h=e=>({type:c.XT,payload:e}),m=()=>({type:c.s_,payload:null}),b=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:c.iG,payload:{id:e,src:t}}},y=e=>({type:c.S4,payload:e}),v=()=>({type:c.HJ,payload:null}),w=e=>({type:c.QQ,payload:e})},5611:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSP:function(){return k},default:function(){return j}});var a=r(11527),n=r(28143),s=r(75644),l=r(78444),i=r(4198),o=r(24349),c=r(50959),d=r(39292),u=r(92916),x=r
1(63605),p=r(66959),f=r(25561),h=r(69347),m=r(13252),b=r(15125),y=()=>{let e="".concat("https://www.filimo.school","/pdf/web/viewer.html?file="),[t,r]=(0,c.useState)(e),[a,n]=(0,c.useState)(e),{question_desktop_pdf_link:s,question_mobile_pdf_link:l,answer_desktop_pdf_link:i,answer_mobile_pdf_link:o}=(0,d.v9)(e=>e.path,d.wU);return(0,c.useEffect)(()=>{window.matchMedia("(max-width: 500px)").matches?(r(e=>e+l),n(e=>e+o)):(r(e=>e+s),n(e=>e+i))},[]),{questionSrc:t,answerSrc:a}};let v=[{title:"سوال‌ها",key:"questions"},{title:"پاسخ‌ها",key:"answers"}];var w=()=>{let{has_access_semester_1:e,has_access_semester_2:t}=(0,d.v9)(e=>e.course,d.wU),r=e||t,n=(0,d.v9)(e=>e.path.title),s=(0,d.v9)(e=>e.auth.token),l=(0,d.v9)(e=>e.auth.grade_id),{questionSrc:w,answerSrc:g}=y(),[_,j]=(0,c.useState)("questions"),{query:{id:k},asPath:N}=(0,o.useRouter)(),T="text-[14px] xs:text-[18px] xs:h-[47px]";return(0,a.jsx)("div",{className:"mx-auto max-w-[1050px] xs:max-w-[940px]",children:(0,a.jsxs)("div",{className:"pb-30 w-full px-24 xs:mt-[45px]",children:[(0,a.jsx)(x.Z,{link:"/course/".concat(k),className:"!pb-0 !pl-0 !pr-0"}),(0,a.jsx)(h.Z,{title:(0,i.ZP)(n),backLink:"/course/".concat(k)}),(0,a.jsx)(f.B,{size:v.length,className:"!mb-[22px] !mt-24 xs:!mb-36 xs:!mt-[33px]",children:v.map((e,t)=>(0,a.jsx)(f.v,{active:_===e.key,onClick:()=>j(e.key),count:v.length,children:(0,a.jsx)("span",{children:e.title})},t))}),s&&r?(0,a.jsx)("iframe",{className:"w-full h-[60vh] rounded-[10px] xs:rounded-[20px] max-xxs:!-mr-24 max-xxs:!-ml-24 max-xxs:!w-screen max-xxs:!h-[60vh] max-xxs:!rounded-none",src:"questions"===_?w:g,frameBorder:"0"}):(0,a.jsx)("div",{className:"relative h-[170px] w-full overflow-hidden rounded-[20px] bg-cover bg-center bg-no-repeat xs:h-[400px]",style:{backgroundImage:"url(".concat((0,b.HQ)("/images/path/blurred.jpg"),")")},children:(0,a.jsx)("div",{className:"absolute inset-0 flex items-center justify-center bg-[#00000075] backdrop-blur-[4px] xs:backdrop-blur-[6px]",children:!r&&s?(0,a.jsx)(u.Z,{green:!0,link:(0,m.IC)(l),className:T,children:"خرید بسته"}):(0,a.jsx)(u.Z,{link:(0,p.O)({redirect:N}),className:T,children:"ورود و مشاهده"})})})]})})},g=r(24800),_=r(88932),j=()=>{let{loading:e}=(0,_.Z)(!0);return(0,a.jsx)(s.Z,{title:"مسیر آموزشی",children:(0,a.jsx)(g.E,{children:(0,a.jsxs)("div",{children:[(0,a.jsx)(n.Z,{menuActiveByRoot:!1}),e?(0,a.jsx)(l.gb,{center:!0,height:250,orange:!0,md:!0}):(0,a.jsx)(w,{})]})})})},k=!0}},function(e){e.O(0,[5556,9827,476,2017,5644,1967,2888,9774,179],function(){return e(e.s=32454)}),_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.