PageSourceSearch

https://dust.tt/_next/static/chunks/pages/academy-33b957943a5836b5.js

js dust.tt collected 2026-10-01 10:21:05 UTC 7,856 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9948],{91990:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/academy",function(){return n(24198)}])},5084:function(e,t,n){"use strict";n.d(t,{t:function(){return c}});var s=n(24246),r=n(56863),a=n(88590),l=n(60316);function i(e){let{page:t,isCurrent:n,buildPageUrl:a}=e;return n?(0,s.jsx)("span",{className:"flex h-7 w-7 items-center justify-center rounded-md bg-primary-100 text-xs font-medium text-primary-800",children:t}):(0,s.jsx)(r.gM,{href:a(t),className:"flex h-7 w-7 items-center justify-center rounded-md text-xs font-medium text-muted-foreground transition-colors hover:bg-gray-100 hover:text-foreground",children:t})}function c(e){let{currentPage:t,totalPages:n,rowCount:c,pageSize:o,buildPageUrl:u}=e;if(n<=1)return null;let d=Math.min(t*o,c),m=function(e,t){let n=[],s=e<t-2;n.push(1),e>3&&n.push("ellipsis-start");for(let s=Math.max(2,e-1);s<=Math.min(t-1,e+1);s++)n.includes(s)||n.push(s);return s&&n.push("ellipsis-end"),t>1&&!n.includes(t)&&n.push(t),n}(t,n),h=t>1,x=t<n;return(0,s.jsxs)("nav",{className:"flex w-full items-center justify-between","aria-label":"Pagination",children:[(0,s.jsxs)("div",{className:"flex items-center gap-1",children:[(0,s.jsx)(r.gM,{href:h?u(t-1):"#",className:"flex h-7 w-7 items-center justify-center rounded-md transition-colors ".concat(h?"text-muted-foreground hover:bg-gray-100 hover:text-foreground":"pointer-events-none text-gray-300"),"aria-disabled":!h,tabIndex:h?void 0:-1,children:(0,s.jsx)(a.Z,{className:"h-4 w-4"})}),m.map(e=>"ellipsis-start"===e||"ellipsis-end"===e?(0,s.jsx)("span",{className:"flex h-7 w-7 items-center justify-center text-xs text-muted-foreground",children:"..."},e):(0,s.jsx)(i,{page:e,isCurrent:e===t,buildPageUrl:u},e)),(0,s.jsx)(r.gM,{href:x?u(t+1):"#",className:"flex h-7 w-7 items-center justify-center rounded-md transition-colors ".concat(x?"text-muted-foreground hover:bg-gray-100 hover:text-foreground":"pointer-events-none text-gray-300"),"aria-disabled":!x,tabIndex:x?void 0:-1,children:(0,s.jsx)(l.Z,{className:"h-4 w-4"})})]}),(0,s.jsxs)("span",{className:"text-xs text-muted-foreground",children:[(t-1)*o+1,"-",d," of ",c]})]})}},24198:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return h},default:function(){return x}});var s=n(24246),r=n(88912),a=n(88570),l=n(5084),i=n(73660),c=n(5190),o=n(88038),u=n.n(o),d=n(86677),m=n(27378),h=!0;function x(e){let{courses:t,searchableItems:n,academyUser:a,locale:o,academySettings:h}=e,x=(0,d.useRouter)(),g=(0,i.nz)(),{courseProgress:f,mutateCourseProgress:p}=(0,i.N6)({disabled:!a&&!g,browserId:a?void 0:g});(0,i.G2)({academyUser:null!=a?a:null,browserId:g,mutateCourseProgress:p});let w=(0,m.useMemo)(()=>{let e=(0,c.HD)(x.query.page)?x.query.page:void 0,t=parseInt(null!=e?e:"1",10);return t>0?t:1},[x.query.page]),j=Math.max(1,Math.ceil(t.length/r.mz)),v=Math.min(w,j),y=(v-1)*r.mz,b=y+r.mz,N=t.slice(y,b);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(u(),{children:[(0,s.jsx)("title",{children:"Dust Academy"}),(0,s.jsx)("meta",{name:"description",content:"Master AI agents with Dust through hands-on courses and interactive lessons"}),(0,s.jsx)("meta",{property:"og:title",content:"Dust Academy"}),(0,s.jsx)("meta",{property:"og:description",content:"Master AI agents with Dust through hands-on courses and interactive lessons"}),(0,s.jsx)("meta",{property:"og:type",content:"website"}),(0,s.jsx)("meta",{property:"og:url",content:"https://dust.tt/academy"}),(0,s.jsx)("meta",{property:"og:image",content:"/static/og_image.png"}),(0,s.jsx)("link",{rel:"canonical",href:"https://dust.tt/academy"}),j>1&&(0,s.jsx)("link",{rel:"next",href:"https://dust.tt/academy/page/2"})]}),(0,s.jsxs)(r.c4,{children:[(0,s.jsxs)("div",{className:"col-span-12 flex flex-col gap-4 pt-4 sm:flex-row sm:items-start sm:justify-between",children:[(0,s.jsx)("div",{className:"flex flex-col gap-3",children:(0,s.jsx)(r.s,{title:h.academyTitle,subtitle:h.academySubtitle})}),(0,s.jsxs)("div",{className:"mb-4 flex w-full items-center gap-2 sm:mb-0 sm:w-auto",children:[(0,s.jsx)(r.S5,{locale:o}),(0,s.jsx)(r.g8,{searchableItems:n,placeholder:h.searchPlaceholder})]})]}),f&&(0,s.jsx)(r._L,{courses:t,courseProgress:f,continueLearningLabel:h.continueLearning,continueButtonLabel:h.continueButton,chapterReadLabel:h.chapterRead,quizPassedLabel:h.quizPassed}
1),(0,s.jsx)(r.H7,{courses:N,emptyMessage:h.noCourses,courseProgress:f,completedLabel:h.completed}),t.length>r.mz&&(0,s.jsx)("div",{className:"col-span-12 mt-12 flex items-center justify-center pb-12",children:(0,s.jsx)(l.t,{currentPage:v,totalPages:j,rowCount:t.length,pageSize:r.mz,buildPageUrl:e=>1===e?"/academy":"/academy/page/".concat(e)})})]})]})}x.getLayout=(e,t)=>(0,s.jsx)(a.Z,{pageProps:t,children:e})},5190:function(e,t,n){"use strict";function s(e){return"string"==typeof e}n.d(t,{HD:function(){return s}})},2835:function(e,t,n){"use strict";var s=n(27378);t.Z=e=>s.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e},s.createElement("path",{fill:"currentColor",d:"M20.965 12a8.965 8.965 0 1 0-17.93 0A8.965 8.965 0 0 0 12 20.965 8.965 8.965 0 0 0 20.965 12m-5.196-3.731A1.034 1.034 0 1 1 17.23 9.73l-6 6a1.034 1.034 0 0 1-1.462 0l-3-3A1.034 1.034 0 1 1 8.23 11.27l2.269 2.268zM23.035 12c0 6.095-4.94 11.035-11.035 11.035S.965 18.095.965 12 5.905.965 12 .965 23.035 5.905 23.035 12"}))},57086:function(e,t,n){"use strict";var s=n(27378);t.Z=e=>s.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e},s.createElement("path",{fill:"currentColor",d:"M12 3.965c2.873 0 5.214 1.27 6.946 2.716 1.73 1.444 2.916 3.113 3.51 4.053.105.166.25.382.34.68l.036.13.035.222c.024.23.013.481-.035.69-.084.366-.257.62-.376.81-.594.94-1.78 2.61-3.51 4.053-1.732 1.446-4.074 2.716-6.946 2.716s-5.213-1.27-6.945-2.716c-1.73-1.444-2.916-3.113-3.51-4.053-.12-.19-.292-.444-.376-.81a2.2 2.2 0 0 1 0-.911c.084-.367.257-.622.376-.81.594-.94 1.78-2.61 3.51-4.054C6.787 5.235 9.128 3.965 12 3.965m0 2.07c-2.232 0-4.12.983-5.62 2.235-1.502 1.253-2.553 2.728-3.085 3.57-.035.056-.06.094-.08.128L3.196 12l.019.032c.02.034.045.072.08.128.532.842 1.583 2.316 3.086 3.57 1.5 1.252 3.387 2.235 5.619 2.235 2.233 0 4.12-.983 5.62-2.235 1.502-1.254 2.554-2.728 3.086-3.57.035-.056.06-.094.08-.128q.011-.019.018-.032-.007-.013-.018-.032c-.02-.034-.045-.072-.08-.128-.532-.842-1.584-2.317-3.086-3.57-1.5-1.252-3.388-2.235-5.62-2.235M13.966 12a1.966 1.966 0 1 0-3.931.002 1.966 1.966 0 0 0 3.93-.002m2.07 0a4.035 4.035 0 1 1-8.071 0 4.035 4.035 0 0 1 8.07 0"}))},19584:function(e,t,n){"use strict";var s=n(27378);t.Z=e=>s.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e},s.createElement("path",{fill:"currentColor",d:"M17.965 11a6.965 6.965 0 1 0-2.125 5.005 1 1 0 0 1 .165-.165 6.94 6.94 0 0 0 1.96-4.84m2.07 0a9 9 0 0 1-1.959 5.613l3.655 3.656a1.034 1.034 0 1 1-1.462 1.462l-3.656-3.655A9 9 0 0 1 11 20.036 9.035 9.035 0 1 1 20.035 11"}))},88507:function(e,t,n){"use strict";var s=n(27378);t.Z=e=>s.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e},s.createElement("path",{fill:"currentColor",d:"M20.965 12a8.965 8.965 0 1 0-17.93 0A8.965 8.965 0 0 0 12 20.965 8.965 8.965 0 0 0 20.965 12m-6.696-3.731A1.034 1.034 0 1 1 15.73 9.73L13.463 12l2.268 2.269a1.034 1.034 0 1 1-1.462 1.462L12 13.463 9.731 15.73A1.034 1.034 0 1 1 8.27 14.27L10.537 12 8.27 9.731A1.034 1.034 0 1 1 9.73 8.27L12 10.537zM23.035 12c0 6.095-4.94 11.035-11.035 11.035S.965 18.095.965 12 5.905.965 12 .965 23.035 5.905 23.035 12"}))}},function(e){e.O(0,[7592,2978,9697,5131,5352,5489,5555,1038,1245,8570,1653,2e3,2888,9774,179],function(){return e(e.s=91990)}),_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.