"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4169],{87357:function(e,n,r){var t,a,i,l,s,o,d,c;r.r(n);let u=(t={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},i={alias:null,args:null,kind:"ScalarField",name:"chorusId",storageKey:null},l={alias:null,args:null,kind:"ScalarField",name:"chorusUuid",storageKey:null},s={alias:null,args:null,concreteType:"FeaturedImageType",kind:"LinkedField",name:"featuredImage",plural:!1,selections:[{alias:null,args:null,concreteType:"ImageResourceType",kind:"LinkedField",name:"image",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"originalUrl",storageKey:null},a={alias:null,args:null,kind:"ScalarField",name:"wpId",storageKey:null}],storageKey:null}],storageKey:null},{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"AdminContainer_resolvedResource",selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{kind:"InlineFragment",selections:o=[t,a,i,l,s,{alias:null,args:null,concreteType:"CategoryResourceType",kind:"LinkedField",name:"primaryCategory",plural:!1,selections:[t],storageKey:null}],type:"StreamResourceType",abstractKey:null},{kind:"InlineFragment",selections:o,type:"PostResourceType",abstractKey:null},{kind:"InlineFragment",selections:d=[t,a,i,l,s],type:"PageResourceType",abstractKey:null},{kind:"InlineFragment",selections:o,type:"PackageResourceType",abstractKey:null},{kind:"InlineFragment",selections:d,type:"HomepageResourceType",abstractKey:null},{kind:"InlineFragment",selections:o,type:"EmbedStoryResourceType",abstractKey:null},{kind:"InlineFragment",selections:c=[t,a],type:"AuthorProfileResourceType",abstractKey:null},{kind:"InlineFragment",selections:c,type:"CategoryResourceType",abstractKey:null},{kind:"InlineFragment",selections:d,type:"VideoGameResourceType",abstractKey:null}],type:"ResolvedResourceInterface",abstractKey:"__isResolvedResourceInterface"});u.hash="bb9458ae866ac16d4dcbf3941c9be67b",n.default=u},66613:function(e,n,r){r.d(n,{Z:function(){return I}});var t,a=r(35458),i=r(82201),l=r(86273),s=r(24860),o=r(80646),d=r(47382),c=r(45293),u=r(31561),p=({className:e,width:n=20,height:r,fill:t="currentColor"})=>(0,u.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"206 29.9 642.1 681.3",className:e,width:n,height:r,fill:t,children:(0,u.jsx)("path",{d:"M843 467.2c4.8 3.2 6.3 9.5 4 15-13.5 41.2-36.4 79.2-64.2 111.7-4 4.8-9.5 6.3-15 4l-81.6-28.5c-20.6 16.6-43.6 30.1-67.3 39.6l-16.6 84.7c-.8 5.5-5.5 10.3-11.1 11.1-21.4 4-42.8 6.3-64.2 6.3-22.2 0-43.6-2.4-64.2-6.3-5.5-.8-10.3-5.5-11.1-11.1L435.2 609c-24.6-9.5-48.3-23-67.3-39.6l-81.6 28.5c-5.5 2.4-11.1.8-15-4-28.5-32.5-51.5-70.5-64.2-111.7-2.4-5.5-.8-11.9 4-15l64.9-57c-2.4-12.7-3.2-26.1-3.2-39.6s.8-26.9 3.2-39.6l-65-57c-4.8-3.2-6.3-9.5-4-15 13.5-41.2 36.4-79.2 64.2-111.7 4-4.8 9.5-6.3 15-4l81.6 28.5c19.8-16.6 43.6-30.1 67.3-39.6l16.6-84.7c.8-5.5 5.5-10.3 11.1-11.1 42.8-8.7 86.3-8.7 129.1 0 5.5.8 10.3 5.5 11.1 11.1l15 85.5c24.6 9.5 47.5 23 67.3 39.6l81.6-28.5c5.5-2.4 11.1-.8 15 4 28.5 32.5 51.5 70.5 64.2 111.7 2.4 5.5.8 11.9-4 15l-65.7 57c2.4 12.7 3.2 26.1 3.2 39.6s-.8 26.9-3.2 39.6l66.6 56.2zm-190-95.8c0-69.7-57.8-127.5-127.5-127.5-70.5 0-127.5 57-127.5 127.5s57 127.5 127.5 127.5S653 441.9 653 371.4z"})}),m=r(31218);r(25982);var y="ap3viy8",h="ap3viy9",g="ap3viya",f="ap3viy2";let w=e=>{e.currentTarget.select()},v=e=>{let{name:n,value:r,base64:t}=e,a=(0,i.useId)();return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)("li",{className:y,children:[(0,u.jsx)("label",{className:h,htmlFor:a,children:n}),(0,u.jsx)("input",{className:g,type:"text",readOnly:!0,id:a,value:r,onClick:w})]}),t&&(0,u.jsxs)("li",{className:y,children:[(0,u.jsxs)("label",{className:h,htmlFor:`decoded${a}`,children:[n," (decoded)"]}),(0,u.jsx)("input",{className:g,type:"text",readOnly:!0,id:`decoded${a}`,value:atob(r),onClick:w})]})]})},x=e=>{let{href:n,children:r}=e;return(0,u.jsx)("li",{children:(0,u.jsx)("a",{className:"ap3viy3",href:n,target:"_blank",rel:"noreferrer",children:r})})};var I=(0,m.n)(e=>{let{resolvedResource:n}=e,{communityConfig:{communityApiOrigin:m},appConfig:{deployEnv:y}}=(0,c.q)(),h=(0,l.useFragment)((void 0!==t||(t=r(87357)).hash&&"bb9458ae866ac16d4dcbf3941c9be67b"!==t.hash&&console.error("The definition of 'AdminContainer_resolvedResource' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."),t),n||null),[g,w]=(0,i.useState)(!1),[I,b]=(0,i.useState)(!1),[R,j]=(0,i.useState)(!1),k=(0,d.aC)(),$=function(e,n){if(!n)return null;switch(n.__typename){case"EmbedStoryResourceType":return{type:"Embed Story",editURL:`${e}/wp-admin/post.php?post=${n.wpId}&action=edit`};case"HomepageResourceType":return{type:"Homepage",editURL:`${e}/wp-admin/post.php?post=${n.wpId}&action=edit`};case"PackageResourceType":return{type:"Package",editURL:`${e}/wp-admin/post.php?post=${n.wpId}&action=edit`};case"PageResourceType":return{type:"Page",editURL:`${e}/wp-admin/post.php?post=${n.wpId}&action=edit`};case"PostResourceType":return{type:"Post",editURL:`${e}/wp-admin/post.php?post=${n.wpId}&action=edit`};case"StreamResourceType":return{type:"Stream",editURL:`${e}/wp-admin/post.php?post=${n.wpId}&action=edit`};case"AuthorProfileResourceType":return{type:"Author Profile",editURL:`${e}/wp-admin/post.php?post=${n.wpId}&action=edit`};case"CategoryResourceType":return{type:"Category",editURL:`${e}/wp-admin/term.php?taxonomy=category&tag_ID=${n.wpId}`};case"VideoGameResourceType":return{type:"Game",editURL:`${e}/wp-admin/post.php?post=${n.wpId}&action=edit`};case"%other":return null}}(m,h);return((0,i.useEffect)(()=>{let e="";function n(n){let r=n.key;if(r&&1!==r.length||n.target!==document.body)return;let t=g?s.$Z:s.wb;g&&$&&r===s.Jm&&window.open($.editURL,"_blank"),g&&I||((e+=r)!==t.slice(0,e.length)?e=r===t[0]?r:"":e.length===t.length&&(e="",t===s.wb?w(!0):b(!0)))}return document.body.addEventListener("keyup",n),()=>{document.body.removeEventListener("keyup",n)}},[I,$,g]),g)?(0,u.jsxs)("div",{className:"ap3viy1",onMouseOver:()=>{j(!0)},onMouseLeave:()=>{j(!1)},children:[(0,u.jsx)(p,{className:(0,a.Z)(R&&"ap3viy5",I&&"ap3viy6")}),R&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("h2",{className:f,children:"Quick Admin"}),(0,u.jsxs)("ul",{children:[(0,u.jsx)(x,{href:`${m}/wp-admin/post-new.php`,children:"New Post"}),$&&(0,u.jsxs)(x,{href:$.editURL,children:["Edit ",$.type]}),(0,u.jsx)(x,{href:`${m}/wp-admin/edit.php`,children:"Dashboard"}),(0,u.jsx)(x,{href:`${m}/wp-admin/edit-tags.php?taxonomy=category`,children:"Categories"}),h&&"featuredImage"in h&&h.featuredImage&&(0,u.jsx)(x,{href:h.featuredImage.image.originalUrl,children:"View Original Image"}),h&&"featuredImage"in h&&h.featuredImage&&(0,u.jsx)(x,{href:`${m}/wp-admin/upload.php?item=${h.featuredImage.image.wpId}`,children:"Edit Image"}),o.dm&&k.viewer?.coral&&(0,u.jsx)(u.Fragment,{children:(0,u.jsx)(x,{href:`${o.dm}/admin/moderate#accessToken=${encodeURIComponent(k.viewer.coral)}`,children:"Comment Moderation"})})]}),h&&I&&(0,u.jsxs)("section",{className:"ap3viy7",children:[(0,u.jsx)("h2",{className:f,children:"Dev"}),(0,u.jsxs)("ul",{children:["wpId"in h&&(0,u.jsx)(v,{name:"Wp Id",value:h.wpId}),"id"in h&&(0,u.jsx)(v,{name:"Node Id",value:h.id,base64:!0}),"primaryCategory"in h&&(0,u.jsx)(v,{name:"Primary Catgory Id",value:h.primaryCategory.id,base64:!0}),"chorusId"in h&&h.chorusId&&(0,u.jsx)(v,{name:"Legacy Id",value:h.chorusId}),"chorusUuid"in h&&h.chorusUuid&&(0,u.jsx)(v,{name:"Legacy UUID",value:h.chorusUuid}),(0,u.jsx)(v,{name:"Deploy Env",value:y})]})]})]})]}):null},{context:"AdminContainerErrorBoundary"})},92783:function(e,n,r){r.d(n,{dG:function(){return s},m3:function(){return a}});var t=r(64637);let a=()=>"undefined"!=typeof window?(window.pageloadId||(window.pageloadId=(0,t.Z)()),window.pageloadId):null,i={install:function(e){return e.disableRefresh={method:this.handleRefreshRequest.bind(this),context:this},e},handleRefreshRequest(e,n,r){let t=new CustomEvent(n.refreshImmediately?"refreshImmediately":"refreshEligibilityToggle",{bubbles:!0,detail:n});e.el.dispatchEvent(t),r()}},l={install:function(e){return e.reverbPlayer={method:this.handleReverbPlugin.bind(this),context:this},e},handleReverbPlugin(e,n,r){let t=e.el,a=document.createElement("div");a.id="reverb-main",t.parentNode?.insertBefore(a,t);let i=document.createElement("script");i.type="text/javascript",i.src=`https://cdn.concert.io/reverb-video/${n}.js`,t.parentNode?.insertBefore(i,t),t.style.display="none",r()}},s=e=>{if(!window.ConcertConcierge||Date.now()n?"errorCode"in n?(0,a.jsx)(t.Z,{errorCode:n.errorCode,errorName:n.errorName,errorMessage:n.errorMessage}):(0,a.jsx)(e,{...n}):null}},32519:function(e,n,r){r.d(n,{Z:function(){return l}});var t=r(31561),a=r(35458),i=r(55484);r(32762);var l=({code:e,name:n,message:r,customStyles:l={}})=>(0,t.jsx)("div",{id:"content",className:(0,a.Z)("_1yk8x9l0",l.container),children:(0,t.jsx)("div",{className:"_1yk8x9l1",children:(0,t.jsx)(i.Z,{title:e.toString(),subhead:n,description:r,size:"large",center:!0})})})},37429:function(e,n,r){r.d(n,{Z:function(){return c}});var t=r(31561),a=r(35458),i=r(37254),l=r(32519),s=r(60699),o=r(45293),d=r(20352);r(3489);var c=({errorCode:e,errorName:n,errorMessage:r})=>{let{communityName:c}=(0,o.q)().communityConfig;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.PB,{title:(0,d.F)([`${e} Error: ${n||"Server Error"}`],c)}),(0,t.jsx)("main",{className:(0,a.Z)("hz3w2e0",s.F.layout.growContainer),children:(0,t.jsx)(l.Z,{code:e,name:n||(e?`${e} Error`:"Server Error"),message:r||"We're sorry, but something went wrong. Go back to the homepage."})})]})}},20352:function(e,n,r){r.d(n,{F:function(){return t}});let t=(e=[],n)=>{for(let r of e)if(r)return`${r} | ${n}`;return n}}}]);