PageSourceSearch

https://www.euhu.co.uk/_next/static/chunks/pages/plans/viewer/[id]/[slug]/files-9a055efce3bcc193.js

js euhu.co.uk collected 2026-10-04 05:21:22 UTC 3,946 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[17],{92089:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/plans/viewer/[id]/[slug]/files",function(){return a(3355)}])},45196:function(e,t,a){"use strict";a.d(t,{Z:function(){return w}});var n=a(85893),l=a(11163);a(67294);var i=a(99504),s=a(41296),d=a(36040),r=a(92825),o=a(88917),u=a(32810),c=a(77783),h=a(35800),p=a(83915),v=a(55490),f=a(42255),y=a(17376),g=a(38498),m=a(60925);function w(e){var t,a,w,x,b,j,P,C,_,N,E;let{children:I}=e,Z=(0,s.X)(),k=(0,h.useErrorHandler)(),q=(0,l.useRouter)(),S="string"==typeof q.query.id?q.query.id:"",A=null!==(_=null===(t=q.query.slug)||void 0===t?void 0:t.toString())&&void 0!==_?_:"",F=(0,u.w)(),U="create"===S,D=p.h.plans.get.useQuery({planId:S,sharedContentId:F},{enabled:q.isReady&&!U,retry:!1,refetchOnWindowFocus:!1,onError:e=>{var t,a,n;k(new c.FZ(null===(t=e.data)||void 0===t?void 0:t.httpStatus,null===(a=e.shape)||void 0===a?void 0:a.type,null===(n=e.shape)||void 0===n?void 0:n.subscriptionProvider))}}),O=U?"Create a plan":null===(a=D.data)||void 0===a?void 0:a.name,R=(0,v.M)({type:"plans",mode:"viewer",id:S,slug:(null===(w=D.data)||void 0===w?void 0:w.slug)||"",subSection:null}),T=q.asPath.endsWith("/image")?null:"".concat(R,"/image"),M=p.h.plans.duplicate.useMutation({onSuccess:e=>{q.push((0,v.M)({type:"plans",mode:"viewer",subSection:"plan",id:e.id||"",slug:e.slug}))},onError:e=>{var t,a;return k(new c.FZ(null===(t=e.data)||void 0===t?void 0:t.httpStatus,null===(a=e.shape)||void 0===a?void 0:a.type))}});async function W(){if(S)try{await M.mutateAsync({planId:S,duplicatePlanRequest:{sharedContentId:F}})}catch(e){}}if("authenticated"!==Z.status||D.error)return(0,n.jsx)(d.Z,{position:"screen-center"});let X=!!((null===(x=D.data)||void 0===x?void 0:x.access.canEdit)&&!F);return(0,n.jsx)(i.C,{fullWidth:!1,thumbnailArea:(0,n.jsx)(m.Q,{type:"image",thumbnailUrl:null!==(E=null!==(N=null===(b=D.data)||void 0===b?void 0:b.customImageUrl)&&void 0!==N?N:null===(j=D.data)||void 0===j?void 0:j.defaultImageUrl)&&void 0!==E?E:"",canEdit:!1,onUploadClick:()=>{T&&q.push(T)}}),subNavContentKey:null===(P=D.data)||void 0===P?void 0:P.contentProvider,title:O||"Loading...",tabs:(e=>{if(!e)return[];let t="".concat(R).concat(F?"?sharedContentId=".concat(F):""),a="".concat(R,"/plan").concat(F?"?sharedContentId=".concat(F):""),n="".concat(R,"/files").concat(F?"?sharedContentId=".concat(F):"");return[{title:"Overview",href:t,selected:q.asPath===t||"/plans/editor/create"===q.asPath,"data-testid":"planner-layout-details-tab"},{title:"Plan",href:a,disabled:"create"===e,selected:q.asPath===a,"data-testid":"planner-layout-plan-tab"},{title:"Downloads",href:n,disabled:"create"===e,selected:q.asPath===n,"data-testid":"lesson-viewer-layout-files-tab"}]})(S),padChildren:!0,showViewToggle:X,titleActionArea:(0,n.jsxs)(n.Fragment,{children:[(null===(C=D.data)||void 0===C?void 0:C.access.canDuplicate)&&(0,n.jsx)(o.Z,{expectedPermissions:["duplicate-others-plan","duplicate-own-plan"],children:(0,n.jsx)(g.u,{title:"Duplicate",children:(0,n.jsxs)(f.hU,{variant:"header",onClick:W,children:[(0,n.jsx)("span",{className:"sr-only",children:"Duplicate"}),(0,n.jsx)(y.NA,{className:"h-6 w-6"})]})})}),(0,n.jsx)(o.Z,{expectedPermissions:"create-shareable-link",children:(0,n.jsx)(r.o,{slug:A,contentType:"Plan",contentId:S})})]}),children:I})}},3355:function(e,t,a){"use strict";a.r(t);var n=a(85893),l=a(11163);a(67294);var i=a(77992),s=a(45196),d=a(33299),r=a(2962);let o=()=>{(0,d.useSession)({required:!0});let e=(0,l.useRouter)(),t="string"==typeof e.query.id?e.query.id:null;return(0,n.jsxs)("main",{className:"mx-auto",children:[(0,n.jsx)(r.PB,{title:"Plan Files"}),t&&(0,n.jsx)("div",{className:"relative h-full",children:(0,n.jsx)(i.Z,{planId:t,disabled:!0})})]})};t.default=o,o.getLayout=e=>(0,n.jsx)(s.Z,{children:e})}},function(e){e.O(0,[2946,3739,6496,2888,9774,179],function(){return e(e.s=92089)}),_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.