PageSourceSearch

https://spatialnode.net/_next/static/chunks/pages/dashboard/articles/series-3736b55b37fdd7c6.js

js spatialnode.net collected 2026-10-04 17:13:31 UTC 11,080 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6677],{6309:function(e,t,r){"use strict";var n=r(42668),s=r(11527);function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach(function(t){(0,n.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}t.Z=function(e){return(0,s.jsx)("svg",_objectSpread(_objectSpread({width:4,height:4,viewBox:"0 0 3 3",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),{},{children:(0,s.jsx)("path",{d:"M3 1.5C3 2.32843 2.32843 3 1.5 3C0.671573 3 0 2.32843 0 1.5C0 0.671573 0.671573 0 1.5 0C2.32843 0 3 0.671573 3 1.5Z",fill:"#A3ACB9"})}))}},69633:function(e,t,r){"use strict";r(50959);var n=r(97411),s=r(92792),a=r(7814),i=r(44243),o=r(28014),l=r(96800),c=r(1860),u=r(64835),d=r(74638),x=r(63456),p=r(96877),h=r(6309),m=r(40942),f=r(19987),v=r(9149),g=r(78803),j=r(4229),y=r(11527);t.Z=function(e){var t=e.title,r=e.count,b=e.slug,w=e.isPublic,N=e.dateUpdated,S=e.coverImage,Z=e.preview,P=(0,a.d)(),C=P.onOpen,E=P.onClose,O=P.isOpen,k=(0,c.i)().deleteSeries,_=(0,a.d)(),M=_.onOpen,I=_.onClose,q=_.isOpen,A=(0,v.useRouter)(),D=""!==S&&null!==S,R=(0,a.d)(),T=R.onClose,L=R.onOpen,W=R.isOpen;return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(g.Z,{isOpen:W,onClose:T,seriesSlug:b}),(0,y.jsx)(i.default,{routeToShare:"series/".concat(b),onClose:E,isOpen:O,title:"".concat(t)}),(0,y.jsx)(l.default,{title:t,onClose:I,description:"Are you sure you want to delete this series?",openModal:q,onClick:function(){k(b,I)}}),(0,y.jsxs)("div",{className:"flex relative cursor-pointer flex-col  md:gap-3 gap-4 w-full border-b\n      ".concat(w?"p-6 border-b":"px-4 py-6 border-b","\n      "),children:[(0,y.jsx)("div",{className:"text-xs whitespace-nowrap sm:text-sm flex text-grey/40 gap-2 items-center",children:w&&(0,y.jsxs)("span",{children:["Published: ",(0,x.FU)(N)]})}),(0,y.jsxs)("div",{className:"flex sm:flex-row  flex-col md:gap-2 gap-6 justify-between w-full md:text-grey/50 text-grey/60 items-center",children:[(0,y.jsx)("div",{className:"flex order-2 sm:order-1 flex-col  overflow-hidden self-start ".concat(D?"basis-2/3":"basis-3/3"),children:(0,y.jsxs)("div",{className:"space-y-3",children:[(0,y.jsxs)("div",{className:"space-y-2.5",children:[(0,y.jsx)("p",{className:"cursor-pointer font-semibold md:font-bold text-sm md:text-lg",children:(0,y.jsx)(f.Z,{routeTo:"/series/".concat(b),className:"",children:(0,s.xI)(t)})}),(0,y.jsxs)("span",{className:"flex items-center text-grey/50 gap-[6px] text-xs font-normal",children:[(0,y.jsx)("span",{children:"Series"}),(0,y.jsx)(h.Z,{width:3,height:3})]})]}),(0,y.jsx)("p",{className:"text-sm text-grey/40",children:(0,s.pk)(Z)})]})}),(0,y.jsx)("div",{className:"order-1 sm:order-2 h-[150px] md:h-[130px] lg:min-h-[130px] w-full sm:w-[193px] lg:min-w-[193px] relative  ".concat(D?"border":"sm:block hidden"," rounded-md"),children:D&&(0,y.jsx)(d.Z,{src:S,alt:t,fill:!0,className:" cursor-pointer rounded-md",quality:75,objectFit:"cover",objectPosition:"top center"})})]}),(0,y.jsxs)("div",{className:"flex justify-between items-center",children:[(0,y.jsxs)("p",{className:"text-grey/50 font-medium text-sm",children:[r," ",r>1?"Articles":"Article"," "]}),w?null:(0,y.jsx)("div",{className:"flex gap-4",children:(0,y.jsx)(o.Z,{verticalDot:!0,configuration:{menuItems:[{label:"Edit Series",action:function(){return A.push(j.SD.ARTICLES.EDIT_SERIES(b))},visibility:!0,icon:p.Z},{label:"Add articles",action:L,visibility:!0,icon:m.Z},{label:"Share Series",action:C,visibility:!0,icon:n.Z},{label:"Delete Series",action:M,visibility:!0,icon:u.Z}]}})})]})]})]})}},52765:function(e,t,r){"use strict";r.d(t,{Z:function(){return EmptyState}});
1var n=r(9149),s=r(59198),a=r(19770),i=r(49810),o=r.n(i),l=r(11527);function EmptyState(e){var t=e.message1,r=e.message2,i=e.message3,c=e.cta,u=e.show,d=e.iconShow,x=e.ctaRoute,p=e.action,h=e.buttonColor,m=e.Illustration,f=e.geoVariant,v=e.isLoading,g=(0,n.useRouter)();return(0,l.jsx)("div",{className:"h-[60vh]",children:(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center h-full my-auto text-center w-full text-grey/50  lg:min-w-[321px] mx-auto ",children:[(f||d&&!m)&&(0,l.jsx)(s.Z,{variant:f}),m&&!f&&(0,l.jsx)(o(),{src:m,alt:t,width:150,height:150}),t&&(0,l.jsx)("h3",{className:"font-medium text-xl my-[10px]",children:t}),(r||t)&&(0,l.jsxs)("p",{className:"font-normal text-base",children:[r&&(0,l.jsx)("span",{className:"block",children:r}),i&&(0,l.jsx)("span",{className:"block",children:i})]}),u&&(0,l.jsx)(a.Z,{action:function(){return p?p():g.push(x||null)},overrideStyle:"mt-5 flex items-center justify-center ","aria-label":"Add new project button",color:void 0===h?"primary":h,disabled:void 0!==v&&v,children:(0,l.jsx)("span",{className:"mx-[10px] ",children:c})})]})})}},55083:function(e,t,r){"use strict";r.d(t,{Z:function(){return Pagination}});var n=r(11317),s=r(19770),a=r(21041),i=r(9149),o=r(50959),l=r(28331),c=r.n(l),u=r(11527);function Pagination(e){var t,r,l,d,x=e.hasNext,p=e.hasPrev,h=e.page,m=e.setPage,f=e.loadMoreType,v=e.isLoading,g=e.loadMoreData,j=e.totalData,y=(t=Math.ceil(j/12),r=[-1,0,1,2,3].filter(function(e){return e>1&&e<t}),l=1==t-4,d=1<t-4,l&&r.push(t-1),d&&r.push("..."),[1].concat((0,n.Z)(r),[t])),b=(0,i.useRouter)(),w=b.pathname.includes("/[username]"),N=Number(h),S=(0,o.useCallback)(function(e){b.query.page&&b.query.q&&b.query.category?b.push({query:{q:b.query.q,page:e,category:b.query.category}}):w&&h>=1?b.push({query:{page:e,username:b.query.username}}):h>=1&&w&&"/[username]/articles"===b.pathname?b.push({query:{tab:b.query.tab,page:e,username:b.query.username}}):m(Number(e))},[m,b]),handleLoadMore=function(){g()},Z=" w-12 h-10  flex items-center  justify-center text-sm sm:text-base";return(0,u.jsx)(u.Fragment,{children:j>12&&!f?(0,u.jsxs)("div",{className:"flex justify-center  mt-2 gap-3 sm:gap-2",children:[(0,u.jsx)(s.Z,{color:"default",action:function(){return S(N-1)},disabled:!p,title:"Previous",overrideStyle:Z,children:"Prev"}),null==y?void 0:y.map(function(e){return(0,u.jsx)(s.Z,{color:"default",action:function(){return S(e)},overrideStyle:"".concat(Z," ").concat(N===e?"bg-brand-blue text-white":""),title:e,children:e},c()())}),(0,u.jsx)(s.Z,{color:"default",action:function(){return S(N+1)},disabled:!x,title:"Next",overrideStyle:Z,children:(0,u.jsx)("span",{children:"Next"})})]}):j>=12&&x&&f?(0,u.jsx)("div",{className:"flex justify-center",children:(0,u.jsxs)(s.Z,{type:"submit",action:function(){return handleLoadMore()},overrideStyle:"block w-max text-base flex items-center gap-1 font-medium rounded-md bg-grey/10 p-3 mt-5",children:["Load more ",f,v?(0,u.jsx)(a.Z,{}):null]})}):null})}},59198:function(e,t,r){"use strict";r.d(t,{Z:function(){return MapEmptyIllustration}});var n=r(50959),s=r(11527);function MapEmptyIllustration(e){var t=e.variant,r=(0,n.useId)().replace(/:/g,"");return(0,s.jsxs)("svg",{className:"geo-empty-illustration",viewBox:"0 0 200 140",fill:"none","aria-hidden":"true",children:[(0,s.jsx)("defs",{children:(0,s.jsx)("clipPath",{id:r,children:(0,s.jsx)("path",{d:"m20 35 52-15 56 15 52-15v92l-52 15-56-15-52 15Z"})})}),(0,s.jsx)("path",{d:"m20 35 52-15 56 15 52-15v92l-52 15-56-15-52 15Z",fill:"var(--surface-soft)",stroke:"currentColor",strokeWidth:"1.5"}),(0,s.jsxs)("g",{clipPath:"url(#".concat(r,")"),stroke:"currentColor",opacity:".25",children:[[0,1,2,3,4,5].map(function(e){return(0,s.jsx)("path",{d:"M-10 ".concat(38+12*e,"C40 ").concat(-10+12*e," 60 ").concat(100+7*e," 110 ").concat(60+10*e,"S165 ").concat(20+12*e," 220 ").concat(70+10*e)},e)}),(0,s.jsx)("path",{d:"M72 20v92M128 35v92"})]}),(0,s.jsx)("path",{d:"M42 99c30-48 52 12 85-29",stroke:"currentColor",strokeDasharray:"3 6",strokeLinecap:"round"}),"draft"===(void 0===t?"map":t)?(0,s.jsxs)("g",{children:[(0,s.jsx)("path",{d:"M99 32h29l16 16v44H99Z",fill:"var(--surface)",stroke:"currentColor",strokeWidth:"2"}),(0,s.jsx)("path",{d:"M128 32v16h16M109 62h24M109 72h18",stroke:"currentColor",strokeWidth:"2"})]}):(0,s.jsxs)("g",{children:[(0,s.jsx)("path",{d:"M148 50c0 17-20 33-20 33s-20-16-20-33a20 20 0 0 1 40 0Z",fill:"var(--surface)",stroke:"currentColor",strokeWidth:"2"}
1),(0,s.jsx)("circle",{cx:"128",cy:"50",r:"6",fill:"currentColor"})]}),(0,s.jsx)("circle",{cx:"42",cy:"99",r:"4",fill:"currentColor"})]})}},59601:function(e,t,r){"use strict";r.d(t,{Z:function(){return usePagination}});var n=r(50959),s=r(16747),a=r(20898),i=r(97440);function usePagination(){var e,t,r,o,l,c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,u=(0,a.E)().token,d=(0,n.useState)(1),x=d[0],p=d[1],h=(0,s.ZP)(function(){return u&&c?["".concat(c,"&page=").concat(x),u]:c?["".concat(c,"&page=").concat(x)]:null},u?i.H:i._),m=h.data,f=h.mutate,v=null!==(e=null==m?void 0:m.next)&&void 0!==e?e:null==m?void 0:null===(t=m.results)||void 0===t?void 0:t.next,g=null!==(r=null==m?void 0:m.previous)&&void 0!==r?r:null==m?void 0:null===(o=m.results)||void 0===o?void 0:o.previous,j=null==m?void 0:null===(l=m.results)||void 0===l?void 0:l.data;return{setPage:p,totalData:null==m?void 0:m.count,hasNext:v,hasPrev:g,data:m,dataArray:j,page:x,mutate:f}}},47316:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return v}});var n=r(31294),s=r(24914),a={src:"/_next/static/media/emptySeries.ea81e66e.svg",height:120,width:120,blurWidth:0,blurHeight:0},i=r(52765),o=r(69633),l=r(28331),c=r.n(l),u=r(59601),d=r(55083),x=r(20898),p=r(37155),h=r(76225),m=r(4229),f=r(11527),ArticleSeriesPage=function(){var e,t=(0,x.E)().username,r=h.s.GET_USER_SERIES("".concat(t),"public"),s=(0,u.Z)(r),l=s.data,v=s.page,g=s.hasNext,j=s.hasPrev,y=s.setPage,b=s.dataArray,w=null==l?void 0:null===(e=l.results)||void 0===e?void 0:e.count;return(0,f.jsx)(n.Z,{pageTitle:"Series",children:0===w?(0,f.jsx)(i.Z,{Illustration:a,message1:"You have not yet created any series.",show:!0,cta:"Create new series",buttonColor:"primary",ctaRoute:m.SD.ARTICLES.CREATE_SERIES}):l?(0,f.jsxs)("div",{className:"flex flex-col gap-y-2",children:[null==b?void 0:b.map(function(e){return(0,f.jsx)(o.Z,{slug:e.slug,title:e.name,count:e.article_count,dateUpdated:e.created_at,coverImage:e.cover_image,preview:e.description,showCoverImage:!0},c()())}),(0,f.jsx)(d.Z,{page:v,setPage:y,hasNext:g,hasPrev:j,totalData:w})]}):(0,f.jsx)(p.ZP,{repeatNumber:12})})},v=ArticleSeriesPage;ArticleSeriesPage.getLayout=function(e){return(0,f.jsx)(s.Z,{children:e})}},53397:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dashboard/articles/series",function(){return r(47316)}])}},function(e){e.O(0,[5084,2805,1942,5992,5178,7085,4587,9956,3543,8028,4535,4914,5064,1294,4243,3102,9774,2888,179],function(){return e(e.s=53397)}),_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.