PageSourceSearch

https://ogjre.com/_next/static/chunks/pages/youtube-sync-06d8cafa80bb7b96.js

js ogjre.com collected 2026-10-02 16:49:26 UTC 6,298 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5500],{73191:function(e,n,t){"use strict";t.d(n,{O:function(){return d}}),t(67294);var i=t(2585),r=t(71893),o=t(78318),s=t(57839),a=t(85893),c=r.ZP.div.withConfig({displayName:"IsAdmin__IsAdminStyles",componentId:"sc-mxyd4r-0"})(["margin-top:30px;@media (max-width:450px){margin-top:100px;}.jre-image{margin:0 auto;min-width:400px;width:60vw;min-height:400px;height:60vw;color:var(--primary);@media (max-width:450px){min-width:0;min-height:0;width:80vw;height:80vw;}}"]),d=function(e){var n,t=e.children,r=(0,o.UEB)(),d=r.data,l=r.loading;return l?(0,a.jsx)(s.a,{loading:l}):null!=d&&d.me&&(null===(n=d.me)||void 0===n?void 0:n.permission)==="admin"?(0,a.jsx)(a.Fragment,{children:t}):(0,a.jsx)(c,{children:(0,a.jsx)(i.vye,{className:"jre-image"})})}},57839:function(e,n,t){"use strict";t.d(n,{a:function(){return d}}),t(67294);var i=t(71893),r=t(51614),o=t(91704),s=t(68527),a=t(85893),c=i.ZP.div.withConfig({displayName:"Loader__LoaderStyles",componentId:"sc-21hxan-0"})([".loader-grid{width:100%;padding-top:30vh;grid-template-columns:1fr;justify-items:center;align-items:center;z-index:2;}"]),d=function(e){var n=e.loading;return(0,a.jsx)(r.A,{children:(0,a.jsx)(c,{children:(0,a.jsx)(s.rj,{className:"loader-grid",children:(0,a.jsx)(o.T,{loading:n})})})})}},91704:function(e,n,t){"use strict";t.d(n,{T:function(){return s}});var i=t(73380),r=t.n(i),o=t(85893),s=function(e){return(0,o.jsx)(r(),{color:"var(--primary-button-background)",loading:e,size:30})}},76131:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return b}});var i=t(39654),r=t(73191),o=t(51614),s=t(37042),a=t(50029),c=t(16835),d=t(87794),l=t.n(d),u=t(68527),x=t(4612),p=t(26723),h=t(67294),m=t(71893),g=t(78318),v=t(85893),f="UUzQUP1qoWDoEbmsQxvdjxgQ",j=m.ZP.div.withConfig({displayName:"YoutubeSync__YoutubeSyncStyles",componentId:"sc-1e3sah9-0"})(["color:white;input{color:white;background:transparent;border-color:rgba(255,255,255,0.35);}input::placeholder{color:rgba(255,255,255,0.65);}.sync-items{border:1px solid rgba(255,255,255,0.16);border-radius:4px;overflow:hidden;}.sync-item{border-top:1px solid rgba(255,255,255,0.12);padding:10px 12px;}.sync-item:first-child{border-top:0;}.sync-item-meta{color:rgba(255,255,255,0.72);font-size:12px;word-break:break-word;}"]),w=function(){var e,n,t,i=(0,h.useState)(f),r=i[0],o=i[1],s=(0,h.useState)(""),d=s[0],m=s[1],w=(0,h.useState)(50),y=w[0],b=w[1],S=(0,h.useState)(1),I=S[0],k=S[1],_=(0,g.F_m)(),z=(0,c.Z)(_,2),C=z[0],N=z[1],P=N.data,E=N.loading,T=N.error,Y=null==P?void 0:P.syncYoutubeEpisodes;return(0,v.jsxs)(j,{children:[(0,v.jsx)(u.xv,{fontSize:"18px",fontWeight:600,color:"white",children:"YouTube Episode Sync"}),(0,v.jsx)(u.xv,{mt:"6px",fontSize:"14px",color:"white",children:"Uses server-side YouTube API access. Canonical main-show and JRE MMA Show episode uploads are imported; other uploads count as skipped."}),(0,v.jsxs)(u.xu,{mt:"12px",children:[(0,v.jsx)(u.xv,{children:"Playlist ID"}),(0,v.jsx)(x.II,{fontSize:"15px",color:"white",placeholder:f,onChange:function(e){return o(e.target.value)},value:r})]}),(0,v.jsxs)(u.xu,{mt:"10px",children:[(0,v.jsx)(u.xv,{children:"Page Token (optional)"}),(0,v.jsx)(x.II,{fontSize:"15px",color:"white",placeholder:"YouTube page token",onChange:function(e){return m(e.target.value)},value:d})]}),(0,v.jsxs)(u.xu,{mt:"10px",children:[(0,v.jsx)(u.xv,{children:"Results Per Page (max 50)"}),(0,v.jsx)(x.II,{fontSize:"15px",color:"white",placeholder:"50",onChange:function(e){return b(parseInt(e.target.value,10)||1)},value:y})]}),(0,v.jsxs)(u.xu,{mt:"10px",children:[(0,v.jsx)(u.xv,{children:"Pages to Fetch"}),(0,v.jsx)(x.II,{fontSize:"15px",color:"white",placeholder:"1",onChange:function(e){return k(parseInt(e.target.value,10)||1)},value:I})]}),(0,v.jsx)(u.xu,{mt:"15px",children:(0,v.jsx)(p.zx,{type:"submit",colorScheme:"facebook",isLoading:E,onClick:(e=(0,a.Z)(l().mark(function e(n){var t;return l().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n.preventDefault(),t={maxResults:y,maxPages:I},r.trim()&&(t.playlistId=r.trim()),d.trim()&&(t.pageToken=d.trim()),e.next=6,C({variables:{input:t},update:function(e){e.evict({fieldName:"videos:{}"}),e.gc()}});case 6:case"end":return e.stop()}},e)})),function(n){return e.apply(this,arguments)}),children:"Sync Episodes"})}),T&&(0,v.jsx)(u.xu,{mt:"12px",children:(0,v.jsx)(u.xv,{fontSize:"14px",color:"red.500",children:T.message})}),Y&&(0,v.jsxs)(u.xu,{mt:"15px",children:[(0,v.jsxs)(u.xv,{fontSize:"14px",color:"white",children:["Fetched: ",Y.fetchedCount," | Created: ",Y.createdCount," | Skipped: ",Y.skippedCount]}),(0,v.jsxs)(u.xv,{mt:"8px",fontSize:"13px",color:"whiteAlpha.800",children:["Next page token: ",Y.nextPageToken||"None"]}),(null===(n=Y.errors)||void 0===n?void 0:n.length)>0&&(0,v.jsxs)(u.xu,{mt:"8px",children:[(0,v.jsx)(u.xv,{fontSize:"14px",color:"red.500",children:"Errors:"}),Y.errors.map(function(e,n){return(0,v.jsx)(u.xv,{fontSize:"13px",color:"red.500",children:e},"".concat(e,"-").concat(n))})]}),(null===(t=Y.items)||void 0===t?void 0:t.length)>0&&(0,v.jsxs)(u.xu,{mt:"14px",children:[(0,v.jsx)(u.xv,{fontSize:"14px",fontWeight:600,color:"white",children:"Item diagnostics"}),(0,v.jsx)(u.xu,{mt:"8px",className:"sync-items",children:Y.items.map(function(e,n){return(0,v.jsxs)(u.xu,{className:"sync-item",children:[(0,v.jsxs)(u.xv,{fontSize:"14px",color:"white",children:[e.status.toUpperCase()," - ",e.title||"Untitled"]}),(0,v.jsxs)(u.xv,{mt:"4px",className:"sync-item-meta",children:["YouTube ID: ",e.youtubeVideoId||"n/a"," | Reason:"," ",e.reasonCode,e.videoId?" | Video: ".concat(e.videoId):"",e.slug?" | Slug: ".concat(e.slug):""]}),(0,v.jsx)(u.xv,{mt:"4px",className:"sync-item-meta",children:e.message})]},"".concat(e.youtubeVideoId||e.title,"-").concat(n))})})]})]})]})},y=t(60581),b=(0,t(71203).C)({ssr:!0})(function(){return(0,v.jsxs)(i.Z,{children:[(0,v.jsx)(s.HJ,{title:"Youtube Sync"}),(0,v.jsx)(o.A,{children:(0,v.jsx)(y.Nn,{children:(0,v.jsx)(r.O,{children:(0,v.jsx)(w,{})})})})]})})},62575:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/youtube-sync",function(){return t(76131)}])}},function(e){e.O(0,[2013,5445,260,3874,4617,955,2876,6556,4980,6461,3380,5157,9774,2888,179],function(){return e(e.s=62575)}),_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.