"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4169],{87357:function(e,n,t){var r,a,i,s,l,o,d,c;t.r(n);let u=(r={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},i={alias:null,args:null,kind:"ScalarField",name:"chorusId",storageKey:null},s={alias:null,args:null,kind:"ScalarField",name:"chorusUuid",storageKey:null},l={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=[r,a,i,s,l,{alias:null,args:null,concreteType:"CategoryResourceType",kind:"LinkedField",name:"primaryCategory",plural:!1,selections:[r],storageKey:null}],type:"StreamResourceType",abstractKey:null},{kind:"InlineFragment",selections:o,type:"PostResourceType",abstractKey:null},{kind:"InlineFragment",selections:d=[r,a,i,s,l],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=[r,a],type:"AuthorProfileResourceType",abstractKey:null},{kind:"InlineFragment",selections:c,type:"CategoryResourceType",abstractKey:null},{kind:"InlineFragment",selections:d,type:"VideoGameResourceType",abstractKey:null},{kind:"InlineFragment",selections:o,type:"QuickPostResourceType",abstractKey:null}],type:"ResolvedResourceInterface",abstractKey:"__isResolvedResourceInterface"});u.hash="2e57884455b9f67b886230ee4f68e7b4",n.default=u},66613:function(e,n,t){t.d(n,{Z:function(){return I}});var r,a=t(35458),i=t(82201),s=t(86273),l=t(24860),o=t(80646),d=t(47382),c=t(45293),u=t(31561),p=({className:e,width:n=20,height:t,fill:r="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:t,fill:r,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=t(31218);t(25982);var y="ap3viy8",h="ap3viy9",g="ap3viya",f="ap3viy2";let w=e=>{e.currentTarget.select()},v=e=>{let{name:n,value:t,base64:r}=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:t,onClick:w})]}),r&&(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(t),onClick:w})]})]})},x=e=>{let{href:n,children:t}=e;return(0,u.jsx)("li",{children:(0,u.jsx)("a",{className:"ap3viy3",href:n,target:"_blank",rel:"noreferrer",children:t})})};var I=(0,m.n)(e=>{let{resolvedResource:n}=e,{communityConfig:{communityApiOrigin:m},appConfig:{deployEnv:y},featureConfig:{useQuickPosts:h}}=(0,c.q)(),g=(0,s.useFragment)((void 0!==r||(r=t(87357)).hash&&"2e57884455b9f67b886230ee4f68e7b4"!==r.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."),r),n||null),[w,I]=(0,i.useState)(!1),[b,R]=(0,i.useState)(!1),[k,j]=(0,i.useState)(!1),$=(0,d.aC)(),C=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"QuickPostResourceType":return{type:"QuickPost",editURL:`${e}/wp-admin/post.php?post=${n.wpId}&action=edit`};case"%other":return null}}(m,g);return((0,i.useEffect)(()=>{let e="";function n(n){let t=n.key;if(t&&1!==t.length||n.target!==document.body)return;let r=w?l.$Z:l.wb;w&&C&&t===l.Jm&&window.open(C.editURL,"_blank"),w&&b||((e+=t)!==r.slice(0,e.length)?e=t===r[0]?t:"":e.length===r.length&&(e="",r===l.wb?I(!0):R(!0)))}return document.body.addEventListener("keyup",n),()=>{document.body.removeEventListener("keyup",n)}},[b,C,w]),w)?(0,u.jsxs)("div",{className:"ap3viy1",onMouseOver:()=>{j(!0)},onMouseLeave:()=>{j(!1)},children:[(0,u.jsx)(p,{className:(0,a.Z)(k&&"ap3viy5",b&&"ap3viy6")}),k&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("h2",{className:f,children:"Quick Admin"}),(0,u.jsxs)("ul",{children:[h&&(0,u.jsx)(x,{href:`${m}/wp-admin/post-new.php?post_type=vm_quickpost`,children:"New QuickPost"}),(0,u.jsx)(x,{href:`${m}/wp-admin/post-new.php`,children:"New Post"}),C&&(0,u.jsxs)(x,{href:C.editURL,children:["Edit ",C.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"}),g&&"featuredImage"in g&&g.featuredImage&&(0,u.jsx)(x,{href:g.featuredImage.image.originalUrl,children:"View Original Image"}),g&&"featuredImage"in g&&g.featuredImage&&(0,u.jsx)(x,{href:`${m}/wp-admin/upload.php?item=${g.featuredImage.image.wpId}`,children:"Edit Image"}),o.dm&&$.viewer?.coral&&(0,u.jsx)(u.Fragment,{children:(0,u.jsx)(x,{href:`${o.dm}/admin/moderate#accessToken=${encodeURIComponent($.viewer.coral)}`,children:"Comment Moderation"})})]}),g&&b&&(0,u.jsxs)("section",{className:"ap3viy7",children:[(0,u.jsx)("h2",{className:f,children:"Dev"}),(0,u.jsxs)("ul",{children:["wpId"in g&&(0,u.jsx)(v,{name:"Wp Id",value:g.wpId}),"id"in g&&(0,u.jsx)(v,{name:"Node Id",value:g.id,base64:!0}),"primaryCategory"in g&&(0,u.jsx)(v,{name:"Primary Catgory Id",value:g.primaryCategory.id,base64:!0}),"chorusId"in g&&g.chorusId&&(0,u.jsx)(v,{name:"Legacy Id",value:g.chorusId}),"chorusUuid"in g&&g.chorusUuid&&(0,u.jsx)(v,{name:"Legacy UUID",value:g.chorusUuid}),(0,u.jsx)(v,{name:"Deploy Env",value:y})]})]})]})]}):null},{context:"AdminContainerErrorBoundary"})},92783:function(e,n,t){t.d(n,{dG:function(){return l},m3:function(){return a}});var r=t(64637);let a=()=>"undefined"!=typeof window?(window.pageloadId||(window.pageloadId=(0,r.Z)()),window.pageloadId):null,i={install:function(e){return e.disableRefresh={method:this.handleRefreshRequest.bind(this),context:this},e},handleRefreshRequest(e,n,t){let r=new CustomEvent(n.refreshImmediately?"refreshImmediately":"refreshEligibilityToggle",{bubbles:!0,detail:n});e.el.dispatchEvent(r),t()}},s={install:function(e){return e.reverbPlayer={method:this.handleReverbPlugin.bind(this),context:this},e},handleReverbPlugin(e,n,t){let r=e.el,a=document.createElement("div");a.id="reverb-main",r.parentNode?.insertBefore(a,r);let i=document.createElement("script");i.type="text/javascript",i.src=`https://cdn.concert.io/reverb-video/${n}.js`,r.parentNode?.insertBefore(i,r),r.style.display="none",t()}},l=e=>{if(!window.ConcertConcierge||Date.now()n?"errorCode"in n?(0,a.jsx)(r.Z,{errorCode:n.errorCode,errorName:n.errorName,errorMessage:n.errorMessage}):(0,a.jsx)(e,{...n}):null}},32519:function(e,n,t){t.d(n,{Z:function(){return s}});var r=t(31561),a=t(35458),i=t(55484);t(32762);var s=({code:e,name:n,message:t,customStyles:s={}})=>(0,r.jsx)("div",{id:"content",className:(0,a.Z)("_1yk8x9l0",s.container),children:(0,r.jsx)("div",{className:"_1yk8x9l1",children:(0,r.jsx)(i.Z,{title:e.toString(),subhead:n,description:t,size:"large",center:!0})})})},37429:function(e,n,t){t.d(n,{Z:function(){return c}});var r=t(31561),a=t(35458),i=t(37254),s=t(32519),l=t(418),o=t(45293),d=t(20352);t(3489);var c=({errorCode:e,errorName:n,errorMessage:t})=>{let{communityName:c}=(0,o.q)().communityConfig;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.PB,{title:(0,d.F)([`${e} Error: ${n||"Server Error"}`],c)}),(0,r.jsx)("main",{className:(0,a.Z)("hz3w2e0",l.F.layout.growContainer),children:(0,r.jsx)(s.Z,{code:e,name:n||(e?`${e} Error`:"Server Error"),message:t||"We're sorry, but something went wrong. Go back to the homepage."})})]})}},20352:function(e,n,t){t.d(n,{F:function(){return r}});let r=(e=[],n)=>{for(let t of e)if(t)return`${t} | ${n}`;return n}}}]);