1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[(new e.Error).stack]=function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];if(null!=s)for(var a in s)s.hasOwnProperty(a)&&(e[a]=s[a])}return e}({},e._sentryModuleMetadata[(new e.Error).stack],{"_sentryBundlerPluginAppKey:mentortools-frontend":!0});var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="c1da943c-680f-4187-9354-2951d7318e5d",e._sentryDebugIdIdentifier="sentry-dbid-c1da943c-680f-4187-9354-2951d7318e5d")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3146],{2673:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/courses/[course_id]",function(){return s(74836)}])},10760:(e,t,s)=>{"use strict";s.d(t,{A:()=>u});var a=s(89099),r=s(23877),n=s(48790),i=s(11313),o=s(14958),l=s(34020);let d=["id","description","title","payment_type_id","is_active","image_id","is_archived","course_category.*","order","launch_date_enabled","is_content_duration_shown","total_content_duration_s","is_file_transcription_shown","modules.id","modules.title","modules.order","modules.is_published","modules.available_at","modules.short_description","modules.public_description","modules.image_id","modules.course_id","modules.lessons.id","modules.lessons.title","modules.lessons.order","modules.lessons.available_at","modules.lessons.type_id","modules.lessons.module_id","modules.lessons.submodule_id","modules.lessons.image_id","modules.submodules.id","modules.submodules.title","modules.submodules.order"],u=(e,{hasAccess:t=!0},s)=>{let u=(0,a.useRouter)(),{user:c}=(0,o.A)(),{courseId:_,moduleId:y,lessonId:p,...g}=e;return(0,l.A)({queryDataKey:i.Ay.courses.all.queryKey,queryCountKey:i.Ay.courses.count.queryKey,queryDataFn:({limit:t,offset:a,order:r})=>n.A.getAll({columns:d,limit:s?.limit||t,offset:s?.offset||a,order_by:s?.order||r,filter_by:[{attribute:"portal_id",operator:"==",value:c?.portal?.id},{attribute:"is_archived",operator:"==",value:e.isArchived}],search_by:[{attribute:"title",operator:"ilike",value:e.search}]}),queryCountFn:()=>n.A.getCount({filter_by:[{attribute:"portal_id",operator:"==",value:c?.portal?.id},{attribute:"is_archived",operator:"==",value:e.isArchived}],search_by:[{attribute:"title",operator:"ilike",value:e.search}]}),enabled:t},{initialPage:parseInt(`${u.query?.page}`)||1,initialLimit:parseInt(`${u.query?.limit}`)||Number(localStorage.getItem(r.sk))||10,initialOrder:{column:u.query?.order?`${u.query?.order}`:"order",ascending:!u.query?.ascending||!!u.query?.ascending},searchQuery:g})}},49149:(e,t,s)=>{"use strict";s.d(t,{A:()=>n});var a=s(81498),r=s(54683);let n={getAll:async({limit:e,offset:t,published:s,deleted:n,funnel_id:i,search:o,sort_by:l,sort_direction:d})=>r.A.get(a.y.newLandings,{headers:{"Content-Type":""},params:{limit:e,offset:t,published:s,deleted:n,funnel_id:i,search:o,sort_by:l,sort_direction:d}}),create:async e=>r.A.post(a.y.newLandings,{...e,editor_version:e.editor_version??2}),getCount:async e=>r.A.get(a.y.getNewLandingsCount,{headers:{"Content-Type":""},params:e}),delete:async e=>r.A.delete(a.y.newLandings+e),duplicate:async e=>r.A.post(a.y.newLandings+e+"/duplicate"),publish:async e=>r.A.post(a.y.newLandings+e+"/publish"),unpublish:async e=>r.A.post(a.y.newLandings+e+"/unpublish"),patch:async e=>r.A.patch(a.y.newLandings,e),patchOne:async(e,t)=>r.A.patch(a.y.newLandings+e,t),getOne:async e=>r.A.get(a.y.newLandings+e),updateOne:async e=>r.A.post(a.y.newLandings+e.id,e),getScriptsCategory:async()=>r.A.get(a.y.getScriptsCategory,{headers:{"Content-Type":""}}),getPlacement:async()=>r.A.get(a.y.getPlacement,{headers:{"Content-Type":""}}),parseScript:async e=>r.A.post(a.y.parseScript,{script:e}),putPortalHomepage:e=>r.A.put(a.y.portalHomepage,e),deletePortalHomepage:()=>r.A.delete(a.y.portalHomepage),getPortalHomepage:()=>r.A.get(a.y.portalHomepage)}},59634:(e,t,s)=>{"use strict";s.d(t,{F:()=>n});var a=s(81498),r=s(54683);let n={getAll:async e=>r.A.post(a.y.getLandings,e),getInfo:async e=>r.A.post(a.y.getLandingInfo,e),getCount:async()=>r.A.post(a.y.getLandingsCount),delete:async e=>r.A.post(a.y.deleteLanding,e)}},61734:(e,t,s)=>{"use strict";s.d(t,{r:()=>i});var a=s(14232),r=s(89099),n=s(60880);let i=(e,t=!1)=>{let s=(0,r.useRouter)(),[i,o]=(0,a.useState)(e),l=(0,a.useRef)(e);(0,a.useEffect)(()=>{let s=l.current,a=Object.keys(e).some(t=>e[t]!==s[t]);t&&a&&(o(e),l.current=e)},[e,t]);let d=(0,a.useCallback)((e,t,a=!1)=>{o(s=>({...s,[e]:t})),s.replace(`${s.pathname}?${(0,n.O)({...s.query,...i,[e]:t})}`,void 0,{shallow:a})},[s,i]),u=(0,a.useCallback)((e,t=!1)=>{o(t=>({...t,...e})),s.replace(`${s.pathname}?${(0,n.O)({...s.query,...i,...e})}`,void 0,{shallow:t})},[s,i]);return(0,a.useMemo)(()=>({searchQuery:i,onChangeSearchQuery:d,setParams:u}),[d,i,u])}},74836:(e,t,s)=>{"use strict";s.r(t),s.d(t,{__N_SSP:()=>w,default:()=>q});var a=s(37876),r=s(89099),n=s(74359),i=s(84933),o=s(48790),l=s(11313);let d=["id","portal_id","order","title","description","url","access_restriction","course_category.*","net","subscription","instalment","payload","landing_json","price","payment_type_id","image_id","landing_id","is_landing_active","created_at_epoch","is_active","available_at","white_label_description","permalink","is_secret","is_archived","affiliate_language_type","module_view_type_id","created_automatically","free_access_hash","payment_access_hash","course_access_type_id","number_days_access","marketplace_products.*","content_blocks.*","one_more_step_link","one_more_landing_id","one_more_step_landing_id","enable_double_optin","launch_date","launch_date_enabled","enable_user_name_optin_field","is_user_name_optin_field_required","show_course_duration","course_duration","is_displayed_in_a
1pp","is_displayed_paid_in_app","sales_page_landing_id","is_offline_downloadable","is_file_transcription_shown","is_content_duration_shown","app_course.*"];var u=s(10760),c=s(21372),_=s(61734),y=s(24459),p=s(99399),g=s(14958),m=s(80939),b=s(69348),h=s(59634),A=s(87821),f=s(49149),v=s(82867),w=!0;let q=()=>{let{currentRoleGetter:{isContentCreator:e,isTeamMember:t}}=(0,g.A)(),s=(0,r.useRouter)(),{hasCourseAccess:w}=(0,p.D)(),q=Number(s.query.course_id),C=w(v.Qi.VIEW_COURSE,v.Qi.VIEW_ANY_COURSE,q),L=w(v.Qi.EDIT_COURSE,v.Qi.EDIT_ANY_COURSE,q),{data:E,isLoading:I,isError:k}=(0,c.J)(),{data:O,isLoading:S}=(({courseId:e,hasAccess:t=!0})=>(0,n.I)({queryKey:l.Ay.courses.detail(e).queryKey,queryFn:()=>o.A.getAll({columns:d,filter_by:[{attribute:"id",operator:"==",value:e}]}),select:e=>e.data.result[0],enabled:t}))({courseId:q,hasAccess:C}),{searchQuery:N}=(0,_.r)({isArchived:"true"===s.query.isArchived,search:"",course:s.query.course?`${s.query.course}`:"",module:s.query.module?`${s.query.module}`:"",lesson:s.query.lesson?`${s.query.lesson}`:""}),P=(0,i.d7)(N,500),{data:T=[],isError:M}=(0,u.A)(P,{hasAccess:C}),{data:$,isLoading:D,isError:F}=(0,n.I)({...l.Ay.landings.allLandings,queryFn:()=>h.F.getAll({columns:["id","title","permalink"]}),select:e=>e.data.result,enabled:C}),{data:K,isLoading:R,isError:H}=(0,n.I)({...l.Ay.landings.allNewLandings,queryFn:()=>f.A.getAll({limit:99999,offset:0,published:!0}),select:e=>e.data.result,enabled:(e||t)&&C}),{data:j,isLoading:Q,isError:x}=(0,n.I)({queryKey:l.Ay.courseCategories.allCategories.queryKey,queryFn:A.A.getAll,select:e=>e.data.result.sort((e,t)=>e.position-t.position),enabled:C}),{isLoading:U}=(0,y.j)(C);return C?(0,a.jsx)(m.A,{course:O,landings:$,newLandings:K,courseCategories:j,isLoading:S||U||D||Q||I||R,notFoundError:M||F||x||k||H,courses:T,courseId:q,languages:E,hasEditCourseAccess:L,"data-sentry-element":"EditCourse","data-sentry-component":"CourseSettings","data-sentry-source-file":"index.tsx"}):(0,a.jsx)(b.default,{isTeamMember:!0})}}},e=>{e.O(0,[1289,6862,13,5236,3218,9838,3220,4854,9273,8015,6134,2674,939,636,6593,8792],()=>e(e.s=2673)),_N_E=e.O()}]); 2//# sourceMappingURL=[course_id]-cf8f54446a8a0bb5.js.map
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.