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 r=arguments[t];if(null!=r)for(var n in r)r.hasOwnProperty(n)&&(e[n]=r[n])}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]="d93bbcad-ac4c-443d-92e3-5ac151be1a3a",e._sentryDebugIdIdentifier="sentry-dbid-d93bbcad-ac4c-443d-92e3-5ac151be1a3a")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7422],{50059:(e,t,r)=>{r.d(t,{Q:()=>d});var n=r(37876),a=r(66950),s=r(66664),i=r(62902),l=r(31941),o=r(30942);let d=({isLoading:e,hasError:t,isEmpty:r=!1,children:d})=>{let{t:c}=(0,o.o)(),u=!e&&!t&&!r;return(0,n.jsxs)(a.A,{position:"relative",minHeight:240*!u,"data-sentry-element":"Box","data-sentry-component":"FilePreviewState","data-sentry-source-file":"FilePreviewState.tsx",children:[(0,n.jsx)(a.A,{sx:{visibility:u?"visible":"hidden"},"data-sentry-element":"Box","data-sentry-source-file":"FilePreviewState.tsx",children:d}),e&&(0,n.jsx)(i.A,{sx:{position:"absolute",inset:0},minHeight:240,alignItems:"center",justifyContent:"center",children:(0,n.jsx)(s.A,{})}),!e&&t&&(0,n.jsx)(i.A,{sx:{position:"absolute",inset:0},alignItems:"center",justifyContent:"center",children:(0,n.jsx)(l.A,{textAlign:"center",children:c("loading_error")})}),!e&&!t&&r&&(0,n.jsx)(i.A,{sx:{position:"absolute",inset:0},alignItems:"center",justifyContent:"center",children:(0,n.jsx)(l.A,{textAlign:"center",children:c("empty")})})]})}},87422:(e,t,r)=>{r.r(t),r.d(t,{PptxPreview:()=>x});var n=r(37876),a=r(14232),s=r(66950),i=r(22208),l=r(62902),o=r(31941),d=r(30942),c=r(50064),u=r(67677),y=r(50059);let x=({fileId:e})=>{let t=(0,a.useRef)(null),x=(0,a.useRef)(null),[f,p]=(0,a.useState)(!0),[h,v]=(0,a.useState)(!1),[w,b]=(0,a.useState)(!1),[g,P]=(0,a.useState)(0),[m,A]=(0,a.useState)(0),{t:j}=(0,d.o)();(0,a.useEffect)(()=>{let n=t.current,a=null,s=!1;if(n)return n.replaceChildren(),p(!0),v(!1),P(0),A(0),(async()=>{try{let t=await u.A.getBlobFile((0,c.w8)(`${e}`)),i=await t.arrayBuffer(),{PptxViewer:l,RECOMMENDED_ZIP_LIMITS:o}=await Promise.all([r.e(8617),r.e(7524),r.e(8095)]).then(r.bind(r,13524));if(s)return;if(a=await l.open(i,n,{renderMode:"slide",fitMode:"contain",zipLimits:o,pdfjs:!1,onSlideChange:e=>{s||P(e)}}),s)return void a.destroy();x.current=a,A(a.slideCount),p(!1)}catch{s||(v(!0),p(!1))}})(),()=>{s=!0,x.current=null,a?.destroy(),n.replaceChildren()}},[e]);let C=(0,a.useCallback)(async e=>{let t=x.current;if(t){b(!0);try{let r=t.currentSlideIndex+("previous"===e?-1:1);await t.goToSlide(r)}catch{v(!0)}finally{b(!1)}}},[]);return(0,n.jsx)(y.Q,{isLoading:f,hasError:h,"data-sentry-element":"FilePreviewState","data-sentry-component":"PptxPreview","data-sentry-source-file":"PptxPreview.tsx",children:(0,n.jsxs)(l.A,{gap:3,alignItems:"center","data-sentry-element":"Stack","data-sentry-source-file":"PptxPreview.tsx",children:[(0,n.jsx)(s.A,{ref:t,width:"100%",minWidth:0,maxHeight:"65vh",overflow:"auto",sx:{scrollbarGutter:"stable"},"data-sentry-element":"Box","data-sentry-source-file":"PptxPreview.tsx"}),(0,n.jsxs)(l.A,{direction:"row",gap:2,alignItems:"center","data-sentry-element":"Stack","data-sentry-source-file":"PptxPreview.tsx",children:[(0,n.jsx)(i.A,{variant:"outlined",disabled:w||g<=0,onClick:()=>void C("previous"),"data-sentry-element":"Button","data-sentry-source-file":"PptxPreview.tsx",children:j("ACTION.previous")}),(0,n.jsxs)(o.A,{"data-sentry-element":"Typography","data-sentry-source-file":"PptxPreview.tsx",children:[g+1," / ",m]}),(0,n.jsx)(i.A,{variant:"outlined",disabled:w||g>=m-1,onClick:()=>void C("next"),"data-sentry-element":"Button","data-sentry-source-file":"PptxPreview.tsx",children:j("ACTION.next")})]})]})})}}}]); 2//# sourceMappingURL=7422.3a68e05e2dd8dbd9.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.