PageSourceSearch

https://educatorsplus.live/_next/static/chunks/pages/download-manager-2cea8bb829ee6b91.js

js educatorsplus.live collected 2026-09-24 15:06:55 UTC 2,831 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8313],{40527:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/download-manager",function(){return n(68344)}])},68344:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(47568),o=n(97582),a=n(85893),c=n(30749),u=n(67294);function i(){var e=(0,u.useState)("Initializing..."),t=(e[0],e[1]),n=(0,u.useRef)("init"),i=(0,u.useRef)(null);return(0,u.useEffect)((function(){var e=function(e,t,n){try{window.parent.postMessage({type:e,status:t,error:n},"*")}catch(r){console.error("Failed to notify parent:",r)}},a=function(){var a=(0,r.Z)((function(r,a){var u,d,s,l,f,w,p,m,h;return(0,o.__generator)(this,(function(o){switch(o.label){case 0:if(!(0,c.w)(r))return[2];i.current&&(clearTimeout(i.current),i.current=null),t("Preparing download..."),n.current="triggered",o.label=1;case 1:return o.trys.push([1,4,,5]),[4,fetch(r)];case 2:return[4,(u=o.sent()).blob()];case 3:return d=o.sent(),s=u.headers.get("content-type")||d.type,l=new Blob([d],{type:s}),f=URL.createObjectURL(l),w=function(e){var t=e.match(/\.[^./?#]+(?:[?#]|$)/);return t?t[0].split("?")[0]:""},p=a&&a.includes("."),m=p?a:"".concat(a||"download").concat(w(r)),(h=document.createElement("a")).href=f,h.download=m,h.style.display="none",t("Download starting..."),h.click(),h.addEventListener("click",(function(){setTimeout((function(){return URL.revokeObjectURL(f)}),5e3)})),n.current="waiting",t("Download initiated"),e("download-status","download-initiated"),i.current=setTimeout((function(){"completed"!==n.current&&(t("Download completed"),"completed"!==n.current&&(t("Download completed! Closing..."),n.current="completed",e("download-status","download-completed"),i.current&&clearTimeout(i.current)),URL.revokeObjectURL(f))}),7e3),[3,5];case 4:return o.sent(),t("Download failed"),n.current="failed",e("download-status","download-failed","Failed to fetch file"),[3,5];case 5:return[2]}}
1))}));return function(e,t){return a.apply(this,arguments)}}(),u=function(e){var t=e.data||{},n=t.type,r=t.url,o=t.name;"start-download"===n&&r&&a(r,o)};return window.addEventListener("message",u),t("Ready for download..."),n.current="ready",e("download-status","ready"),function(){window.removeEventListener("message",u),i.current&&clearTimeout(i.current)}}),[]),(0,a.jsx)("div",{className:"p-4 text-center min-h-dvh flex items-center justify-center h-full",children:(0,a.jsx)("span",{className:"text-lg font-bold tracking-tighter",children:"Download Manager"})})}},30749:function(e,t,n){"use strict";n.d(t,{w:function(){return o}});var r=n(96076),o=function(e){try{var t=new URL(e).pathname.toLowerCase();return r.U7.some((function(e){return t.includes(e)}))}catch(n){return!1}}}},function(e){e.O(0,[9774,2888,179],(function(){return t=40527,e(e.s=t);var t}));var t=e.O();_N_E=t}]);

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.