(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9133],{91822:function(e,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/share/public_paths/[...id]",function(){return r(68920)}])},77535:function(e,n,r){"use strict";r.d(n,{Z:function(){return o}});var t=r(85893),i=r(32586),s=r(95379),c=r.n(s),l=r(17637);function o(e){var n=e.value,r={AnchorTagComponent:l.Z,noSanitize:!1};return(0,t.jsx)(i.FileContext.Provider,{value:r,children:(0,t.jsx)(c(),{value:n})})}},54310:function(e,n,r){"use strict";r.d(n,{Z:function(){return P}});var t=r(85893),i=r(27049),s=r(41664),c=r.n(s),l=r(70684),o=r(27739);function a(e){var n=e.id,r=e.path,i=e.relativePath,s=e.isDir,l="/share/public_paths/".concat(n),o=function(e){return(0,t.jsx)("span",{children:" / "},"slash"+e)},a=[(0,t.jsx)(c(),{href:l,children:(0,t.jsx)("a",{children:r})},l),o(l)],u=!0,h=!1,d=void 0;try{for(var j,x=i.split("/")[Symbol.iterator]();!(u=(j=x.next()).done);u=!0){var p=j.value;p&&(l+="/".concat(encodeURIComponent(p)),a.push((0,t.jsx)(c(),{href:l,children:(0,t.jsx)("a",{children:p})},l)),a.push(o(l)))}}catch(v){h=!0,d=v}finally{try{u||null==x.return||x.return()}finally{if(h)throw d}}return s||a.pop(),(0,t.jsx)(t.Fragment,{children:a})}var u=r(98278);function h(e){var n=e.license;return(0,t.jsx)("span",{children:n?n.toUpperCase():"none"})}function d(e){var n=e.project_id,r=e.title;return(0,t.jsx)(c(),{href:"/share/projects/".concat(n),children:(0,t.jsx)("a",{children:(null===r||void 0===r?void 0:r.trim())?r:"A Project"})})}var j=r(94700),x=r(18532),p=r(82712),v=r(62898),f=r(77535),b=r(7772),m=r(83996);function _(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function y(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{},t=Object.keys(r);"function"===typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),t.forEach((function(n){_(e,n,r[n])}))}return e}function P(e){var n=e.id,r=e.path,s=e.project_id,_=e.projectTitle,P=e.relativePath,g=e.description,w=e.counter,O=e.compute_image,Z=e.license,k=e.contents,F=e.error,S=e.customize,C=e.disabled,D=e.unlisted,E=e.authenticated;return(0,j.Z)(n),null==n?(0,t.jsx)(u.Z,{style:{fontSize:"30px"}}):null!=F?(0,t.jsxs)("div",{children:['There was a problem loading "',P,'" in'," ",(0,t.jsx)(c(),{href:"/share/public_paths/".concat(n),children:(0,t.jsxs)("a",{children:[r,"."]})}),(0,t.jsx)("br",{}),(0,t.jsx)("br",{}),F]}):(0,t.jsx)(p.l,{value:S,children:(0,t.jsxs)(x.A,{title:(0,v.YQ)({path:r,relativePath:P}),children:[(0,t.jsx)("b",{children:"Path: "}),(0,t.jsx)(a,{path:r,relativePath:P,id:n,isDir:null===k||void 0===k?void 0:k.isdir}),(0,t.jsx)("br",{}),(null===g||void 0===g?void 0:g.trim())&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("b",{children:"Description:"})," ",(0,t.jsx)(f.Z,{value:g})]}),w&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("b",{children:"Views:"})," ",w,(0,t.jsx)("br",{})]}),(0,t.jsx)("b",{children:"License:"})," ",(0,t.jsx)(h,{license:Z}),(0,t.jsx)("br",{}),function(){if(D||C||E)return(0,t.jsxs)("div",{children:[(0,t.jsx)("b",{children:"Visibility:"})," ",C?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(b.Icon,{name:"lock"})," Private (only visible to collaborators on the project)"]}):D?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(b.Icon,{name:"eye-slash"})," Unlisted (only visible to those who know the link)"]}):E?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(b.Icon,{name:m.rD})," Authenticated (",m.h1,")"]}):void 0]})}(),O&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("b",{children:"Image:"})," ",O,(0,t.jsx)("br",{})]}),(0,t.jsx)("b",{children:"Project:"})," ",(0,t.jsx)(d,{project_id:s,title:_}),(0,t.jsx)("br",{}),(0,t.jsx)(o.Z,{id:n,path:r,relativePath:P,isDir:null===k||void 0===k?void 0:k.isdir,exclude:new Set(["hosted"]),project_id:s,image:O,description:g}),(0,t.jsx)(i.Z,{}),null!=k&&(0,t.jsx)(l.Z,y({id:n,relativePath:P,path:r},k))]})})}},68920:function(e,n,r){"use strict";r.r(n),r.d(n,{__N_SSP:function(){return i}});var t=r(54310),i=!0;n.default=t.Z}},function(e){e.O(0,[5386,1405,9553,3142,5232,1154,3662,1271,3113,2693,6994,715,3899,595,3682,3333,1024,4849,9805,7961,7894,7524,1107,9097,7076,5379,6796,2305,6482,9774,2888,179],(function(){return n=91822,e(e.s=n);var n}));var n=e.O();_N_E=n}]);