(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6107],{98082:function(e,t,n){"use strict";var r=n(97685),i=n(67294),a=n(31808);t.Z=function(){var e=i.useState(!1),t=(0,r.Z)(e,2),n=t[0],l=t[1];return i.useEffect((function(){l((0,a.fk)())}),[]),n}},31808:function(e,t,n){"use strict";n.d(t,{fk:function(){return l},jD:function(){return a}});var r,i=n(98924),a=function(){return(0,i.Z)()&&window.document.documentElement},l=function(){if(!a())return!1;if(void 0!==r)return r;var e=document.createElement("div");return e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e),r=1===e.scrollHeight,document.body.removeChild(e),r}},26713:function(e,t,n){"use strict";n.d(t,{u:function(){return f},Z:function(){return h}});var r=n(87462),i=n(4942),a=n(97685),l=n(94184),o=n.n(l),c=n(50344),s=n(67294),u=n(53124),d=n(98082);function p(e){var t=e.className,n=e.direction,a=e.index,l=e.marginDirection,o=e.children,c=e.split,u=e.wrap,d=s.useContext(f),p=d.horizontalSize,m=d.verticalSize,v=d.latestIndex,h={};return d.supportFlexGap||("vertical"===n?a<v&&(h={marginBottom:p/(c?2:1)}):h=(0,r.Z)((0,r.Z)({},a<v&&(0,i.Z)({},l,p/(c?2:1))),u&&{paddingBottom:m})),null===o||void 0===o?null:s.createElement(s.Fragment,null,s.createElement("div",{className:t,style:h},o),a<v&&c&&s.createElement("span",{className:"".concat(t,"-split"),style:h},c))}var m=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},f=s.createContext({latestIndex:0,horizontalSize:0,verticalSize:0,supportFlexGap:!1}),v={small:8,middle:16,large:24};var h=function(e){var t,n=s.useContext(u.E_),l=n.getPrefixCls,h=n.space,x=n.direction,y=e.size,g=void 0===y?(null===h||void 0===h?void 0:h.size)||"small":y,w=e.align,Z=e.className,b=e.children,E=e.direction,_=void 0===E?"horizontal":E,j=e.prefixCls,z=e.split,C=e.style,N=e.wrap,S=void 0!==N&&N,P=m(e,["size","align","className","children","direction","prefixCls","split","style","wrap"]),k=(0,d.Z)(),O=s.useMemo((function(){return(Array.isArray(g)?g:[g,g]).map((function(e){return function(e){return"string"===typeof e?v[e]:e||0}(e)}))}),[g]),G=(0,a.Z)(O,2),D=G[0],I=G[1],F=(0,c.Z)(b,{keepEmpty:!0}),B=void 0===w&&"horizontal"===_?"center":w,T=l("space",j),A=o()(T,"".concat(T,"-").concat(_),(t={},(0,i.Z)(t,"".concat(T,"-rtl"),"rtl"===x),(0,i.Z)(t,"".concat(T,"-align-").concat(B),B),t),Z),M="".concat(T,"-item"),W="rtl"===x?"marginLeft":"marginRight",X=0,H=F.map((function(e,t){null!==e&&void 0!==e&&(X=t);var n=e&&e.key||"".concat(M,"-").concat(t);return s.createElement(p,{className:M,key:n,direction:_,index:t,marginDirection:W,split:z,wrap:S},e)})),L=s.useMemo((function(){return{horizontalSize:D,verticalSize:I,latestIndex:X,supportFlexGap:k}}),[D,I,X,k]);if(0===F.length)return null;var Q={};return S&&(Q.flexWrap="wrap",k||(Q.marginBottom=-I)),k&&(Q.columnGap=D,Q.rowGap=I),s.createElement("div",(0,r.Z)({className:A,style:(0,r.Z)((0,r.Z)({},Q),C)},P),s.createElement(f.Provider,{value:L},H))}},91823:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/share/public_paths/embed/[...id]",function(){return n(92654)}])},92654:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return v},default:function(){return h}});var r=n(26042),i=n(85893),a=n(14670),l=n(41664),o=n.n(l),c=n(29794),s=n(32627),u=n(76087),d=n(3066),p=n(16284),m=n(58742),f=n(9774),v=!0;function h(e){var t=e.id,n=e.project_id,l=e.path,v=e.relativePath,h=e.contents,x=e.error,y=e.customize;return(0,d.Z)(t),null==t?(0,i.jsx)(u.Z,{style:{fontSize:"30px"}}):(0,i.jsx)(m.l,{value:y,children:(0,i.jsxs)(p.c,{title:(0,f.YQ)({path:l,relativePath:v}),children:[(0,i.jsx)("div",{style:{backgroundColor:"white",display:"inline-block",padding:"0 5px",margin:"5px",width:"100%"},children:(0,i.jsx)(s.Z,{id:t,path:l,project_id:n,relativePath:v,isDir:!!(null===h||void 0===h?void 0:h.isdir),exclude:new Set(["embed"])})}),null!=h&&(0,i.jsx)(c.Z,(0,r.Z)({id:t,relativePath:v,path:l},h)),null!=x&&(0,i.jsx)(a.Z,{showIcon:!0,type:"error",style:{maxWidth:"700px",margin:"30px auto"},message:"Error loading file",description:(0,i.jsxs)("div",{children:['There was a problem loading "',v,'" in'," ",(0,i.jsx)(o(),{href:"/share/public_paths/".concat(t),children:(0,i.jsxs)("a",{children:[l,"."]})}),(0,i.jsx)("br",{}),(0,i.jsx)("br",{}),x]})})]})})}}},function(e){e.O(0,[5386,1405,9553,3142,5232,1154,3662,7324,4089,7731,6747,6994,8681,3899,1024,6806,3682,7155,4849,5025,7894,7961,1474,1835,9066,6735,7076,5379,6213,2032,7478,9774,2888,179],(function(){return t=91823,e(e.s=t);var t}));var t=e.O();_N_E=t}]);