PageSourceSearch

https://opensports.net/_next/static/chunks/pages/blog/admin-ba882a02d1e0dc63.js

js opensports.net collected 2026-10-01 15:35:12 UTC 7,166 bytes, 5 lines download raw bytes

1
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="5508d9cd-8e8a-5a44-929d-5521abf1e72b")}catch(e){}}();
3(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[71922],{41214:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/blog/admin",function(){return n(1924)}])},1924:function(e,t,n){"use strict";n.r(t);var i=n(85893),a=n(67294),r=n(2664),o=n(87296),l=n(56989),u=n(41484),d=n(32496),s=n(77092),c=n(92626),g=n(45232),f=n(95335),h=n.n(f),m=n(11163),b=n(35599),p=n(41664),v=n.n(p);let k=[{label:"Title",align:"left",key:"title"},{label:"Tags",align:"left",key:"tags"},{label:"Version",align:"left",key:"isMarkdown"},{label:"Published",align:"left",key:"isPublic"},{label:"Categories",align:"left",key:"categories"},{label:"Date Created",align:"right",key:"dateCreated"},{label:"Date Modified",align:"right",key:"dateModified"}];t.default=(0,r.$j)(e=>({user:e.auth.user}))(function(e){let{user:t}=e,[n,r]=(0,a.useState)([]),[f,p]=(0,a.useState)(null),y=(0,m.useRouter)(),w=(0,a.useMemo)(()=>y.query.tableSortKey||"dateModified",[y.query.tableSortKey]),_=(0,a.useMemo)(()=>"asc"===y.query.tableSortDirection?"asc":"desc",[y.query.tableSortDirection]);if((0,a.useEffect)(()=>{(0,o.GV)({language:u.ag.language,sortBy:w,sortDirection:_},t).then(e=>r(e)).catch(e=>p(e))},[t,w,_]),f)return(0,i.jsx)(d.Z,{type:"ERROR",body:(0,l.prettifyErrorMessage)(e=>e,f)});let M=[{key:"title",href:e=>"/blog/".concat(e.aliasID)}],C=e=>{let t=w===e&&"asc"===_?"desc":"asc";y.push({query:{...y.query,tableSortKey:e,tableSortDirection:t}},void 0,{shallow:!0,scroll:!1})},j={title:e=>e.title,tags:e=>e.tags&&e.tags.length>0?e.tags.join(", "):"None",isMarkdown:e=>e.isMarkdown?"Markdown":"Medium (Legacy)",isPublic:e=>e.isPublic?"Published":"Draft",categories:e=>e.categories&&e.categories.length>0?e.categories.map(e=>e.name).join(", "):"None",dateCreated:e=>new Date(e.dateCreated).toLocaleDateString(),dateModified:e=>e.dateModified?new Date(e.dateModified).toLocaleDateString():""};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(b.Z,{headerTitle:"Content Library",children:(0,i.jsx)(v(),{href:"/blog/new",children:"New"})}),(0,i.jsxs)("div",{className:h().tableContainer,children:[(0,i.jsx)(g.Z,{hasNotData:0===n.length}),(0,i.jsx)(c.Z,{className:h().content,children:e=>{let{scrollingRight:t}=e;return(0,i.jsx)(s.Z,{content:{data:n,loading:!1,reachedLast:!0,error:null,onRefresh:()=>{}},columns:{active:k.map(e=>e.key),clickable:M,sticky:[],onColumnHeaderClick:C,nonSortable:["isMarkdown","categories","isPublic"]},headers:k.map(e=>({...e,ratio:1})),sort:{key:w,sortDirection:_},row:{actions:[]},tooltips:{},transformations:j,isScrollingRight:t,dataTableKey:"helpList"})}})]})]})})},35599:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var i=n(85893);n(67294);var a=n(93967),r=n.n(a),o=n(52737),l=n.n(o);function u(e){let{headerTitle:t,hideHeader:n,isTabbed:a}=e;return(0,i.jsxs)("div",{className:a?l().headerWithTabs:r()(l().header,n&&l().hideHeader),children:[(0,i.jsx)("h4",{children:t}),e.children]})}},87296:function(e,t,n){"use strict";n.d(t,{CP:function(){return f},FR:function(){return d},GM:function(){return C},GV:function(){return h},Gr:function(){return u},Jn:function(){return p},NX:function(){return j},O5:function(){return M},Pg:function(){return c},QI:function(){return w},Qb:function(){return v},VC:function(){return g},a2:function(){return m},aY:function(){return y},lH:function(){return s},m5:function(){return o},rH:function(){return _},rV:function(){return l},vY:function(){return b},wF:function(){return k}});var i=n(88835),a=n(56989);let r=new i.ApiClient,o=(e,t)=>r.post("v2/content/variant/insert",{data:e},t),l=(e,t)=>r.post("content/variant/insert",{data:e},t),u=(e,t)=>r.post("categories/content/upsert",{data:e},t),d=(e,t)=>r.post("v2/content/variant/update",{data:e,keepAllFields:!0},t),s=(e,t)=>r.post("content/variant/updateTags",{data:e},t),c=(e,t)=>r.post("content/variant/updatePhoto",{data:e},t),g=(e,t)=>r.post("categories/content/updatePriority",{data:e},t),f=e=>r.get("categories",{params:e}),h=(e,t)=>r.get("content/admin",{params:e},t),m=[{value:"en",key:"English"},{value:"es",key:"Spanish"},{value:"fr",key:"French"},{value:"it",key:"Italian"},{value:"de",key:"German"},{value:"zh",key:"Mandarin"}],b=e=>{for(let t=0;t<m.length;t++)if(m[t].value===e)return m[t].key;return"Unknown language: "+e},p=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return e&&"http"===e.substring(0,4)?t&&t<=500?e+"/media_500w.jpg":t&&t>1e3?e+"/media_2000w.jpg":e+
3"/media_1000w.jpg":(i=i||40,t=t||1280,n)
3?"https://cdn-images-1.medium.com/fit/"+t+"/"+n+"/"+e+"?q="+i:"https://cdn-images-1.medium.com/max/"+t+"/"+e+"?q="+i},v=e=>[500,1e3,2e3].map(t=>"".concat(p(e,t)," ").concat(t,"w")).join(", "),k=[{label:"Enter Markdown",value:"markdown"},{label:"Import from Medium",value:"medium"}];function y(e){var t,n,i,r,o,l,u,d,s,c;let g=e.initialValues,f=!g.body||!!g.body.markdown,h=g.photoURL||"";return h&&!f&&(h=p(h)),{type:f?"markdown":"medium",aliasID:null!==(n=g.aliasID)&&void 0!==n?n:g.title?(0,a.generateAliasID)(g.title):"",contentID:null!==(i=g.contentID)&&void 0!==i?i:null,mediumURL:null!==(r=g.mediumURL)&&void 0!==r?r:"",markdown:f&&null!==(o=null===(t=g.body)||void 0===t?void 0:t.markdown)&&void 0!==o?o:"",language:null!==(l=g.language)&&void 0!==l?l:"en",tags:null!==(u=g.tags)&&void 0!==u?u:[],photoURL:h,title:null!==(d=g.title)&&void 0!==d?d:"",subtitle:null!==(s=g.subtitle)&&void 0!==s?s:"",description:null!==(c=g.description)&&void 0!==c?c:"",isEditing:!1}}function w(e){let{type:t,mediumURL:n,markdown:i,language:a,title:r}=e,o={};return a||(o.language="You must choose a language first"),"medium"!==t||n||(o.mediumURL="Medium URL required"),"markdown"!==t||(r.trim()||(o.title="Title is required"),i.trim()||(o.markdown="Content is required")),o}function _(e){let{type:t,mediumURL:n,markdown:i,language:a,tags:r,photoURL:o,title:l,subtitle:u,description:d,aliasID:s,contentID:c}=e;return"medium"===t?{contentID:c,aliasID:s,language:a,tags:r,photoURL:o,mediumURL:n}:{contentID:c,aliasID:s,language:a,tags:r,photoURL:o,title:l.trim(),subtitle:null==u?void 0:u.trim(),description:null==d?void 0:d.trim(),body:{markdown:i}}}function M(e,t){return r.post("content/variant/insertFeedback",{data:e},t)}function C(e){return r.post("content/variant/updateFeedback",{data:e})}let j=["blog","group-feature"]},52737:function(e){e.exports={header:"LeagueHeader_header__Fso1u",hideHeader:"LeagueHeader_hideHeader___h6ZF",optionalContainer:"LeagueHeader_optionalContainer__kb2Eb",headerWithTabs:"LeagueHeader_headerWithTabs__wZRMs",headerButtonContainer:"LeagueHeader_headerButtonContainer__t2vcZ"}}},function(e){e.O(0,[91138,35648,45232,43249,92888,49774,40179],function(){return e(e.s=41214)}),_N_E=e.O()}]);
4//# sourceMappingURL=admin-ba882a02d1e0dc63.js.map
5//# debugId=5508d9cd-8e8a-5a44-929d-5521abf1e72b

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.