PageSourceSearch

https://ijs.to/_next/static/chunks/pages/app/[host]/author/course-requests-3ba4409129cdad77.js

js ijs.to collected 2026-10-04 14:58:35 UTC 8,275 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[21700,46066],{68702:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/app/[host]/author/course-requests",function(){return r(56149)}])},81976:function(e,t,r){"use strict";r.d(t,{F:function(){return useCurrentAuthor}});var s=r(82540),n=r(87792);let useCurrentAuthor=()=>{let{data:e,loading:t}=(0,s.wt$)(),r=null==e?void 0:e.authenticatedItem;if(t)return{loading:!0};if(!r)return{loading:!1};let{id:a}=r,l=r.id,{firstName:i,lastName:u}=r,o=!!(null==r?void 0:r.id),c=i&&u&&"".concat(i," ").concat(u);return{...r,fullName:c,id:a,isLoggedIn:o,signOut:n.w7,userId:l}}},40735:function(e,t,r){"use strict";r.d(t,{C:function(){return Circle}});var s=r(21262),n=r(11527),a=r(16203),l=r(82472),i=r(68566);function _templateObject(){let e=(0,s._)(["\n  font-size: 10px;\n  height: ",";\n  min-width: ",";\n"]);return _templateObject=function(){return e},e}let u=a.ZP.div.withConfig({componentId:"sc-5dfe1925-0"})(_templateObject(),e=>{let{size:t}=e;return t},e=>{let{size:t}=e;return t}),o={xs:"14px",sm:"16px",md:"20px",lg:"24px",xl:"32px"},Circle=e=>{let{children:t,className:r,size:s="sm",variant:a}=e,c=o[s]||"16px";return(0,n.jsx)(l.default,{className:(0,i.A)("primary"===a&&"bg-primary","warn"===a&&"bg-primary","warning"===a&&"bg-warning","success"===a&&"bg-success","error"===a&&"bg-error","info"===a&&"bg-info","neutral"===a&&"bg-neutral","inline-block rounded-full",r),children:(0,n.jsx)(u,{className:"flex items-center justify-center text-surface",size:c,children:t})})}},46066:function(e,t,r){"use strict";r.r(t);var s=r(21262),n=r(11527),a=r(16203),l=r(23352);function _templateObject(){let e=(0,s._)(["\n  background-color: rgba(var(--color-primary), 0.9);\n  border-radius: 4px;\n  color: rgb(var(--color-surface));\n  font-size: 0.75em;\n  padding: 1rem;\n  p {\n    font-weight: 100;\n    margin: 0;\n  }\n  strong {\n    margin-right: 1rem;\n  }\n"]);return _templateObject=function(){return e},e}let i=a.ZP.div.withConfig({componentId:"sc-c8e79f46-0"})(_templateObject());t.default=e=>{let{errorMessage:t,error:r,style:s,noReport:a}=e;return t||r?(0,n.jsxs)(i,{style:s,children:[t&&t,r&&(0,l.S3)(r,a)]}):null}},56149:function(e,t,r){"use strict";r.r(t),r.d(t,{AuthorRequestsPage:function(){return AuthorRequestsPage},default:function(){return L}});var s=r(11527),n=r(71334),a=r(57708),l=r(16046),i=r(81976),u=r(34453),o=r(44940),c=r(46066),d=r(83505),f=r(82472),h=r(84930),x=r(21519),m=r.n(x),g=r(82540),v=r(21262),p=r(16203),j=r(47881),b=r(4763),q=r(94217),w=r(62288),R=r(40735),_=r(20882),y=r(98674),N=r(68566);function _templateObject(){let e=(0,v._)(["\n  display: flex;\n  justify-content: flex-start;\n  align-items: flex-start;\n"]);return _templateObject=function(){return e},e}let C=p.ZP.div.withConfig({componentId:"sc-c338cdfc-0"})(_templateObject()),CourseRequestDraftListItem=e=>{var t;let{draft:r}=e,n=(0,j.x)(),{courseRequest:a}=r,l=(null==a?void 0:a.title)||"Course Request Draft";return(0,s.jsxs)("div",{className:"mb-4 flex flex-wrap items-center bg-surface p-3",children:[(0,s.jsxs)("div",{className:"flex flex-1 items-center space-x-3",children:[(0,s.jsx)(f.default,{className:"mr-0.5 w-16 min-w-[64px]",children:(0,s.jsx)(q.Z,{alt:l,className:(0,N.A)("avatar","h-auto w-full rounded-md"),src:(null===(t=a.photo)||void 0===t?void 0:t.src)||a.imageSrc||y.A4,width:"16",height:"9",sizes:"100vw"})}),(0,s.jsx)(R.C,{variant:"neutral"}),(0,s.jsx)(_.Z,{href:"".concat(h.yu,"/").concat(r.id),target:"_blank",children:(0,s.jsx)(w.default,{variant:"h5",gradient:null==a?void 0:a.title,children:l})})]}),(0,s.jsxs)(C,{children:[(0,s.jsx)(b.default,{href:"".concat(h.yu,"/").concat(r.id),target:"_blank",icon:"edit",shape:"square",variant:"ghost"}),(null==n?void 0:n.isAdmin)&&(0,s.jsx)(b.default,{href:"/admin/courseRequests/".concat(a.id),target:"_blank",icon:"user-crown",shape:"square",variant:"ghost"})]})]})},A=m()(()=>Promise.resolve().then(r.bind(r,46066)),{loadableGenerated:{webpack:()=>[46066]},ssr:!1}),k=m()(()=>r.e(41260).then(r.bind(r,41260)).then(e=>e.NoResults),{loadableGenerated:{webpack:()=>[41260]},ssr:!1}),CourseRequestDraftsList=()=>{var e,t;let r=(0,l.useRouter)(),{q:n}=r.query,{data:a,loading:i,error:u}=(0,g.y7P)({variables:{searchQuery:n,take:8}}),o=null!==(t=null==a?void 0:null===(e=a.authenticatedItem)||void 0===e?void 0:e.courseRequestDrafts)&&void 0!==t?t:[],c=!(null==o?void 0:o.length);return(0,s.jsxs)(s.Fragment,{children:[u&&(0,s.jsx)(A,{error:u}),i&&(0,s.jsx)(f.default,{pt:3,children:(0,s.jsx)(d.Z,{count:8,height:62,radius:16})}),!u&&c&&(0,s.jsx)(k,{title:"All clear!",message:"No course request drafts."}),Array.isArray(o)&&o.map(e=>(0,s.jsx)(CourseRequestDraftListItem,{draft:e},e.id))]})},CourseRequestsListItem=e=>{var t;let{courseRequest:r}=e,n=(0,j.x)(),a=(null==r?void 0:r.title)||"Course Request Draft";return(0,s.jsxs)("div",{className:"mb-4 flex flex-wrap items-center bg-surface p-3",children:[(0,s.jsxs)("div",{className:"flex flex-1 items-center space-x-3",children:[(0,s.jsx)(f.default,{className:"mr-3 h-auto w-20 overflow-hidden rounded md:m-2",children:(0,s.jsx)(q.Z,{className:"avatar",src:(null===(t=r.photo)||void 0===t?void 0:t.src)||r.imageSrc||y.A4,alt:a,layout:"responsive",width:"16",height:"9"})}
1),(0,s.jsx)(R.C,{variant:"neutral"}),(0,s.jsx)(_.Z,{href:"".concat(h.xH,"/").concat(r.id),children:(0,s.jsx)(w.default,{variant:"h5",gradient:null==r?void 0:r.title,children:a})})]}),(0,s.jsxs)("div",{"data-testid":"list-item-buttons",className:"flex items-start justify-start",children:[(0,s.jsx)(b.default,{href:"".concat(h.LO,"/").concat(r.slug),target:"_blank",icon:"preview",shape:"square",variant:"ghost"}),(null==n?void 0:n.isAdmin)&&(0,s.jsx)(b.default,{href:"/author/courseRequests/".concat(r.id),target:"_blank",icon:"user-crown",shape:"square",variant:"ghost"})]})]})},P=m()(()=>r.e(41260).then(r.bind(r,41260)).then(e=>e.NoResults),{loadableGenerated:{webpack:()=>[41260]},ssr:!1}),CourseRequestsList=()=>{var e,t;let r=(0,l.useRouter)(),{q:n}=r.query,a=(0,i.F)(),{data:u,loading:o,error:x}=(0,g.Kgb)({variables:{searchQuery:n,take:8}}),m=null!==(t=null==u?void 0:null===(e=u.authenticatedItem)||void 0===e?void 0:e.courseRequests)&&void 0!==t?t:[],v=!(null==m?void 0:m.length),p=o||a.loading;return(0,s.jsxs)(s.Fragment,{children:[x&&(0,s.jsx)(c.default,{error:x}),p&&(0,s.jsx)(f.default,{pt:3,children:(0,s.jsx)(d.Z,{count:8,height:62,radius:16})}),!p&&v&&(0,s.jsx)(P,{title:"You haven't submitted any requests.",message:"Looking to learn something specific? Submit a course request.",href:h.rA}),(0,s.jsx)(f.default,{className:"flex flex-col gap-4",children:Array.isArray(m)&&(null==m?void 0:m.map(e=>(0,s.jsx)(CourseRequestsListItem,{courseRequest:e},e.id)))})]})},O=[{href:h.rA,id:5,label:(0,s.jsxs)(f.default,{className:"flex items-center",children:[(0,s.jsx)(u.default,{icon:"edit",className:"mr-3 h-5 w-5 fill-current"}),(0,s.jsx)("span",{className:"-mb-1",children:"New Request"})]})},{id:0,label:"All Requests",value:"all"},{id:1,label:"Drafts",value:"drafts"}],D="/author/course-requests",CourseRequests=()=>{let e=(0,l.useRouter)(),{status:t="all"}=e.query,r=(0,i.F)(),n=r.loading,a=r.error;return a?(0,s.jsx)(c.default,{error:a}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"max-w-full overflow-hidden rounded-3xl border-2 border-primary/10 bg-surface p-1",children:(0,s.jsx)(o.o,{onChange:t=>t.href?e.push(t.href):t.value?e.push("".concat(D,"?status=").concat(t.value),void 0,{scroll:!1}):e.push(D),options:O,selected:O.find(e=>e.value===t)||O[0]})}),n&&(0,s.jsx)(f.default,{pt:3,children:(0,s.jsx)(d.Z,{count:8,height:62,radius:16})}),!n&&"drafts"!==t&&(0,s.jsx)(CourseRequestsList,{}),!n&&"drafts"===t&&(0,s.jsx)(CourseRequestDraftsList,{})]})};var I=r(64471);let AuthorRequestsPage=()=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(I.DefaultPWATheme,{}),(0,s.jsx)(n.PB,{title:"Author Requests Dashboard \xb7 iJS",description:"Manage your courses, articles and track progress of your content..",nofollow:!0,noindex:!0}),(0,s.jsx)(a.N,{contentType:"requests",eyebrow:"Your",title:"Requests",children:(0,s.jsx)(CourseRequests,{})})]});AuthorRequestsPage.hideFooter=!0;var L=AuthorRequestsPage}},function(e){e.O(0,[98130,49774,92888,40179],function(){return e(e.s=68702)}),_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.