!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="50bfbe35-ec0d-45df-ac32-3bb170d9ff4f",e._sentryDebugIdIdentifier="sentry-dbid-50bfbe35-ec0d-45df-ac32-3bb170d9ff4f")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1844],{55055:function(e,t,n){var a,r;n.r(t);let i={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"AdminContainer_resolvedResource",selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},a={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},r={alias:null,args:null,kind:"ScalarField",name:"wpId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"globalId",storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"chorusId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"chorusUuid",storageKey:null},{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},r],storageKey:null}],storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"CategoryResourceType",kind:"LinkedField",name:"primaryCategory",plural:!1,selections:[a],storageKey:null}],type:"FeedContentResourceInterface",abstractKey:"__isFeedContentResourceInterface"}],type:"ContentResourceInterface",abstractKey:"__isContentResourceInterface"}],type:"ResolvedResourceInterface",abstractKey:"__isResolvedResourceInterface"};i.hash="c75cbdd71903d1c8cefd82e768577e49",t.default=i},6012:function(e,t,n){n.d(t,{Z:function(){return R}});var a,r=n(4093),i=n(66123),s=n(68705),l=n(98416),d=n(54963),o=n(84994),c=n(84795),u=n(35683),p=({className:e,width:t=20,height:n,fill:a="currentColor"})=>(0,u.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"206 29.9 642.1 681.3",className:e,width:t,height:n,fill:a,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=n(150),h=n(19936);n(21662);var g="_1ds4jca8",y="_1ds4jca9",f="_1ds4jcaa",w="_1ds4jca2";let I="duet-admin-gear",b=e=>{e.currentTarget.select()},v=e=>{let{name:t,value:n,base64:a}=e,r=(0,i.useId)();return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)("li",{className:g,children:[(0,u.jsx)("label",{className:y,htmlFor:r,children:t}),(0,u.jsx)("input",{className:f,type:"text",readOnly:!0,id:r,value:n,onClick:b})]}),a&&(0,u.jsxs)("li",{className:g,children:[(0,u.jsxs)("label",{className:y,htmlFor:`decoded${r}`,children:[t," (decoded)"]}),(0,u.jsx)("input",{className:f,type:"text",readOnly:!0,id:`decoded${r}`,value:atob(n),onClick:b})]})]})},j=e=>{let{href:t,children:n}=e;return(0,u.jsx)("li",{children:(0,u.jsx)("a",{className:"_1ds4jca3",href:t,target:"_blank",rel:"noreferrer",children:n})})};var R=(0,m.n)(e=>{let{resolvedResource:t}=e,{communityConfig:{communityApiOrigin:m},appConfig:{deployEnv:g},featureConfig:{useQuickPosts:y}}=(0,c.q)(),f=(0,s.useFragment)((void 0!==a||(a=n(55055)).hash&&"c75cbdd71903d1c8cefd82e768577e49"!==a.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."),a),t||null),[b,R]=(0,i.useState)(!1),[x,$]=(0,i.useState)(!1),[k,_]=(0,i.useState)(!1),C=(0,o.aC)(),L=function(e,t){if(!t)return null;switch(t.__typename){case"EmbedStoryResourceType":return{type:"Embed Story",editURL:`${e}/wp-admin/post.php?post=${t.wpId}&action=edit`};case"HomepageResourceType":return{type:"Homepage",editURL:`${e}/wp-admin/post.php?post=${t.wpId}&action=edit`};case"PackageResourceType":return{type:"Package",editURL:`${e}/wp-admin/post.php?post=${t.wpId}&action=edit`};case"PageResourceType":return{type:"Page",editURL:`${e}/wp-admin/post.php?post=${t.wpId}&action=edit`};case"PostResourceType":return{type:"Post",editURL:`${e}/wp-admin/post.php?post=${t.wpId}&action=edit`};case"StreamResourceType":return{type:"Stream",editURL:`${e}/wp-admin/post.php?post=${t.wpId}&action=edit`};case"AuthorProfileResourceType":return{type:"Author Profile",editURL:`${e}/wp-admin/post.php?post=${t.wpId}&action=edit`};case"CategoryResourceType":return{type:"Category",editURL:`${e}/wp-admin/term.php?taxonomy=category&tag_ID=${t.wpId}`};case"VideoGameResourceType":return{type:"Game",editURL:`${e}/wp-admin/post.php?post=${t.wpId}&action=edit`};case"QuickPostResourceType":return{type:"QuickPost",editURL:`${e}/wp-admin/post.php?post=${t.wpId}&action=edit`};case"VenueResourceType":return{type:"Venue",editURL:`${e}/wp-admin/post.php?post=${t.wpId}&action=edit`};case"MapResourceType":return{type:"Map",editURL:`${e}/wp-admin/post.php?post=${t.wpId}&action=edit`};case"NeighborhoodResourceType":return{type:"Neighborhood",editURL:`${e}/wp-admin/post.php?post=${t.wpId}&action=edit`};case"%other":return null}}(m,f);return((0,i.useEffect)(()=>{let e="";function t(t){let n=t.key;if(n&&1!==n.length||t.target!==document.body)return;let a=b?l.$Z:l.wb;b&&L&&n===l.Jm&&window.open(L.editURL,"_blank"),b&&x||((e+=n)!==a.slice(0,e.length)?e=n===a[0]?n:"":e.length===a.length&&(e="",a===l.wb?(R(!0),(0,h.d8)(I,"visible",365)):($(!0),(0,h.d8)(I,"dev",365))))}switch((0,h.ej)(I)){case"dev":R(!0),$(!0);break;case"visible":R(!0)}return document.body.addEventListener("keyup",t),()=>{document.body.removeEventListener("keyup",t)}},[x,L,b]),b)?(0,u.jsxs)("div",{className:"_1ds4jca1",onMouseOver:()=>{_(!0)},onMouseLeave:()=>{_(!1)},children:[(0,u.jsx)(p,{className:(0,r.Z)(k&&"_1ds4jca5",x&&"_1ds4jca6")}),k&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("h2",{className:w,children:"Quick Admin"}),(0,u.jsxs)("ul",{children:[y&&(0,u.jsx)(j,{href:`${m}/wp-admin/post-new.php?post_type=vm_quickpost`,children:"New QuickPost"}),(0,u.jsx)(j,{href:`${m}/wp-admin/post-new.php`,children:"New Post"}),L&&(0,u.jsxs)(j,{href:L.editURL,children:["Edit ",L.type]}),(0,u.jsx)(j,{href:`${m}/wp-admin/edit.php`,children:"Dashboard"}),(0,u.jsx)(j,{href:`${m}/wp-admin/edit-tags.php?taxonomy=category`,children:"Categories"}),f&&"featuredImage"in f&&f.featuredImage&&(0,u.jsx)(j,{href:f.featuredImage.image.originalUrl,children:"View Original Image"}),f&&"featuredImage"in f&&f.featuredImage&&(0,u.jsx)(j,{href:`${m}/wp-admin/upload.php?item=${f.featuredImage.image.wpId}`,children:"Edit Image"}),d.dm&&C.viewer?.coral&&(0,u.jsx)(u.Fragment,{children:(0,u.jsx)(j,{href:`${d.dm}/admin/moderate#accessToken=${encodeURIComponent(C.viewer.coral)}`,children:"Comment Moderation"})})]}),f&&x&&(0,u.jsxs)("section",{className:"_1ds4jca7",children:[(0,u.jsx)("h2",{className:w,children:"Dev"}),(0,u.jsxs)("ul",{children:["wpId"in f&&(0,u.jsx)(v,{name:"Wp Id",value:f.wpId}),"id"in f&&(0,u.jsx)(v,{name:"Node Id",value:f.id,base64:!0}),"globalId"in f&&(0,u.jsx)(v,{name:"Global Id",value:f.globalId}),"primaryCategory"in f&&f.primaryCategory&&(0,u.jsx)(v,{name:"Primary Catgory Id",value:f.primaryCategory.id,base64:!0}),"chorusId"in f&&f.chorusId&&(0,u.jsx)(v,{name:"Legacy Id",value:f.chorusId}),"chorusUuid"in f&&f.chorusUuid&&(0,u.jsx)(v,{name:"Legacy UUID",value:f.chorusUuid}),(0,u.jsx)(v,{name:"Deploy Env",value:g})]})]})]})]}):null},{context:"AdminContainerErrorBoundary"})},3694:function(e,t,n){n.d(t,{dG:function(){return l},m3:function(){return r}});var a=n(45039);let r=()=>"undefined"!=typeof window?(window.pageloadId||(window.pageloadId=(0,a.Z)()),window.pageloadId):null,i={install:function(e){return e.disableRefresh={method:this.handleRefreshRequest.bind(this),context:this},e},handleRefreshRequest(e,t,n){let a=new CustomEvent(t.refreshImmediately?"refreshImmediately":"refreshEligibilityToggle",{bubbles:!0,detail:t});e.el.dispatchEvent(a),n()}},s={install:function(e){return e.reverbPlayer={method:this.handleReverbPlugin.bind(this),context:this},e},handleReverbPlugin(e,t,n){let a=e.el,r=document.createElement("div");r.id="reverb-main",a.parentNode?.insertBefore(r,a);let i=document.createElement("script");i.type="text/javascript",i.src=`https://cdn.concert.io/reverb-video/${t}.js`,a.parentNode?.insertBefore(i,a),a.style.display="none",n()}},l=e=>{if(!window.ConcertConcierge||Date.now(){let e=(0,a.ej)("_gaexp"),t=e.split(".");if(0===e.length)return null;let n=[],r=[];return t.forEach((e,t)=>{t<=1||(22===e.length?n.push(e):1===e.length&&r.push(e))}),{"Google Optimize Experiment ID":n.join(","),"Google Optimize Experiment Variant":r.join(",")}},i=(e,t,n)=>n?e.toLowerCase().replace(/ /g,""):t.replace(".com","").replace("www.","")},40378:function(e,t,n){n.d(t,{F:function(){return a}});let a=(e=[],t)=>{for(let n of e)if(n)return`${n} | ${t}`;return t}}}]);