Files
roi-theme/wp-content/plugins/google-site-kit/dist/assets/js/googlesitekit-modules-reader-revenue-manager-0eaef957f6a1121c2632.js
root a22573bf0b Commit inicial - WordPress Análisis de Precios Unitarios
- WordPress core y plugins
- Tema Twenty Twenty-Four configurado
- Plugin allow-unfiltered-html.php simplificado
- .gitignore configurado para excluir wp-config.php y uploads

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-03 21:04:30 -06:00

32 lines
146 KiB
JavaScript
Executable File
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
"use strict";(globalThis.__googlesitekit_webpackJsonp=globalThis.__googlesitekit_webpackJsonp||[]).push([[994],{2362:(e,t,i)=>{i.d(t,{A:()=>g});var n=i(4452),o=i.n(n),r=i(62688),s=i.n(r),a=i(63696),l=i(62540);const c=(0,a.forwardRef)(({label:e,className:t,hasLeftSpacing:i=!1,...n},r)=>(0,l.jsx)("span",{ref:r,...n,className:o()("googlesitekit-badge",t,{"googlesitekit-badge--has-left-spacing":i}),children:e}));c.displayName="Badge",c.propTypes={label:s().string.isRequired,hasLeftSpacing:s().bool};const g=c},2522:(e,t,i)=>{i.d(t,{D:()=>r});var n=i(32091),o=i.n(n);function r(e,{dateRangeLength:t}){o()(Array.isArray(e),"report must be an array to partition."),o()(Number.isInteger(t)&&t>0,"dateRangeLength must be a positive integer.");const i=-1*t;return{currentRange:e.slice(i),compareRange:e.slice(2*i,i)}}},3687:(e,t,i)=>{i.d(t,{U:()=>I});var n=i(32091),o=i.n(n),r=i(17243),s=i(21125),a=i(71769),l=i(12850),c=i(50539);function g(e){return e}function u(){return{}}function d(){}const{clearError:p,receiveError:m}=s.o1;function I({baseName:e,controlCallback:t,reducerCallback:i=g,argsToParams:n=u,validateParams:s=d}){let I;o()(e,"baseName is required."),o()("function"==typeof t,"controlCallback is required and must be a function."),o()("function"==typeof i,"reducerCallback must be a function."),o()("function"==typeof n,"argsToParams must be a function."),o()("function"==typeof s,"validateParams must be a function.");try{s(n()),I=!1}catch(e){I=!0}const h=(0,a.m2)(e),y=(0,a.sP)(e),M=`FETCH_${y}`,f=`START_${M}`,N=`FINISH_${M}`,j=`CATCH_${M}`,b=`RECEIVE_${y}`,D=`fetch${h}`,S=`receive${h}`,k=`isFetching${h}`,x={[k]:{}};const v={[D](...t){const i=n(...t);return s(i),function*(t,i){let n,o;yield{payload:{params:t},type:f},yield p(e,i);try{n=yield{payload:{params:t},type:M},yield v[S](n,t),yield{payload:{params:t},type:N}}catch(n){o=n,yield m(o,e,i),yield{payload:{params:t},type:j}}return{response:n,error:o}}(i,t)},[S]:(e,t)=>(o()(void 0!==e,"response is required."),I?(o()((0,r.isPlainObject)(t),"params is required."),s(t)):t={},{payload:{response:e,params:t},type:b})},A={[M]:({payload:e})=>t(e.params)},T=(0,c.createReducer)((e,{type:t,payload:n})=>{switch(t){case f:{const{params:t}=n;return e[k]=e[k]||{},e[k][(0,l.Zm)(t)]=!0,e}case b:{const{response:t,params:o}=n;return i(e,t,o)}case N:{const{params:t}=n;return e[k]=e[k]||{},e[k][(0,l.Zm)(t)]=!1,e}case j:{const{params:t}=n;return e[k]=e[k]||{},e[k][(0,l.Zm)(t)]=!1,e}default:return e}});return{initialState:x,actions:v,controls:A,reducer:T,resolvers:{},selectors:{[k]:(e,...t)=>{if(void 0===e[k])return!1;let i;try{i=n(...t),s(i)}catch(e){return!1}return!!e[k][(0,l.Zm)(i)]}}}}},3714:(e,t,i)=>{i.d(t,{Kk:()=>r,SZ:()=>n,Yw:()=>s,oJ:()=>a,tT:()=>o});const n="body",o=[n,"display","headline","label","title"],r="small",s="medium",a=[r,s,"large"]},3782:(e,t,i)=>{i.d(t,{A:()=>CTAButton});var n=i(62688),o=i.n(n),r=i(49383),s=i(62540);function CTAButton({label:e,ariaLabel:t,disabled:i,inProgress:n,onClick:o,href:a}){return e&&(o||a)?(0,s.jsx)(r.SpinnerButton,{className:"googlesitekit-banner__cta","aria-label":t,disabled:i||n,isSaving:n,onClick:o,href:a,children:e}):null}CTAButton.propTypes={label:o().string,ariaLabel:o().string,disabled:o().bool,inProgress:o().bool,onClick:o().func,href:o().string,dismissOnClick:o().bool,dismissOptions:o().shape({expiresInSeconds:o().number,skipHidingFromQueue:o().bool})}},7070:(e,t,i)=>{i.d(t,{A:()=>s});var n=i(63696),o=i(77766),r=i(12850);function s(e,t,{viewAction:i="view_notification",confirmAction:s="confirm_notification",dismissAction:a="dismiss_notification",clickLearnMoreAction:l="click_learn_more_link"}={}){const c=(0,o.A)(),g=null!=t?t:`${c}_${e}`;return{view:(0,n.useCallback)((...e)=>(0,r.sx)(g,i,...e),[g,i]),confirm:(0,n.useCallback)((...e)=>(0,r.sx)(g,s,...e),[g,s]),dismiss:(0,n.useCallback)((...e)=>(0,r.sx)(g,a,...e),[g,a]),clickLearnMore:(0,n.useCallback)((...e)=>(0,r.sx)(g,l,...e),[g,l])}}},7081:(e,t,i)=>{i.d(t,{F:()=>o,n:()=>n});const n="core/ui",o="activeContextID"},7184:(e,t,i)=>{i.d(t,{A:()=>h});var n=i(4452),o=i.n(n),r=i(62688),s=i.n(r),a=i(63696),l=i(32947),c=i(62540);function TitleIcon({className:e,children:t}){return(0,c.jsx)("div",{className:o()("googlesitekit-banner__title-icon",e),children:t})}function Title({className:e,children:t}){return(0,c.jsx)("p",{className:o()("googlesitekit-banner__title",e),children:t})}TitleIcon.propTypes={className:s().string,children:s().node},Title.propTypes={className:s().string,children:s().node};var g=i(12850),u=i(30823);function Description({className:e,description:t,learnMoreLink:i,additionalDescription:n,children:r}){return(0,c.jsxs)("div",{className:o()("googlesitekit-banner__description",e),children:[(0,a.isValidElement)(t)?t:"string"==typeof t?(0,c.jsx)("span",{dangerouslySetInnerHTML:(0,g.p9)(t,{ALLOWED_TAGS:["strong","em","br","a"],ALLOWED_ATTR:["href"]})}):t," ",i?.href&&(0,c.jsx)(u.A,{...i}),n&&(0,c.jsx)("div",{className:"googlesitekit-banner__additional-description",children:n}),r]})}function HelpText({className:e,children:t}){return(0,c.jsx)("p",{className:o()("googlesitekit-banner__help-text",e),children:t})}Description.propTypes={className:s().string,description:s().oneOfType([s().string,s().node]),learnMoreLink:s().shape(u.A.propTypes),additionalDescription:s().oneOfType([s().string,s().node]),children:s().node},HelpText.propTypes={className:s().string,children:s().node};var d=i(3782),p=i(29584);function Footer({className:e,children:t}){return(0,c.jsx)("div",{className:o()("googlesitekit-banner__footer",e),children:t})}Footer.propTypes={className:s().string,children:s().node};var m=i(80035);const I=(0,a.forwardRef)(({className:e,titleIcon:t,title:i,description:n,additionalDescription:r,errorText:s,helpText:a,learnMoreLink:g,dismissButton:u,ctaButton:I,svg:h,footer:y},M)=>{const f=(0,l.dv)(),N=f===l.mp||f===l.Lg;let j=null;N&&h?.mobile?j=h.mobile:!N&&h?.desktop&&(j=h.desktop);const b=h?.verticalPosition?h.verticalPosition:"center";return(0,c.jsxs)("div",{ref:M,className:o()("googlesitekit-banner",e),children:[(0,c.jsxs)("div",{className:"googlesitekit-banner__content",children:[t&&(0,c.jsx)(TitleIcon,{children:t}),(0,c.jsx)(Title,{children:i}),(0,c.jsx)(Description,{description:n,learnMoreLink:g,additionalDescription:r}),a&&(0,c.jsx)(HelpText,{children:a}),s&&(0,c.jsx)(m.A,{type:"error",description:s}),(0,c.jsxs)("div",{className:"googlesitekit-notice__action",children:[I&&(0,c.jsx)(d.A,{...I}),u?.onClick&&(0,c.jsx)(p.A,{...u})]})]}),j&&(0,c.jsx)("div",{className:o()("googlesitekit-banner__svg-wrapper",{[`googlesitekit-banner__svg-wrapper--${b}`]:b}),style:{backgroundImage:`url(${j})`}}),y&&(0,c.jsx)(Footer,{children:y})]})});I.propTypes={titleIcon:s().node,title:s().string,description:s().oneOfType([s().string,s().node]),additionalDescription:s().oneOfType([s().string,s().node]),errorText:s().string,helpText:s().string,learnMoreLink:s().shape(u.A.propTypes),dismissButton:s().shape(p.A.propTypes),ctaButton:s().shape(d.A.propTypes),svg:s().shape({desktop:s().elementType,mobile:s().elementType,verticalPosition:s().oneOf(["top","center","bottom"])}),footer:s().node};const h=I},8143:(e,t,i)=>{i.d(t,{VZ:()=>r,dc:()=>s,pH:()=>o,r0:()=>a});var n=i(84024);function o(e){try{return new URL(e).pathname}catch{}return null}function r(e,t){try{return new URL(t,e).href}catch{}return("string"==typeof e?e:"")+("string"==typeof t?t:"")}function s(e){return"string"!=typeof e?e:e.replace(/^https?:\/\/(www\.)?/i,"").replace(/\/$/,"")}function a(e,t){if(!(0,n.m)(e))return e;if(e.length<=t)return e;const i=new URL(e),o=e.replace(i.origin,"");if(o.length<t)return o;const r=o.length-Math.floor(t)+1;return"…"+o.substr(r)}},12850:(e,t,i)=>{i.d(t,{tt:()=>k,Jg:()=>S,Gp:()=>b,GH:()=>j,r0:()=>D,Du:()=>x,Zf:()=>F,Cn:()=>P,G7:()=>h,vH:()=>I,N_:()=>w,zh:()=>H,mK:()=>g.mK,Ql:()=>v,vY:()=>R,sq:()=>T,VZ:()=>G.VZ,JK:()=>g.JK,IS:()=>_,pH:()=>G.pH,kf:()=>U,O5:()=>C,Qr:()=>A,x6:()=>B,K5:()=>g.K5,S_:()=>m,dc:()=>G.dc,Eo:()=>g.Eo,jq:()=>g.jq,DK:()=>Q.D,N9:()=>Z,p9:()=>r.p,XH:()=>E,Zm:()=>l,sx:()=>o.sx,BI:()=>o.BI,CZ:()=>r.C,BG:()=>Y});var n=i(17243),o=i(89318),r=i(82046),s=i(10523),a=i.n(s);function l(e){return a()(JSON.stringify(c(e)))}function c(e){const t={};return Object.keys(e).sort().forEach(i=>{let n=e[i];n&&"object"==typeof n&&!Array.isArray(n)&&(n=c(n)),t[i]=n}),t}var g=i(79829);function u(e){return e.replace(new RegExp("\\[([^\\]]+)\\]\\((https?://[^/]+\\.\\w+/?.*?)\\)","gi"),'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>')}function d(e){return`<p>${e.replace(/\n{2,}/g,"</p><p>")}</p>`}function p(e){return e.replace(/\n/gi,"<br>")}function m(e){const t=[u,d,p];let i=e;for(const e of t)i=e(i);return i}function I(e){return e=parseFloat(e),isNaN(e)||0===e?[0,0,0,0]:[Math.floor(e/60/60),Math.floor(e/60%60),Math.floor(e%60),Math.floor(1e3*e)-1e3*Math.floor(e)]}function h(e){const t=e&&!Number.isInteger(e)?new Date(e).getTime():e;return isNaN(t)||!t?0:t}var y=i(32091),M=i.n(y),f=i(82871);const N="Date param must construct to a valid date instance or be a valid date instance itself.",j="Invalid dateString parameter, it must be a string.",b='Invalid date range, it must be a string with the format "last-x-days".',D=60,S=60*D,k=24*S,x=7*k;function v(){function e(e){return(0,f.sprintf)(/* translators: %s: number of days */ /* translators: %s: number of days */
(0,f._n)("Last %s day","Last %s days",e,"google-site-kit"),e)}return{"last-7-days":{slug:"last-7-days",label:e(7),days:7},"last-14-days":{slug:"last-14-days",label:e(14),days:14},"last-28-days":{slug:"last-28-days",label:e(28),days:28},"last-90-days":{slug:"last-90-days",label:e(90),days:90}}}function A(e=""){if(!(0,n.isString)(e))return!1;if(3!==e.split("-").length)return!1;const t=new Date(e);return(0,n.isDate)(t)&&!isNaN(t)}function T(e){M()((0,n.isDate)(e)&&!isNaN(e),N);const t=`${e.getMonth()+1}`,i=`${e.getDate()}`;return[e.getFullYear(),t.length<2?`0${t}`:t,i.length<2?`0${i}`:i].join("-")}function E(e){M()(A(e),j);const[t,i,n]=e.split("-");return new Date(t,i-1,n)}function _(e,t){return T(w(e,t*k))}function C(e){const t=e.split("-");return 3===t.length&&"last"===t[0]&&!Number.isNaN(t[1])&&!Number.isNaN(parseFloat(t[1]))&&"days"===t[2]}function w(e,t){M()(A(e)||(0,n.isDate)(e)&&!isNaN(e),j);const i=A(e)?Date.parse(e):e.getTime();return new Date(i-1e3*t)}var O=i(69743),z=i(94552),L=i(62540);function R(e,t={}){if(Number.isNaN(Number(e)))return"";const{invertColor:i=!1}=t;return(0,O.Ay)((0,L.jsx)(z.A,{direction:e>0?"up":"down",invertColor:i}))}function P(e,t){return e>0&&t>0?e/t-1:e>0?1:t>0?-1:0}var G=i(8143);function B(e){const t=parseFloat(e)||0;return!!Number.isInteger(t)&&t>0}function U(e){if("number"==typeof e)return!0;const t=(e||"").toString();return!!t&&!isNaN(t)}function Z(e){return Array.isArray(e)?[...e].sort():e}var Q=i(2522);function F(e,t){function i(e){return"0"===e||0===e}if(i(e)&&i(t))return 0;if(i(e)||Number.isNaN(e))return null;const n=(t-e)/e;return Number.isNaN(n)||!Number.isFinite(n)?null:n}function Y(e){try{return JSON.parse(e)&&!!e}catch(e){return!1}}function H(e){if(!e)return"";const t=e.replace(/&#(\d+);/g,(e,t)=>String.fromCharCode(t)).replace(/(\\)/g,"");return(0,n.unescape)(t)}},13620:e=>{e.exports=googlesitekit.modules},14007:(e,t,i)=>{i.d(t,{A:()=>l});var n=i(47209),o=i(62688),r=i.n(o),s=i(63696),a=i(78325);function Portal({children:e,slug:t}){const[i]=(0,s.useState)(document.createElement("div"));return(0,n.A)(()=>{t&&i.classList.add(`googlesitekit-portal-${t}`);const e=document.querySelector(".googlesitekit-plugin")||document.body;return e.appendChild(i),()=>e.removeChild(i)}),(0,a.createPortal)(e,i)}Portal.propTypes={slug:r().string,children:r().node},Portal.defaultProps={slug:"",children:null};const l=Portal},15167:(e,t,i)=>{i.d(t,{A:()=>Typography});var n=i(62688),o=i.n(n),r=i(4452),s=i.n(r),a=i(3714),l=i(62540);function Typography({className:e,type:t,size:i,as:n="span",children:o,...r}){return(0,l.jsx)(n,{className:s()("googlesitekit-typography",e,{[`googlesitekit-typography--${t}`]:t&&a.tT.includes(t),[`googlesitekit-typography--${i}`]:i&&a.oJ.includes(i)}),...r,children:o})}Typography.propTypes={className:o().string,type:o().oneOf(a.tT),size:o().oneOf(a.oJ),as:o().oneOfType([o().string,o().elementType])}},15210:(e,t,i)=>{i.d(t,{O:()=>o});var n=i(31234);const o=i.n(n)()(i.g)},15577:(e,t,i)=>{i.d(t,{SO:()=>c});var n=i(55620),o=i(99123);const r={},s=void 0===i.g?null:i.g;function a(){return[i.g.innerWidth,i.g.innerHeight]}function l(e=r){const{fps:t,leading:i,initialWidth:l=0,initialHeight:c=0}=e,[g,u]=(0,n._)("undefined"==typeof document?[l,c]:a,t,i);function d(){return u(a)}return(0,o.A)(s,"resize",d),(0,o.A)(s,"orientationchange",d),g}function c(e){return l(e)[0]}},15863:(e,t,i)=>{i.d(t,{i:()=>s});var n=i(63696),o=i(50539),r=i(7081);function s(e){const{setValue:t}=(0,o.useDispatch)(r.n);return(0,n.useCallback)(()=>{t("admin-screen-tooltip",{isTooltipVisible:!0,...e})},[t,e])}},17691:(e,t,i)=>{i.d(t,{A:()=>s,G:()=>r});var n=i(62688),o=i.n(n);const r=" ";function DisplaySetting({value:e}){return e||r}DisplaySetting.propTypes={value:o().oneOfType([o().string,o().bool,o().number])};const s=DisplaySetting},17911:(e,t,i)=>{var n=i(50539),o=i.n(n),r=i(13620),s=i.n(r),a=i(46935),l=i.n(a),c=i(82871),g=i(82286),u=i(93896);const d="modules/reader-revenue-manager",p={ONBOARDING_COMPLETE:"ONBOARDING_COMPLETE",ONBOARDING_ACTION_REQUIRED:"ONBOARDING_ACTION_REQUIRED",PENDING_VERIFICATION:"PENDING_VERIFICATION",UNSPECIFIED:"ONBOARDING_STATE_UNSPECIFIED"},m="readerRevenueManagerSetupForm",I="readerRevenueManagerNoticesForm",h="showPublicationCreate",y="resetPublications",M="syncPublication";var f=i(62688),N=i.n(f),j=i(63696),b=i(49383),D=i(20898),S=i(30679),k=i(78340),x=i(20678),v=i(12850),A=i(77766),T=i(42125),E=i(80035),_=i(27333),C=i(62540);const{PENDING_VERIFICATION:w,ONBOARDING_ACTION_REQUIRED:O}=p;function PublicationOnboardingStateNotice(){const e=(0,A.A)(),t=(0,n.useSelect)(e=>e(d).getPublicationOnboardingState()),i=[w,O],o=(0,n.useSelect)(e=>e(d).getPublicationID()),r=(0,n.useSelect)(e=>e(d).getServiceURL({path:"reader-revenue-manager",query:{publication:o}})),s=(0,_.A)(I,M)&&i.includes(t),{setValues:a}=(0,n.useDispatch)(k.s),{syncPublicationOnboardingState:l}=(0,n.useDispatch)(d),g=t&&i.includes(t),u=(0,j.useCallback)(()=>{a(I,{[M]:!0}),(0,v.sx)(`${e}_rrm-onboarding-state-notification`,"confirm_notification",t)},[t,a,e]),p=(0,j.useCallback)(()=>{s&&l()},[s,l]);if((0,j.useEffect)(()=>{g&&(0,v.sx)(`${e}_rrm-onboarding-state-notification`,"view_notification",t)},[t,g,e]),(0,T.$)(p,15e3),!g)return null;const m=w===t?(0,c.__)("Your publication is still awaiting review. You can check its status in Reader Revenue Manager.","google-site-kit"):(0,c.__)("Your publication requires further setup in Reader Revenue Manager","google-site-kit"),h=w===t?(0,c.__)("Check publication status","google-site-kit"):(0,c.__)("Complete publication setup","google-site-kit");return(0,C.jsx)(E.A,{type:E.A.TYPES.WARNING,className:"googlesitekit-publication-onboarding-state-notice",title:m,ctaButton:{label:h,onClick:u,href:r,external:!0}})}var z=i(13606),L=i(83366),R=i(44174),P=i(15167);function PublicationCreate({onCompleteSetup:e}){const t=(0,n.useSelect)(e=>e(d).getPublications()),i=(0,n.useSelect)(e=>e(d).getCreatePublicationLinkURL()),{setValues:o}=(0,n.useDispatch)(k.s),{selectPublication:r}=(0,n.useDispatch)(d),s=t&&t.length>0,a=(0,j.useCallback)(()=>{o(m,{[y]:!0})},[o]),l=(0,j.useCallback)(async()=>{s&&(await r(t[0]),e())},[s,e,t,r]);return void 0===t?null:(0,C.jsxs)("div",{className:"googlesitekit-setup-module__publication-create-screen",children:[!s&&(0,C.jsxs)(j.Fragment,{children:[(0,C.jsx)(P.A,{as:"h3",type:"body",size:"medium",className:"googlesitekit-setup-module__title",children:(0,c.__)("To complete your Reader Revenue Manager account setup you will need to create a publication and set up Reader Revenue Manager in Publisher Center.","google-site-kit")}),(0,C.jsx)("p",{className:"googlesitekit-setup-module__description",children:(0,z.A)((0,c.__)("Once you have created your publication, it is submitted for review. <a>Learn more</a>","google-site-kit"),{a:(0,C.jsx)(R.A,{path:"/news/publisher-center/answer/11449914","aria-label":(0,c.__)("Learn more about setting up Reader Revenue Manager","google-site-kit"),external:!0})})}),(0,C.jsx)("div",{className:"googlesitekit-setup-module__action",children:(0,C.jsx)(b.Button,{href:i,target:"_blank",trailingIcon:(0,C.jsx)(L.A,{width:14,height:14}),onClick:a,children:(0,c.__)("Create publication","google-site-kit")})})]}),s&&(0,C.jsxs)(j.Fragment,{children:[(0,C.jsx)(P.A,{as:"h3",type:"body",size:"medium",className:"googlesitekit-setup-module__title",children:(0,c.__)("You have successfully created your publication and it is now awaiting review. This might take up to 2 weeks.","google-site-kit")}),(0,C.jsx)("div",{className:"googlesitekit-setup-module__action",children:(0,C.jsx)(b.SpinnerButton,{onClick:l,children:(0,c.__)("Complete setup","google-site-kit")})})]})]})}PublicationCreate.propTypes={onCompleteSetup:N().func.isRequired};var G=i(4452),B=i.n(G);function U(e){return"string"==typeof e&&/^[a-zA-Z0-9_-]+$/.test(e)}function PublicationSelect(e){const{isDisabled:t,hasModuleAccess:i,className:o,onChange:r=()=>{}}=e,s=(0,n.useSelect)(e=>e(d).getPublicationID()),a=(0,n.useSelect)(e=>!1===i||t?null:e(d).getPublications()||[]),l=(0,n.useSelect)(e=>!1===i||t||e(d).hasFinishedResolution("getPublications")),{selectPublication:g}=(0,n.useDispatch)(d),u=(0,j.useCallback)((e,t)=>{const i=t.dataset.value,n=a.find(({publicationId:e})=>e===i);g(n),r(n)},[a,g,r]);if(!l)return(0,C.jsx)(b.ProgressBar,{mobileVerticalSpacing:76,desktopVerticalSpacing:84,small:!0});const p=void 0===s||""===s||U(s);return!1===i?(0,C.jsx)(b.Select,{className:B()(o),label:(0,c.__)("Publication","google-site-kit"),value:s,enhanced:!0,outlined:!0,disabled:!0,children:(0,C.jsx)(b.Option,{value:s,children:s})}):(0,C.jsx)(b.Select,{className:B()(o,{"mdc-select--invalid":!p}),label:(0,c.__)("Publication","google-site-kit"),value:s,onEnhancedChange:u,disabled:t,enhanced:!0,outlined:!0,children:(a||[]).map(({publicationId:e,displayName:t})=>(0,C.jsx)(b.Option,{value:e,children:(0,c.sprintf)(/* translators: 1: Publication display name, 2: Publication ID */ /* translators: 1: Publication display name, 2: Publication ID */
(0,c.__)("%1$s (%2$s)","google-site-kit"),t,e)},e))})}PublicationSelect.propTypes={isDisabled:N().bool,hasModuleAccess:N().bool,className:N().string,onChange:N().func};const Z=(0,j.createContext)({}),{Consumer:Q,Provider:F}=Z,Y=Z;function ChipMultiSelect({children:e,onToggleChip:t=()=>{}}){return(0,C.jsx)(F,{value:{onToggleChip:t},children:(0,C.jsx)("div",{className:"googlesitekit-chip-multi-select",children:e})})}ChipMultiSelect.propTypes={children:N().node.isRequired,onToggleChip:N().func};var H=i(17243),W=i(80452);function ChipCheckmark(){return(0,C.jsx)("div",{className:"mdc-chip__checkmark",children:(0,C.jsx)(W.A,{className:"mdc-chip__checkmark-svg"})})}function ChipMultiSelectItem({children:e,id:t,selected:i,...n}){const{onToggleChip:o}=(0,j.useContext)(Y);return(0,C.jsx)(b.Chip,{className:"googlesitekit-chip-multi-select__item",CheckMark:ChipCheckmark,onClick:()=>{o(t,!i)},id:t,label:e,selected:i,...n})}function PostTypesSelect(e){const{isDisabled:t,hasModuleAccess:i,onChange:o=()=>{}}=e,r=(0,n.useSelect)(e=>e(u.O4).getPostTypes()),s=(0,n.useSelect)(e=>e(d).getPostTypes()),{setPostTypes:a}=(0,n.useDispatch)(d),l=(0,j.useCallback)(e=>{const t=s.includes(e)?s.filter(t=>t!==e):[...s,e];a(t),o(t)},[o,s,a]);return(0,C.jsx)(ChipMultiSelect,{onToggleChip:l,children:r.map(({slug:e,label:n})=>(0,C.jsx)(ChipMultiSelectItem,{id:e,selected:s.includes(e),disabled:t||!i,children:n},e))})}function V(e,t){if(!Array.isArray(e)||0===e.length)return"";if(!Array.isArray(t)||0===t.length)return e.join(", ");const i=t.filter(t=>e.includes(t.slug));return i.length===t.length?(0,c.__)("All post types","google-site-kit"):i.map(e=>e.label).join(", ")}function J(e){if(!e)return"";const t=e.indexOf(":");return-1===t?e:e.substring(t+1)}function ProductIDSelect(e){const{isDisabled:t,hasModuleAccess:i,showHelperText:o=!0,className:r,onChange:s=()=>{}}=e,a=(0,n.useSelect)(e=>e(d).getProductID()),l=(0,n.useSelect)(e=>e(d).getCurrentProductIDs()),{setProductID:g}=(0,n.useDispatch)(d),u=(0,j.useCallback)((e,t)=>{const i=t.dataset.value;g(i),s(i)},[g,s]);return!1===i?(0,C.jsx)(b.Select,{className:r,label:(0,c.__)("Default Product ID","google-site-kit"),value:a,enhanced:!0,outlined:!0,disabled:!0,children:(0,C.jsx)(b.Option,{value:a,children:a})}):(0,C.jsxs)(b.Select,{className:r,label:(0,c.__)("Default Product ID","google-site-kit"),value:a,onEnhancedChange:u,disabled:t,helperText:o?(0,z.A)((0,c.__)("Product IDs offer a way to link content to payment plans. <a>Learn more</a>","google-site-kit"),{a:(0,C.jsx)(D.A,{"aria-label":(0,c.__)("Learn more about product IDs","google-site-kit"),href:"https://support.google.com/news/publisher-center/answer/12345540",external:!0,hideExternalIndicator:!0})}):void 0,enhanced:!0,outlined:!0,children:[(0,C.jsx)(b.Option,{value:"openaccess",children:(0,c.__)("Open access","google-site-kit")},"openaccess"),(l||[]).map(e=>(0,C.jsx)(b.Option,{value:e,children:J(e)},e))]})}function SnippetModeSelect(e){const{isDisabled:t,hasModuleAccess:i,className:o,onChange:r=()=>{}}=e,s=(0,n.useSelect)(e=>e(d).getSnippetMode()),a=(0,n.useSelect)(e=>e(u.O4).getDocumentationLinkURL("rrm-content-settings")),{setSnippetMode:l}=(0,n.useDispatch)(d),g=(0,j.useCallback)((e,t)=>{const i=t.dataset.value;l(i),r(i)},[l,r]);return!1===i?(0,C.jsx)(b.Select,{className:o,label:(0,c.__)("Display CTAs","google-site-kit"),value:s,enhanced:!0,outlined:!0,disabled:!0,children:(0,C.jsx)(b.Option,{value:s,children:x.z9[s]})}):(0,C.jsx)(b.Select,{className:o,label:(0,c.__)("Display CTAs","google-site-kit"),value:s,onEnhancedChange:g,disabled:t,helperText:(0,z.A)((0,c.__)("Use the new settings in the block editor to customize where your CTAs appear. <a>Learn more</a>","google-site-kit"),{a:(0,C.jsx)(D.A,{"aria-label":(0,c.__)("Learn more about Reader Revenue Manager settings in the block editor","google-site-kit"),href:a,external:!0,hideExternalIndicator:!0})}),enhanced:!0,outlined:!0,children:Object.keys(x.z9).map(e=>(0,C.jsx)(b.Option,{value:e,children:x.z9[e]},e))})}function SetupForm({onCompleteSetup:e}){const t=(0,n.useSelect)(e=>e(d).canSubmitChanges()),i=(0,n.useSelect)(e=>e(d).isDoingSubmitChanges()),o=(0,n.useSelect)(e=>e(d).getPublications()),r=(0,n.useSelect)(e=>e(d).getPublicationID()),s=(0,n.useSelect)(e=>e(d).getCurrentProductIDs()),a=(0,n.useSelect)(e=>e(d).getServiceURL()),{setValues:l}=(0,n.useDispatch)(k.s),{findMatchedPublication:g,selectPublication:u,setProductID:p}=(0,n.useDispatch)(d),I=(0,j.useCallback)(()=>{l(m,{[y]:!0})},[l]),h=(0,j.useCallback)(t=>{t.preventDefault(),e()},[e]),M=(0,j.useCallback)(({products:e})=>{e?.length>0&&e[0].name&&p(e[0].name)},[p]);return(0,j.useEffect)(()=>{r||async function(){const e=await g();e&&(u(e),M(e))}()},[M,g,r,u]),(0,C.jsxs)("form",{onSubmit:h,children:[(0,C.jsx)(S.A,{moduleSlug:x.K$,storeName:d}),(0,C.jsx)("p",{className:"googlesitekit-margin-bottom-0",children:1===o?.length?(0,c.__)("Site Kit will connect your existing publication","google-site-kit"):(0,c.__)("Select your preferred publication to connect with Site Kit","google-site-kit")}),(0,C.jsxs)("div",{className:"googlesitekit-setup-module__inputs",children:[(0,C.jsx)(PublicationSelect,{onChange:e=>M(e)}),s?.length>0&&(0,C.jsx)(ProductIDSelect,{showHelperText:!1})]}),(0,C.jsx)(PublicationOnboardingStateNotice,{}),(0,C.jsx)(D.A,{href:a,onClick:I,external:!0,children:(0,c.__)("Manage publications in Publisher Center","google-site-kit")}),(0,C.jsx)("div",{className:"googlesitekit-setup-module__action",children:(0,C.jsx)(b.SpinnerButton,{disabled:!t||i,isSaving:i,children:(0,c.__)("Complete setup","google-site-kit")})})]})}ChipMultiSelectItem.propTypes={children:N().string.isRequired,id:N().string.isRequired,...(0,H.omit)(b.Chip.propTypes,"label")},PostTypesSelect.propTypes={isDisabled:N().bool,hasModuleAccess:N().bool,onChange:N().func},ProductIDSelect.propTypes={isDisabled:N().bool,hasModuleAccess:N().bool,showHelperText:N().bool,className:N().string,onChange:N().func},SnippetModeSelect.propTypes={isDisabled:N().bool,hasModuleAccess:N().bool,className:N().string,onChange:N().func},SetupForm.propTypes={onCompleteSetup:N().func.isRequired};var $,X,K,q,ee,te,ie=i(81276);function ne(){return ne=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)({}).hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},ne.apply(null,arguments)}const oe=e=>j.createElement("svg",ne({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 40 40"},e),$||($=j.createElement("path",{fill:"url(#reader-revenue-manager_svg__a)",d:"M26.666 0H13.333v13.333h13.333z"})),X||(X=j.createElement("path",{fill:"#FBBC04",d:"M40 13.335V40L26.667 26.667V0z"})),K||(K=j.createElement("path",{fill:"#0D652D",d:"M13.333 26.665V40L0 26.665z"})),q||(q=j.createElement("path",{fill:"#34A853",d:"M13.333 13.333v13.332H0V0z"})),ee||(ee=j.createElement("path",{fill:"url(#reader-revenue-manager_svg__b)",d:"M26.666 26.665H13.333V40h13.333z"})),te||(te=j.createElement("defs",null,j.createElement("linearGradient",{id:"reader-revenue-manager_svg__a",x1:36.564,x2:-14.942,y1:6.667,y2:6.667,gradientUnits:"userSpaceOnUse"},j.createElement("stop",{offset:.11,stopColor:"#EA8600"}),j.createElement("stop",{offset:.14,stopColor:"#EF9601"}),j.createElement("stop",{offset:.19,stopColor:"#F4A702"}),j.createElement("stop",{offset:.26,stopColor:"#F8B303"}),j.createElement("stop",{offset:.34,stopColor:"#FABA03"}),j.createElement("stop",{offset:.59,stopColor:"#FBBC04"})),j.createElement("linearGradient",{id:"reader-revenue-manager_svg__b",x1:-10.143,x2:89.334,y1:33.332,y2:33.332,gradientUnits:"userSpaceOnUse"},j.createElement("stop",{offset:.04,stopColor:"#174EA6"}),j.createElement("stop",{offset:.12,stopColor:"#1F59B5"}),j.createElement("stop",{offset:.27,stopColor:"#3675DE"}),j.createElement("stop",{offset:.34,stopColor:"#4285F4"})))));function SetupMain({finishSetup:e=()=>{}}){const t=(0,n.useSelect)(e=>e(d).getPublications()),i=(0,n.useSelect)(e=>e(d).hasFinishedResolution("getPublications")),o=(0,_.A)(m,h),r=(0,_.A)(m,y),s=(0,n.useSelect)(e=>e(d).getPublicationID()),{setValues:a}=(0,n.useDispatch)(k.s),{resetPublications:l,submitChanges:g}=(0,n.useDispatch)(d),u=(0,j.useCallback)(()=>{r&&l()},[l,r]);(0,T.$)(u,15e3),(0,j.useEffect)(()=>{o||!i||void 0===t||t.length||a(m,{[h]:!0})},[i,o,t,a]);const p=(0,ie.A)(s);(0,j.useEffect)(()=>{p!==s&&r&&a(m,{[y]:!1})},[p,s,a,r]);const I=(0,j.useCallback)(async()=>{const{error:t}=await g();t||e()},[e,g]);let M;return M=i?o?(0,C.jsx)(PublicationCreate,{onCompleteSetup:I}):(0,C.jsx)(SetupForm,{onCompleteSetup:I}):(0,C.jsx)(b.ProgressBar,{}),(0,C.jsxs)("div",{className:"googlesitekit-setup-module googlesitekit-setup-module--reader-revenue-manager",children:[(0,C.jsxs)("div",{className:"googlesitekit-setup-module__step",children:[(0,C.jsx)("div",{className:"googlesitekit-setup-module__logo",children:(0,C.jsx)(oe,{width:"40",height:"40"})}),(0,C.jsx)(P.A,{as:"h3",className:"googlesitekit-setup-module__title",size:"small",type:"headline",children:(0,c._x)("Reader Revenue Manager","Service name","google-site-kit")})]}),(0,C.jsx)("div",{className:"googlesitekit-setup-module__step",children:M})]})}SetupMain.propTypes={finishSetup:N().func};var re=i(58116);function ProductIDSettings({hasModuleAccess:e}){const t=(0,n.useSelect)(e=>e(d).getProductID()),i=(0,n.useSelect)(e=>e(d).getCurrentProductIDs()),o=(0,n.useSelect)(e=>e(d).getPaymentOption()),r=(0,n.useSelect)(e=>e(u.O4).getDocumentationLinkURL("rrm-content-settings")),s=(0,n.useSelect)(e=>e(re.oR).isItemDismissed(x.R2)),a=(0,n.useSelect)(e=>e(re.oR).isItemDismissed(x.Ed)),l="subscriptions"===o,{dismissItem:g}=(0,n.useDispatch)(re.oR),{setProductIDs:p}=(0,n.useDispatch)(d);return(0,C.jsxs)("div",{className:"googlesitekit-rrm-settings-edit__product-id-container",children:[(0,C.jsx)("div",{className:"googlesitekit-rrm-settings-edit__product-id",children:(0,C.jsx)(ProductIDSelect,{onChange:()=>{p(i)},hasModuleAccess:e})}),l&&"openaccess"===t&&!s&&(0,C.jsx)("div",{className:"googlesitekit-rrm-settings-edit__product-id-warning-notice",children:(0,C.jsx)(E.A,{type:E.A.TYPES.WARNING,description:(0,c.__)("Selecting “open access” will allow your reader to access your content without a subscription","google-site-kit"),dismissButton:{onClick:()=>g(x.R2)},hideIcon:!0})}),!a&&(0,C.jsx)("div",{className:"googlesitekit-rrm-settings-edit__product-id-info-notice",children:(0,C.jsx)(E.A,{type:E.A.TYPES.INFO,title:(0,z.A)((0,c.__)("Use the new settings in the block editor to select different product IDs for individual pages or control where CTAs appear on an individual post. <learnMore>Learn more</learnMore>","google-site-kit"),{learnMore:(0,C.jsx)(D.A,{"aria-label":(0,c.__)("Learn more about setting product IDs at a content-level","google-site-kit"),href:r,external:!0,hideExternalIndicator:!0})}),dismissButton:{onClick:()=>g(x.Ed)}})})]})}var se=i(2141),ae=i(37226),le=i(77967);function SettingsForm({hasModuleAccess:e}){const t=(0,n.useSelect)(e=>e(d).getPublicationID()),i=(0,n.useSelect)(e=>e(d).getCurrentProductIDs()),o=(0,n.useSelect)(e=>e(d).getSnippetMode()),r=(0,n.useSelect)(e=>{const t=e(d).getProductID();if(void 0!==t){if("openaccess"===t)return null;if(void 0!==i)return i.includes(t)?null:t}}),s=(0,n.useSelect)(i=>{if(void 0===e)return;if(!1===e)return!1;const n=i(d).getPublications();return Array.isArray(n)?n.some(({publicationId:e})=>e===t):void 0}),a=(0,n.useSelect)(e=>{const t=e(ae.i).getModule(x.K$);return t?.owner?.login?`<strong>${t.owner.login}</strong>`:(0,c.__)("Another admin","google-site-kit")}),l=(0,n.useSelect)(t=>!1===e||t(d).hasFinishedResolution("getPublications"));return(0,C.jsxs)(j.Fragment,{children:[(0,C.jsxs)("div",{className:"googlesitekit-settings-module__fields-group",children:[(0,C.jsx)(S.A,{moduleSlug:x.K$,storeName:d}),e&&!1===s&&(0,C.jsx)(le.A,{message:(0,c.sprintf)(/* translators: 1: Publication ID. */ /* translators: 1: Publication ID. */
(0,c.__)("The previously selected publication with ID %s was not found. Please select a new publication.","google-site-kit"),t),skipRetryMessage:!0}),e&&s&&r&&(0,C.jsx)(le.A,{message:(0,c.sprintf)(/* translators: 1: Product ID. */ /* translators: 1: Product ID. */
(0,c.__)("The previously selected product ID %s was not found. Please select a new product ID.","google-site-kit"),J(r)),skipRetryMessage:!0}),(0,C.jsx)("div",{className:"googlesitekit-setup-module__inputs",children:(0,C.jsx)(PublicationSelect,{hasModuleAccess:e})}),e&&s&&(0,C.jsx)(PublicationOnboardingStateNotice,{}),!e&&(0,C.jsx)(E.A,{className:"googlesitekit-notice--bottom-margin",type:E.A.TYPES.WARNING,description:(0,z.A)((0,c.sprintf)(/* translators: %s: module owner's name */ /* translators: %s: module owner's name */
(0,c.__)("%s configured Reader Revenue Manager and you dont have access to its configured publication. Contact them to share access or change the configured publication.","google-site-kit"),a),{strong:(0,C.jsx)("strong",{})})}),l&&i?.length>0&&(0,C.jsx)(ProductIDSettings,{hasModuleAccess:e})]}),(0,C.jsxs)("div",{className:"googlesitekit-settings-module__fields-group",children:[(0,C.jsx)(P.A,{as:"h4",size:"small",type:"title",className:"googlesitekit-settings-module__fields-group-title",children:(0,c.__)("CTA Placement","google-site-kit")}),(0,C.jsx)("div",{className:"googlesitekit-rrm-settings-edit__snippet-mode",children:(0,C.jsx)(SnippetModeSelect,{hasModuleAccess:e})}),"post_types"===o&&(0,C.jsxs)("div",{className:"googlesitekit-rrm-settings-edit__post-types",children:[(0,C.jsx)(P.A,{as:"h5",size:"small",type:"label",children:(0,c.__)("Select the content types where you want your CTAs to appear:","google-site-kit")}),(0,C.jsx)(PostTypesSelect,{hasModuleAccess:e})]})]})]})}function SettingsEdit(){const e=(0,A.A)(),t=(0,n.useSelect)(e=>e(d).isDoingSubmitChanges()),i=(0,n.useSelect)(e=>{const{hasModuleOwnershipOrAccess:t,getErrorForAction:i}=e(ae.i),n=t(x.K$);if(n)return!0;const o=i("checkModuleAccess",[x.K$]);return void 0!==n||o?!1!==n&&"module_not_connected"===o?.code:void 0}),o=(0,n.useSelect)(e=>e(d).haveSettingsChanged()),r=(0,n.useSelect)(e=>e(u.O4).getPostTypes()),s=(0,n.useSelect)(e=>e(d).getSettings()),{snippetMode:a,postTypes:l}=s||{},[c,g]=(0,j.useState)(s);return(0,j.useEffect)(()=>{!c&&s&&g(s)},[c,s]),(0,se.A)(()=>{o||(a!==c.snippetMode&&(0,v.sx)(`${e}_rrm-settings`,"change_snippet_mode",x.z9[a]),V(l)!==V(c.postTypes)&&(0,v.sx)(`${e}_rrm-settings`,"change_post_types",V(l,r)))}),t||void 0===i?(0,C.jsx)(b.ProgressBar,{}):(0,C.jsx)("div",{className:"googlesitekit-setup-module googlesitekit-setup-module--reader-revenue-manager googlesitekit-rrm-settings-edit",children:(0,C.jsx)(SettingsForm,{hasModuleAccess:i})})}var ce=i(17691);function SettingsView(){const e=(0,n.useSelect)(e=>e(d).getPublicationID()),t=(0,n.useSelect)(e=>{const t=e(d).getProductID();return"openaccess"===t?(0,c.__)("Open access","google-site-kit"):J(t)}),i=(0,n.useSelect)(e=>e(d).getSnippetMode()),o=(0,n.useSelect)(e=>{const t=e(u.O4).getPostTypes();return V(e(d).getPostTypes(),t)}),r=(0,n.useSelect)(e=>{const{hasModuleOwnershipOrAccess:t,getErrorForAction:i}=e(ae.i),n=t(x.K$);if(n)return!0;const o=i("checkModuleAccess",[x.K$]);return void 0!==n||o?!1!==n&&"module_not_connected"===o?.code:void 0});return(0,C.jsxs)("div",{className:"googlesitekit-setup-module googlesitekit-setup-module--reader-revenue-manager",children:[(0,C.jsxs)("div",{className:"googlesitekit-settings-module__meta-items",children:[(0,C.jsxs)("div",{className:"googlesitekit-settings-module__meta-item",children:[(0,C.jsx)(P.A,{as:"h5",size:"medium",type:"label",className:"googlesitekit-settings-module__meta-item-type",children:(0,c.__)("Publication","google-site-kit")}),(0,C.jsx)("p",{className:"googlesitekit-settings-module__meta-item-data",children:(0,C.jsx)(ce.A,{value:e})})]}),(0,C.jsxs)("div",{className:"googlesitekit-settings-module__meta-item",children:[(0,C.jsx)(P.A,{as:"h5",size:"medium",type:"label",className:"googlesitekit-settings-module__meta-item-type",children:(0,c.__)("Default Product ID","google-site-kit")}),(0,C.jsx)("p",{className:"googlesitekit-settings-module__meta-item-data",children:(0,C.jsx)(ce.A,{value:t})})]})]}),r&&(0,C.jsx)(PublicationOnboardingStateNotice,{}),(0,C.jsxs)("div",{className:"googlesitekit-settings-module__meta-items",children:[(0,C.jsxs)("div",{className:"googlesitekit-settings-module__meta-item",children:[(0,C.jsx)(P.A,{as:"h5",size:"medium",type:"label",className:"googlesitekit-settings-module__meta-item-type",children:(0,c.__)("Display CTAs","google-site-kit")}),(0,C.jsx)("p",{className:"googlesitekit-settings-module__meta-item-data",children:(0,C.jsx)(ce.A,{value:x.z9[i]||i})})]}),"post_types"===i&&(0,C.jsxs)("div",{className:"googlesitekit-settings-module__meta-item",children:[(0,C.jsx)(P.A,{as:"h5",size:"medium",type:"label",className:"googlesitekit-settings-module__meta-item-type",children:(0,c.__)("Content type to display CTAs","google-site-kit")}),(0,C.jsx)("p",{className:"googlesitekit-settings-module__meta-item-data",children:(0,C.jsx)(ce.A,{value:o})})]})]})]})}var ge=i(33676),ue=i(54349);function ProductIDContributionsNotification({id:e,Notification:t}){const i=(0,n.useSelect)(e=>e(u.O4).getModuleSettingsEditURL(x.K$));return(0,C.jsx)(t,{children:(0,C.jsx)(ue.A,{notificationID:e,type:"new",description:(0,c.__)("New! You can now select product IDs to use with your Reader Revenue Manager snippet","google-site-kit"),dismissButton:{label:(0,c.__)("Got it","google-site-kit")},ctaButton:{label:(0,c.__)("Edit settings","google-site-kit"),href:i}})})}function ProductIDSubscriptionsNotification({id:e,Notification:t}){const i=(0,n.useSelect)(e=>e(u.O4).getModuleSettingsEditURL(x.K$));return(0,C.jsx)(t,{children:(0,C.jsx)(ue.A,{notificationID:e,type:E.A.TYPES.WARNING,description:(0,c.__)("To complete your Reader Revenue Manager paywall setup, add your product IDs in settings","google-site-kit"),ctaButton:{label:(0,c.__)("Edit settings","google-site-kit"),href:i},dismissButton:!0})})}ProductIDContributionsNotification.propTypes={id:N().string.isRequired,Notification:N().elementType.isRequired},ProductIDSubscriptionsNotification.propTypes={id:N().string.isRequired,Notification:N().elementType.isRequired};var de,pe,me=i(76422);function Ie(){return Ie=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)({}).hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},Ie.apply(null,arguments)}const he=e=>j.createElement("svg",Ie({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 348 163"},e),de||(de=j.createElement("g",{clipPath:"url(#reader-revenue-manager-introductory-graphic-desktop_svg__a)"},j.createElement("path",{fill:"#B8E6CA",d:"M0 16C0 7.163 7.163 0 16 0h316c8.837 0 16 7.163 16 16v147H0z"}),j.createElement("g",{filter:"url(#reader-revenue-manager-introductory-graphic-desktop_svg__b)"},j.createElement("rect",{width:195,height:172,x:101.5,y:79,fill:"#fff",rx:13.764})),j.createElement("rect",{width:64,height:38,x:218,y:108,fill:"#EBEEF0",rx:5.161}),j.createElement("g",{filter:"url(#reader-revenue-manager-introductory-graphic-desktop_svg__c)"},j.createElement("rect",{width:195,height:172,x:81.5,y:56,fill:"#fff",rx:13.764})),j.createElement("rect",{width:165,height:96,x:97,y:85,fill:"#EBEEF0",rx:5.161}),j.createElement("rect",{width:59,height:55,x:96,y:148,fill:"#EBEEF0",rx:5.457}),j.createElement("rect",{width:54,height:10,x:167,y:148,fill:"#EBEEF0",rx:5}),j.createElement("g",{filter:"url(#reader-revenue-manager-introductory-graphic-desktop_svg__d)"},j.createElement("rect",{width:195,height:172,x:61.5,y:30,fill:"#fff",rx:13.764})),j.createElement("rect",{width:165,height:51,x:76.5,y:50,fill:"#6FD3D3",rx:5.161}),j.createElement("rect",{width:54,height:14,x:147.5,y:113,fill:"#EBEEF0",rx:7}),j.createElement("rect",{width:94,height:5,x:147.5,y:135,fill:"#EBEEF0",rx:2.5}),j.createElement("rect",{width:59,height:5,x:76.5,y:135,fill:"#EBEEF0",rx:2.5}),j.createElement("rect",{width:59,height:5,x:76.5,y:124,fill:"#EBEEF0",rx:2.5}),j.createElement("rect",{width:59,height:5,x:76.5,y:146,fill:"#EBEEF0",rx:2.5}),j.createElement("rect",{width:59,height:5,x:76.5,y:113,fill:"#EBEEF0",rx:2.5}),j.createElement("rect",{width:94,height:5,x:147.5,y:146,fill:"#EBEEF0",rx:2.5}))),pe||(pe=j.createElement("defs",null,j.createElement("filter",{id:"reader-revenue-manager-introductory-graphic-desktop_svg__b",width:215,height:192,x:91.5,y:73,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},j.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),j.createElement("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),j.createElement("feOffset",{dy:4}),j.createElement("feGaussianBlur",{stdDeviation:5}),j.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),j.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"}),j.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_192_4045"}),j.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_192_4045",result:"shape"})),j.createElement("filter",{id:"reader-revenue-manager-introductory-graphic-desktop_svg__c",width:227,height:204,x:65.5,y:44,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},j.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),j.createElement("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),j.createElement("feOffset",{dy:4}),j.createElement("feGaussianBlur",{stdDeviation:8}),j.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),j.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"}),j.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_192_4045"}),j.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_192_4045",result:"shape"})),j.createElement("filter",{id:"reader-revenue-manager-introductory-graphic-desktop_svg__d",width:227,height:204,x:45.5,y:18,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},j.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),j.createElement("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),j.createElement("feOffset",{dy:4}),j.createElement("feGaussianBlur",{stdDeviation:8}),j.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),j.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"}),j.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_192_4045"}),j.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_192_4045",result:"shape"})),j.createElement("clipPath",{id:"reader-revenue-manager-introductory-graphic-desktop_svg__a"},j.createElement("path",{fill:"#fff",d:"M0 16C0 7.163 7.163 0 16 0h316c8.837 0 16 7.163 16 16v147H0z"})))));var ye,Me;function fe(){return fe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)({}).hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},fe.apply(null,arguments)}const Ne=e=>j.createElement("svg",fe({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 343 118"},e),ye||(ye=j.createElement("g",{clipPath:"url(#reader-revenue-manager-introductory-graphic-mobile_svg__a)"},j.createElement("path",{fill:"#B8E6CA",d:"M29.447 64.365c-2.4 22.73 4.803 32.78 23.025 59.949 18.222 27.17-7.404 59.277 20.78 89.869 33.527 36.394 150.685 39.364 201.231 24.212 50.546-15.153 63.581-46.473 59.948-75.155C329.5 124.314 302.482 112.077 289.5 93c-19.276-28.325 2.813-54.786-34.5-77.5s-80.086 6.697-120.326 4.388c-23.216-1.332-46.017-5.627-66.626.968-20.832 6.667-36.72 25.428-38.6 43.509"}),j.createElement("g",{filter:"url(#reader-revenue-manager-introductory-graphic-mobile_svg__b)"},j.createElement("rect",{width:158.074,height:139.43,x:108.926,y:53.721,fill:"#fff",rx:11.158})),j.createElement("rect",{width:51.881,height:30.804,x:203.365,y:77.23,fill:"#EBEEF0",rx:4.184}),j.createElement("g",{filter:"url(#reader-revenue-manager-introductory-graphic-mobile_svg__c)"},j.createElement("rect",{width:158.074,height:139.43,x:92.713,y:35.077,fill:"#fff",rx:11.158})),j.createElement("rect",{width:133.755,height:77.821,x:105.277,y:58.585,fill:"#EBEEF0",rx:4.184}),j.createElement("rect",{width:47.828,height:44.585,x:104.467,y:109.655,fill:"#EBEEF0",rx:4.424}),j.createElement("rect",{width:43.775,height:8.106,x:162.021,y:109.655,fill:"#EBEEF0",rx:4.053}),j.createElement("g",{filter:"url(#reader-revenue-manager-introductory-graphic-mobile_svg__d)"},j.createElement("rect",{width:158.074,height:139.43,x:76.5,y:14,fill:"#fff",rx:11.158})),j.createElement("rect",{width:133.755,height:41.343,x:88.66,y:30.213,fill:"#6FD3D3",rx:4.184}),j.createElement("rect",{width:43.775,height:11.349,x:146.215,y:81.283,fill:"#EBEEF0",rx:5.674}),j.createElement("rect",{width:76.2,height:4.053,x:146.215,y:99.117,fill:"#EBEEF0",rx:2.027}),j.createElement("rect",{width:47.828,height:4.053,x:88.66,y:99.117,fill:"#EBEEF0",rx:2.027}),j.createElement("rect",{width:47.828,height:4.053,x:88.66,y:90.2,fill:"#EBEEF0",rx:2.027}),j.createElement("rect",{width:47.828,height:4.053,x:88.66,y:108.034,fill:"#EBEEF0",rx:2.027}),j.createElement("rect",{width:47.828,height:4.053,x:88.66,y:81.283,fill:"#EBEEF0",rx:2.027}),j.createElement("rect",{width:76.2,height:4.053,x:146.215,y:108.034,fill:"#EBEEF0",rx:2.027}))),Me||(Me=j.createElement("defs",null,j.createElement("filter",{id:"reader-revenue-manager-introductory-graphic-mobile_svg__b",width:184.074,height:165.43,x:95.926,y:43.721,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},j.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),j.createElement("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),j.createElement("feOffset",{dy:3}),j.createElement("feGaussianBlur",{stdDeviation:6.5}),j.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),j.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"}),j.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_584_3892"}),j.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_584_3892",result:"shape"})),j.createElement("filter",{id:"reader-revenue-manager-introductory-graphic-mobile_svg__c",width:184.015,height:165.37,x:79.743,y:25.349,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},j.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),j.createElement("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),j.createElement("feOffset",{dy:3.243}),j.createElement("feGaussianBlur",{stdDeviation:6.485}),j.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),j.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"}),j.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_584_3892"}),j.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_584_3892",result:"shape"})),j.createElement("filter",{id:"reader-revenue-manager-introductory-graphic-mobile_svg__d",width:184.015,height:165.37,x:63.53,y:4.272,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},j.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),j.createElement("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),j.createElement("feOffset",{dy:3.243}),j.createElement("feGaussianBlur",{stdDeviation:6.485}),j.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),j.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"}),j.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_584_3892"}),j.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_584_3892",result:"shape"})),j.createElement("clipPath",{id:"reader-revenue-manager-introductory-graphic-mobile_svg__a"},j.createElement("path",{fill:"#fff",d:"M0 0h343v118H0z"})))));var je=i(71423);const be="rrmPublicationApprovedOverlayNotification";function PublicationApprovedOverlayNotification({id:e,Notification:t}){const i=(0,A.A)(),{publicationID:o}=(0,n.useSelect)(e=>e(d).getSettings()||{}),r=(0,n.useSelect)(e=>e(d).getServiceURL({path:"reader-revenue-manager",query:{publication:o}})),{dismissNotification:s}=(0,n.useDispatch)(je.D),a={category:`${i}_rrm-publication-approved-notification`};return(0,C.jsx)(t,{gaTrackingEventArgs:a,children:(0,C.jsx)(me.A,{notificationID:e,title:(0,c.__)("Your Reader Revenue Manager publication is approved","google-site-kit"),description:(0,c.__)("Unlock your full reader opportunity by enabling features like paywall, subscriptions, contributions and newsletter sign ups.","google-site-kit"),ctaButton:{label:(0,c.__)("Enable features","google-site-kit"),href:r,onClick:()=>s(e),target:"_blank",trailingIcon:(0,C.jsx)(L.A,{width:13,height:13})},GraphicDesktop:he,GraphicMobile:Ne,gaTrackingEventArgs:a,dismissButton:!0})})}PublicationApprovedOverlayNotification.propTypes={id:N().string,Notification:N().elementType};var De=i(92698),Se=i(68485),ke=i(34375);function ReaderRevenueManagerSetupCTABanner({id:e,Notification:t}){const[i,o]=(0,j.useState)(!1),r=(0,De.A)(x.K$),s=(0,j.useCallback)(()=>{o(!0),r()},[r,o]),a={tooltipSlug:"rrm-setup-notification",content:(0,c.__)("You can always enable Reader Revenue Manager in Settings later","google-site-kit"),dismissLabel:(0,c.__)("Got it","google-site-kit")},l=(0,Se.i)(a),{triggerSurvey:g}=(0,n.useDispatch)(re.oR),u=(0,n.useSelect)(t=>t(je.D).isNotificationDismissalFinal(e));return(0,j.useEffect)(()=>{g("view_reader_revenue_manager_cta")},[g]),(0,C.jsx)(t,{children:(0,C.jsx)(ke.A,{notificationID:e,title:(0,c.__)("Grow your revenue and deepen reader engagement","google-site-kit"),description:(0,c.__)("Turn casual visitors into loyal readers and earn more from your content with paywalls, contributions, surveys, newsletter sign-ups and reader insight tools.","google-site-kit"),ctaButton:{label:(0,c.__)("Set up Reader Revenue Manager","google-site-kit"),onClick:s,inProgress:i,dismissOnClick:!0,dismissOptions:{skipHidingFromQueue:!0}},dismissButton:{label:u?(0,c.__)("Dont show again","google-site-kit"):(0,c.__)("Maybe later","google-site-kit"),onClick:l,dismissOptions:{expiresInSeconds:u?0:2*v.Du},disabled:i},svg:{desktop:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTEzIiBoZWlnaHQ9IjQ0NiIgdmlld0JveD0iMCAwIDUxMyA0NDYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik03My42MzQ5IDg0LjU4MDNDNzAuMTg1OCAxMjQuMzgzIDkyLjEyMTEgMTM2LjA4NiA5Mi4xMjExIDE5MC43M0M5Mi4xMjExIDI0NS4zNzQgMC4yMDMwOTQgMjc4LjkxIDQwLjAzNzYgMzcwLjMzM0M3MS45NTQ3IDQ0My41ODUgMjM0LjI2NyA0NTguMDggMzI3LjQzNCA0MzcuNDA3QzQyMC42IDQxNi43MzMgNDU0LjczNCAzNjQuOTY2IDQ0OS41MTQgMzE0Ljc0NEM0NDIuNDI5IDI0Ni41ODQgNDA0LjUzNyAyMTEuNDAzIDM4OS44NTEgMTQ5Ljg0MkMzNzUuMTY0IDg4LjI4MTQgNDAwLjc2OCA1Ni4xMjE5IDM2MS44NTUgMjUuNzc1N0MzMjIuMzg1IC01LjAwNDgxIDI4Ni41ODcgMTQuNzUgMjQ1LjI4MiAxNC43NTAxQzIxMS44NDMgMTQuNzUwMSAxNzkuMTkzIC0xMC45MTc1IDEzMS4wMDQgNy44NzYyMUMxMDEuMDcgMTkuNTUgNzYuMzM4MiA1Mi45MTk4IDczLjYzNDkgODQuNTgwM1oiIGZpbGw9IiNCOEU2Q0EiLz4KPGcgZmlsdGVyPSJ1cmwoI2ZpbHRlcjBfZF8xNDYxXzExNjM0KSI+C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BQYXRoIGlkPSJjbGlwMV8xNTA1XzUwNzgiPgo8cmVjdCB3aWR0aD0iNTUzIiBoZWlnaHQ9IjE0MCIgZmlsbD0id2hpdGUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC02NykiLz4KPC9jbGlwUGF0aD4KPC9kZWZzPgo8L3N2Zz4K",verticalPosition:"center"},learnMoreLink:{href:"https://readerrevenue.withgoogle.com"}})})}ReaderRevenueManagerSetupCTABanner.propTypes={id:N().string,Notification:N().elementType};var xe=i(20068),ve=i(7081),Ae=i(92152),Te=i(49655);const{ONBOARDING_COMPLETE:Ee,PENDING_VERIFICATION:_e,ONBOARDING_ACTION_REQUIRED:Ce}=p;var we,Oe;function ze(){return ze=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)({}).hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},ze.apply(null,arguments)}const Le=e=>j.createElement("svg",ze({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 348 163"},e),we||(we=j.createElement("g",{clipPath:"url(#reader-revenue-manager-monetize-graphic-desktop_svg__a)"},j.createElement("path",{fill:"#B8E6CA",d:"M0 16C0 7.163 7.163 0 16 0h316c8.837 0 16 7.163 16 16v147H0z"}),j.createElement("g",{filter:"url(#reader-revenue-manager-monetize-graphic-desktop_svg__b)"},j.createElement("rect",{width:252,height:200,x:48,y:65,fill:"#fff",rx:20})),j.createElement("rect",{width:133,height:11,x:69,y:92,fill:"#F3F5F7",rx:5.5}),j.createElement("rect",{width:61,height:87,x:219,y:95,fill:"#F3F5F7",rx:4}),j.createElement("rect",{width:133,height:11,x:69,y:133,fill:"#F3F5F7",rx:5.5}),j.createElement("rect",{width:133,height:11,x:69,y:114,fill:"#F3F5F7",rx:5.5}),j.createElement("rect",{width:133,height:11,x:69,y:152,fill:"#F3F5F7",rx:5.5}),j.createElement("g",{filter:"url(#reader-revenue-manager-monetize-graphic-desktop_svg__c)"},j.createElement("rect",{width:152,height:174,x:98,y:25,fill:"#fff",rx:20})),j.createElement("rect",{width:56,height:20,x:146,y:116,fill:"#6FD3D3",rx:10}),j.createElement("rect",{width:84,height:11,x:132,y:74,fill:"#F3F5F7",rx:5.5}),j.createElement("rect",{width:84,height:11,x:132,y:91,fill:"#F3F5F7",rx:5.5}),j.createElement("mask",{id:"reader-revenue-manager-monetize-graphic-desktop_svg__d",fill:"#fff"},j.createElement("rect",{width:16.667,height:14.286,x:165.333,y:46.929,rx:1.786})),j.createElement("rect",{width:16.667,height:14.286,x:165.333,y:46.929,stroke:"#6FD3D3",strokeWidth:4.444,mask:"url(#reader-revenue-manager-monetize-graphic-desktop_svg__d)",rx:1.786}),j.createElement("path",{stroke:"#6FD3D3",strokeWidth:2.222,d:"M169.5 47.524v-2.38a4.166 4.166 0 1 1 8.333 0v2.38"}),j.createElement("circle",{cx:173.667,cy:54.072,r:1.786,fill:"#6FD3D3"}))),Oe||(Oe=j.createElement("defs",null,j.createElement("filter",{id:"reader-revenue-manager-monetize-graphic-desktop_svg__b",width:284,height:232,x:32,y:53,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},j.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),j.createElement("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),j.createElement("feOffset",{dy:4}),j.createElement("feGaussianBlur",{stdDeviation:8}),j.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),j.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"}),j.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_2428_20430"}),j.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_2428_20430",result:"shape"})),j.createElement("filter",{id:"reader-revenue-manager-monetize-graphic-desktop_svg__c",width:184,height:206,x:82,y:17,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},j.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),j.createElement("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),j.createElement("feOffset",{dy:8}),j.createElement("feGaussianBlur",{stdDeviation:8}),j.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),j.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"}),j.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_2428_20430"}),j.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_2428_20430",result:"shape"})),j.createElement("clipPath",{id:"reader-revenue-manager-monetize-graphic-desktop_svg__a"},j.createElement("path",{fill:"#fff",d:"M0 16C0 7.163 7.163 0 16 0h316c8.837 0 16 7.163 16 16v147H0z"})))));var Re,Pe;function Ge(){return Ge=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)({}).hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},Ge.apply(null,arguments)}const Be=e=>j.createElement("svg",Ge({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 343 118"},e),Re||(Re=j.createElement("g",{clipPath:"url(#reader-revenue-manager-monetize-graphic-mobile_svg__a)"},j.createElement("path",{fill:"#B8E6CA",d:"M29.447 64.365c-2.4 22.73 4.803 32.78 23.025 59.949 18.222 27.17-7.404 59.276 20.78 89.869 33.527 36.394 150.685 39.364 201.231 24.211s63.581-46.473 59.948-75.154C329.5 124.314 302.482 112.076 289.5 93c-19.276-28.325 2.813-54.786-34.5-77.5s-80.086 6.696-120.326 4.388c-23.216-1.332-46.017-5.627-66.626.968-20.832 6.667-36.72 25.427-38.6 43.509"}),j.createElement("g",{filter:"url(#reader-revenue-manager-monetize-graphic-mobile_svg__b)"},j.createElement("rect",{width:196,height:155.556,x:76,y:48.778,fill:"#fff",rx:15.556})),j.createElement("rect",{width:103.444,height:8.556,x:92.334,y:69.778,fill:"#F3F5F7",rx:4.278}),j.createElement("rect",{width:47.444,height:67.667,x:209,y:72.111,fill:"#F3F5F7",rx:3.111}),j.createElement("rect",{width:103.444,height:8.556,x:92.334,y:101.667,fill:"#F3F5F7",rx:4.278}),j.createElement("rect",{width:103.444,height:8.556,x:92.334,y:86.889,fill:"#F3F5F7",rx:4.278}),j.createElement("rect",{width:103.444,height:8.556,x:92.334,y:116.444,fill:"#F3F5F7",rx:4.278}),j.createElement("g",{filter:"url(#reader-revenue-manager-monetize-graphic-mobile_svg__c)"},j.createElement("rect",{width:118.222,height:135.333,x:114.889,y:17.666,fill:"#fff",rx:15.556})),j.createElement("rect",{width:43.556,height:15.556,x:152.223,y:88.444,fill:"#6FD3D3",rx:7.778}),j.createElement("rect",{width:65.333,height:8.556,x:141.334,y:55.778,fill:"#F3F5F7",rx:4.278}),j.createElement("rect",{width:65.333,height:8.556,x:141.334,y:69,fill:"#F3F5F7",rx:4.278}),j.createElement("mask",{id:"reader-revenue-manager-monetize-graphic-mobile_svg__d",fill:"#fff"},j.createElement("rect",{width:12.963,height:11.111,x:167.26,y:34.722,rx:1.389})),j.createElement("rect",{width:12.963,height:11.111,x:167.26,y:34.722,stroke:"#6FD3D3",strokeWidth:3.457,mask:"url(#reader-revenue-manager-monetize-graphic-mobile_svg__d)",rx:1.389}),j.createElement("path",{stroke:"#6FD3D3",strokeWidth:1.728,d:"M170.5 35.185v-1.852a3.24 3.24 0 1 1 6.481 0v1.852"}),j.createElement("circle",{cx:173.74,cy:40.278,r:1.389,fill:"#6FD3D3"}))),Pe||(Pe=j.createElement("defs",null,j.createElement("filter",{id:"reader-revenue-manager-monetize-graphic-mobile_svg__b",width:220.889,height:180.445,x:63.556,y:39.444,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},j.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),j.createElement("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),j.createElement("feOffset",{dy:3.111}),j.createElement("feGaussianBlur",{stdDeviation:6.222}),j.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),j.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"}),j.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_2084_4987"}),j.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_2084_4987",result:"shape"})),j.createElement("filter",{id:"reader-revenue-manager-monetize-graphic-mobile_svg__c",width:143.112,height:160.222,x:102.444,y:11.444,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},j.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),j.createElement("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),j.createElement("feOffset",{dy:6.222}),j.createElement("feGaussianBlur",{stdDeviation:6.222}),j.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),j.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"}),j.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_2084_4987"}),j.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_2084_4987",result:"shape"})),j.createElement("clipPath",{id:"reader-revenue-manager-monetize-graphic-mobile_svg__a"},j.createElement("path",{fill:"#fff",d:"M0 0h343v118H0z"}))))),Ue="rrmIntroductoryOverlayNotification";function RRMIntroductoryOverlayNotification({id:e,Notification:t}){const i=(0,A.A)(),{publicationID:o,publicationOnboardingState:r,paymentOption:s}=(0,n.useSelect)(e=>e(d).getSettings()||{}),a=(0,n.useSelect)(e=>e(d).getServiceURL({path:"reader-revenue-manager",query:{publication:o}})),l=(0,n.useSelect)(e=>e(u.O4).getGoogleSupportURL({path:"/news/publisher-center/answer/11449914"})),{dismissNotification:g}=(0,n.useDispatch)(je.D),p={category:`${i}_rrm-introductory-notification`,label:`${r}:${s||""}`};const m="noPayment"===s?(0,c.__)("New! Monetize your content with Reader Revenue Manager","google-site-kit"):(0,c.__)("Complete account setup with Reader Revenue Manager","google-site-kit"),I="noPayment"===s?(0,z.A)((0,c.__)("Now you can offer your users subscription options to access content behind a paywall, or make voluntary contributions. <a>Learn more</a>","google-site-kit"),{a:(0,C.jsx)(R.A,{path:"/news/publisher-center/answer/11449914",onClick:function(){(0,v.sx)(p.category,"click_learn_more_link",p.label)},external:!0,hideExternalIndicator:!0})}):(0,c.__)("Easily monetize your content by offering users subscription options to access content behind a paywall, or make voluntary contributions.","google-site-kit");return(0,C.jsx)(t,{gaTrackingEventArgs:p,children:(0,C.jsx)(me.A,{notificationID:e,title:m,description:I,ctaButton:{label:"noPayment"===s?(0,c.__)("Explore features","google-site-kit"):(0,c.__)("Learn more","google-site-kit"),href:"noPayment"===s?a:l,onClick:()=>g(e),target:"_blank",trailingIcon:(0,C.jsx)(L.A,{width:13,height:13})},GraphicDesktop:Le,GraphicMobile:Be,gaTrackingEventArgs:p,dismissButton:!0})})}RRMIntroductoryOverlayNotification.propTypes={id:N().string,Notification:N().elementType};var Ze=i(53137),Qe=i(24558),Fe=i(32091),Ye=i.n(Fe),He=i(54419),We=i(22242),Ve=i(47121);const Je=s().createModuleStore(x.K$,{storeName:d,submitChanges:async function({dispatch:e,select:t}){const{getSnippetMode:i,hasSettingChanged:n,haveSettingsChanged:o}=t(d);if(o()){n("postTypes")&&"post_types"!==i()&&await e(d).rollbackSetting("postTypes");const{error:t}=await e(d).saveSettings();if(t)return{error:t}}return await(0,He.invalidateCache)("modules",x.K$),{}},validateCanSubmitChanges:function(e){const t=(0,Ve.WI)(e),{haveSettingsChanged:i,isDoingSubmitChanges:n,getPublicationID:o,getPublicationOnboardingState:r,getSnippetMode:s,getPostTypes:a,getProductID:l,getProductIDs:c,getPaymentOption:g}=t(d);Ye()(!n(),We.mV),Ye()(i(),We.Wq);const u=o(),p=r(),m=s(),I=a(),h=l(),y=c(),M=g();Ye()(U(u),"a valid publicationID is required"),Ye()(function(e){return"string"==typeof e&&["ONBOARDING_STATE_UNSPECIFIED","ONBOARDING_ACTION_REQUIRED","PENDING_VERIFICATION","ONBOARDING_COMPLETE"].includes(e)}(p),"a valid publication onboarding state is required"),Ye()(["post_types","per_post","sitewide"].includes(m),"a valid snippet mode is required"),Ye()("post_types"!==m||Array.isArray(I)&&I.every(e=>"string"==typeof e)&&I.length>0,"a valid post types array is required"),Ye()("string"==typeof h,"a valid product ID is required"),Ye()(Array.isArray(y)&&y.every(e=>"string"==typeof e),"a valid product IDs array is required"),Ye()("string"==typeof M,"a valid payment option is required")},ownedSettingsSlugs:["publicationID"],settingSlugs:["ownerID","publicationID","publicationOnboardingState","publicationOnboardingStateChanged","snippetMode","postTypes","productID","productIDs","paymentOption"]});var $e=i(3687),Xe=i(21125);const Ke=(0,$e.U)({baseName:"getPublications",controlCallback:()=>(0,He.get)("modules",x.K$,"publications",{},{useCache:!1}),reducerCallback:(0,n.createReducer)((e,t)=>{e.publications=t})}),qe=(0,$e.U)({baseName:"getSyncPublicationOnboardingState",controlCallback:({publicationID:e,publicationOnboardingState:t})=>(0,He.set)("modules",x.K$,"sync-publication-onboarding-state",{publicationID:e,publicationOnboardingState:t}),argsToParams:({publicationID:e,publicationOnboardingState:t})=>({publicationID:e,publicationOnboardingState:t}),validateParams:({publicationID:e,publicationOnboardingState:t}={})=>{Ye()("string"==typeof e&&e.length>0,"publicationID is required and must be string."),Ye()("string"==typeof t&&t.length>0,"publicationOnboardingState is required and must be string.")},reducerCallback:(0,n.createReducer)((e,{publicationID:t,publicationOnboardingState:i})=>{if(!t)return;const n=Date.now();e.settings.publicationID===t&&(e.settings.publicationOnboardingState=i,e.settings.publicationOnboardingStateLastSyncedAtMs=n),e.savedSettings.publicationID===t&&(e.savedSettings.publicationOnboardingState=i,e.savedSettings.publicationOnboardingStateLastSyncedAtMs=n);const o=e.publications?.find(({publicationId:e})=>e===t);o&&(o.onboardingState=i)})}),et={publications:void 0},tt={*syncPublicationOnboardingState(){const e=yield n.commonActions.getRegistry();yield n.commonActions.await(e.resolveSelect(d).getSettings());const t=e.select(d).getPublicationID(),i=e.select(d).getPublicationOnboardingState();return void 0===t||void 0===i?{}:yield qe.actions.fetchGetSyncPublicationOnboardingState({publicationID:t,publicationOnboardingState:i})},*findMatchedPublication(){const{resolveSelect:e}=yield n.commonActions.getRegistry(),t=yield n.commonActions.await(e(d).getPublications());if(0===t.length)return null;if(1===t.length)return t[0];return t.find(e=>e.onboardingState===p.ONBOARDING_COMPLETE)||t[0]},*resetPublications(){const e=yield n.commonActions.getRegistry();return yield{type:"RESET_PUBLICATIONS"},yield Xe.o1.clearErrors("getPublications"),e.dispatch(d).invalidateResolutionForStoreSelector("getPublications")},selectPublication:(0,Ve.$C)(e=>{Ye()((0,H.isPlainObject)(e),"A valid publication object is required."),["publicationId","onboardingState"].forEach(t=>{Ye()(e.hasOwnProperty(t),`The publication object must contain ${t}`)})},function*({publicationId:e,onboardingState:t,paymentOptions:i,products:o}){const r=yield n.commonActions.getRegistry(),s={publicationID:e,publicationOnboardingState:t,publicationOnboardingStateChanged:!1,productIDs:[],paymentOption:""};if(i){const e=Object.keys(i).find(e=>!!i[e]);e&&(s.paymentOption=e)}return o&&(s.productIDs=o.reduce((e,{name:t})=>t?[...e,t]:e,[])),s.productID="openaccess",r.dispatch(d).setSettings(s)})},it=(0,n.createReducer)((e,{type:t})=>{if("RESET_PUBLICATIONS"===t)e.publications=et.publications}),nt={*getPublications(){void 0===(yield n.commonActions.getRegistry()).select(d).getPublications()&&(yield Ke.actions.fetchGetPublications())}},ot={getPublications:e=>e.publications,getCurrentProductIDs:(0,n.createRegistrySelector)(e=>t=>{if(void 0===e(d).getPublications())return;const i=e(d).getPublicationID();if(!i)return[];const n=t.publications.find(({publicationId:e})=>e===i);return n&&n.products?n.products.map(e=>e.name):[]})},rt=(0,n.combineStores)(Ke,qe,{initialState:et,actions:tt,controls:{},reducer:it,resolvers:nt,selectors:ot}),st=(rt.initialState,rt.actions,rt.controls,rt.reducer,rt.resolvers,rt.selectors,rt);var at=i(44451);const lt={selectors:{getServiceURL:(0,n.createRegistrySelector)(e=>(t,{path:i,query:n}={})=>{let o="https://publishercenter.google.com";if(i){o=`${o}${`/${i.replace(/^\//,"")}`}`}o=(0,at.F)(o,{...n,utm_source:"sitekit"});const r=e(re.oR).getAccountChooserURL(o);if(void 0!==r)return r}),getDetailsLinkURL:(0,n.createRegistrySelector)(e=>()=>{const t=e(d).getPublicationID();return e(d).getServiceURL({path:"reader-revenue-manager",query:{publication:t}})}),getCreatePublicationLinkURL:(0,n.createRegistrySelector)(e=>()=>e(d).getServiceURL({query:{prefill_canonical_domain:e(u.O4).getReferenceSiteURL(),prefill_lang:e(u.O4).getSiteLocale(),app_redirect:"rrm"}}))}},ct=(0,n.combineStores)(Je,st,lt);ct.initialState,ct.actions,ct.controls,ct.reducer,ct.resolvers,ct.selectors;async function gt({select:e,resolveSelect:t},i){if(!e(ae.i).isModuleActive(x.K$))return!1;await t(d).getSettings();const n=e(d).getPublicationOnboardingState(),o=e(d).getPaymentOption(),r=e(d).getProductIDs(),s=e(d).getProductID();return n===p.ONBOARDING_COMPLETE&&r.length>0&&"openaccess"===s&&o===i}const ut={[x.GQ]:{Component:ReaderRevenueManagerSetupCTABanner,priority:Ze.FQ.SETUP_CTA_LOW,areaSlug:Ze.bI.DASHBOARD_TOP,groupID:Ze.He.SETUP_CTAS,viewContexts:[Qe.jU],checkRequirements:async({select:e,resolveSelect:t})=>{await Promise.all([t(re.oR).getDismissedPrompts(),t(ae.i).isModuleConnected(x.K$),t(ae.i).canActivateModule(x.K$)]);const i=e(re.oR).isPromptDismissed("rrm_module_setup_banner_dismissed_key"),n=e(ae.i).isModuleConnected(x.K$),o=e(ae.i).canActivateModule(x.K$);return!(!1!==i||!1!==n||!o)},isDismissible:!0,dismissRetries:1},[x.Sy]:{Component:function RRMSetupSuccessSubtleNotification({id:e,Notification:t}){const[o,r]=(0,xe.A)("notification"),[s,a]=(0,xe.A)("slug"),l=[_e,Ce],g=(0,n.useSelect)(e=>e(d).getPublicationOnboardingState()),p=(0,n.useSelect)(e=>e(d).getPublicationID()),m=(0,n.useSelect)(e=>e(d).getServiceURL({path:"reader-revenue-manager",query:{publication:p}})),h=(0,_.A)(I,M)&&l.includes(g),y=(0,n.useSelect)(e=>e(d).getPaymentOption()),f=(0,n.useSelect)(e=>e(d).getProductID()),N=(0,n.useSelect)(e=>e(d).getProductIDs()),b=(0,n.useSelect)(e=>e(u.O4).getModuleSettingsEditURL(x.K$)),{setValues:D}=(0,n.useDispatch)(k.s),{setValue:S}=(0,n.useDispatch)(ve.n),{syncPublicationOnboardingState:v}=(0,n.useDispatch)(d),A=(0,j.useCallback)(()=>{r(void 0),a(void 0)},[r,a]);function E(){l.includes(g)&&D(I,{[M]:!0}),i.g.open(m,"_blank")}const w=(0,j.useCallback)(async()=>{h&&await v()},[h,v]);(0,T.$)(w,15e3);const O="authentication_success"===o&&s===x.K$;(0,j.useEffect)(()=>{O&&g===Ee&&""===y&&A()},[A,y,g,S,O]);const L={label:`${g}:${y}:${!!f&&"openaccess"!==f?"yes":"no"}`};if(g===_e)return(0,C.jsx)(t,{gaTrackingEventArgs:L,children:(0,C.jsx)(ue.A,{notificationID:e,type:Te.Q.SUCCESS,gaTrackingEventArgs:L,title:(0,c.__)("Your Reader Revenue Manager account was successfully set up!","google-site-kit"),description:(0,c.__)("Your publication is still awaiting review, you can check its status in Reader Revenue Manager.","google-site-kit"),dismissButton:{onClick:A},ctaButton:{label:(0,c.__)("Check publication status","google-site-kit"),onClick:E,external:!0}})});if(g===Ce)return(0,C.jsx)(t,{gaTrackingEventArgs:L,children:(0,C.jsx)(ue.A,{type:Te.Q.WARNING,notificationID:e,gaTrackingEventArgs:L,title:(0,c.__)("Your Reader Revenue Manager account was successfully set up, but your publication still requires further setup in Reader Revenue Manager.","google-site-kit"),dismissButton:{onClick:A},ctaButton:{label:(0,c.__)("Complete publication setup","google-site-kit"),onClick:E,external:!0}})});if(g===Ee){if(""===y)return null;const i={title:(0,c.__)("Success! Your Reader Revenue Manager account is set up","google-site-kit"),description:"",primaryButton:{text:(0,c.__)("Manage CTAs","google-site-kit"),ctaLink:b,isCTALinkExternal:!1},secondaryButton:{text:(0,c.__)("Got it","google-site-kit"),onClick:A}};switch(y){case"subscriptions":i.description="openaccess"===f?(0,c.__)("You can edit your settings to manage product IDs and select which of your sites pages will include a subscription CTA.","google-site-kit"):(0,c.__)("You can edit your settings and select which of your sites pages will include a subscription CTA.","google-site-kit");break;case"contributions":N.length>0&&"openaccess"===f?i.description=(0,c.__)("You can edit your settings to manage product IDs and select which of your sites pages will include a contribution CTA.","google-site-kit"):i.description=(0,c.__)("You can edit your settings and select which of your sites pages will include a contribution CTA.","google-site-kit");break;case"noPayment":i.description=(0,z.A)((0,c.__)("Explore Reader Revenue Managers additional features, such as paywalls, subscriptions and contributions. <a>Learn more</a>","google-site-kit"),{a:(0,C.jsx)(Ae.A,{id:e,ariaLabel:(0,c.__)("Learn more about Reader Revenue Manager features","google-site-kit"),label:(0,c.__)("Learn more","google-site-kit"),url:"https://support.google.com/news/publisher-center/answer/12813936",gaTrackingEventArgs:L,hideExternalIndicator:!0})}),i.primaryButton={text:(0,c.__)("Get started","google-site-kit"),ctaLink:m,isCTALinkExternal:!0}}return(0,C.jsx)(t,{gaTrackingEventArgs:L,children:(0,C.jsx)(ue.A,{notificationID:e,type:Te.Q.SUCCESS,gaTrackingEventArgs:L,title:i.title,description:i.description,dismissButton:{label:i.secondaryButton.text,onClick:i.secondaryButton.onClick},ctaButton:{label:i.primaryButton.text,href:i.primaryButton.ctaLink,external:i.primaryButton.isCTALinkExternal}})})}return null},areaSlug:Ze.bI.DASHBOARD_TOP,viewContexts:[Qe.jU],checkRequirements:async({select:e,resolveSelect:t})=>{if(!await t(ae.i).isModuleConnected(x.K$))return!1;const i=(0,g.d)(location.href,"notification"),n=(0,g.d)(location.href,"slug");await t(d).getSettings();const o=await e(d).getPublicationOnboardingState();return"authentication_success"===i&&n===x.K$&&void 0!==o},isDismissible:!1},[x.qd]:{Component:ProductIDContributionsNotification,priority:20,areaSlug:Ze.bI.DASHBOARD_TOP,viewContexts:[Qe.jU],isDismissible:!0,checkRequirements:async e=>await gt(e,"contributions")},[x.RB]:{Component:ProductIDSubscriptionsNotification,priority:20,areaSlug:Ze.bI.DASHBOARD_TOP,viewContexts:[Qe.jU],isDismissible:!0,checkRequirements:async e=>await gt(e,"subscriptions")},[be]:{Component:PublicationApprovedOverlayNotification,priority:Ze.FQ.SETUP_CTA_HIGH,areaSlug:Ze.bI.OVERLAYS,groupID:Ze.He.SETUP_CTAS,viewContexts:[Qe.jU],isDismissible:!0,checkRequirements:async({resolveSelect:e,dispatch:t})=>{if(!await e(ae.i).isModuleConnected(x.K$))return!1;const{publicationOnboardingState:i,paymentOption:n,publicationOnboardingStateChanged:o}=await e(d).getSettings()||{},r=(0,g.d)(location.href,"notification"),s=(0,g.d)(location.href,"slug"),a="authentication_success"===r&&s===x.K$;if(i===p.ONBOARDING_COMPLETE&&(a&&""===n||!0===o)){if(!0===o){const{saveSettings:e,setPublicationOnboardingStateChanged:i}=t(d);i(!1),e()}return!0}return!1}},[Ue]:{Component:RRMIntroductoryOverlayNotification,priority:Ze.FQ.SETUP_CTA_LOW,areaSlug:Ze.bI.OVERLAYS,groupID:Ze.He.SETUP_CTAS,viewContexts:[Qe.jU],isDismissible:!0,checkRequirements:async({resolveSelect:e})=>{if(!await e(ae.i).isModuleConnected(x.K$))return!1;const{publicationOnboardingState:t,paymentOption:i}=await e(d).getSettings()||{},n=(0,g.d)(location.href,"notification"),o=(0,g.d)(location.href,"slug"),r="authentication_success"===n&&o===x.K$;return!(t!==p.ONBOARDING_COMPLETE||!["noPayment",""].includes(i)||r)}}};o().registerStore(d,ct),s().registerModule(x.K$,{storeName:d,SettingsEditComponent:SettingsEdit,SettingsViewComponent:SettingsView,SetupComponent:SetupMain,Icon:oe,features:[(0,c.__)("Reader Revenue Manager publication tracking will be disabled","google-site-kit")],overrideSetupSuccessNotification:!0,checkRequirements:async e=>{await e.resolveSelect(u.O4).getSiteInfo();const t=e.select(u.O4).getHomeURL();if(!(0,ge.d)(t))throw{code:"non_https_site",message:(0,c.__)("The site should use HTTPS to set up Reader Revenue Manager","google-site-kit"),data:null}}}),function(e){for(const t in ut)e.registerNotification(t,ut[t])}(l())},19793:(e,t,i)=>{i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var n,o=i(63696);function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)({}).hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},r.apply(null,arguments)}const __WEBPACK_DEFAULT_EXPORT__=e=>o.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),n||(n=o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 1C5.925 1 1 5.925 1 12s4.925 11 11 11 11-4.925 11-11S18.075 1 12 1m4.806 8.592.592-.806-1.612-1.184-.592.806-3.89 5.296c-.166.226-.36.296-.512.296s-.346-.07-.512-.296l-1.474-2.007-.592-.806-1.612 1.184.592.806 1.474 2.007C9.191 15.6 9.971 16 10.792 16s1.6-.4 2.124-1.112z",clipRule:"evenodd"})))},20068:(e,t,i)=>{i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var n=i(63696),o=i(82286),r=i(44451);const __WEBPACK_DEFAULT_EXPORT__=function(e,t,s=i.g){const[a,l]=(0,n.useState)((0,o.d)(s.location.href,e)||t);return[a,function(t){l(t);const i=(0,r.F)(s.location.href,{[e]:t});s.history.replaceState(null,"",i)}]}},20678:(e,t,i)=>{i.d(t,{Ed:()=>s,GQ:()=>a,K$:()=>u,R2:()=>r,RB:()=>g,Sy:()=>l,qd:()=>c,z9:()=>o});var n=i(82871);const o={post_types:(0,n.__)("Specific content types","google-site-kit"),per_post:(0,n.__)("Specified pages","google-site-kit"),sitewide:(0,n.__)("Site wide","google-site-kit")},r="rrm-product-id-open-access-notice",s="rrm-product-id-info-notice",a="rrm-setup-notification",l="setup-success-notification-rrm",c="rrm-product-id-contributions-notification",g="rrm-product-id-subscriptions-notification",u="reader-revenue-manager"},20898:(e,t,i)=>{i.d(t,{A:()=>A});var n,o=i(4452),r=i.n(o),s=i(62688),a=i.n(s),l=i(39941),c=i(63696),g=i(82871);function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)({}).hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},u.apply(null,arguments)}const d=e=>c.createElement("svg",u({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 13 13"},e),n||(n=c.createElement("g",{fill:"none",fillRule:"evenodd"},c.createElement("circle",{cx:6.5,cy:6.5,r:6.5,fill:"currentColor"}),c.createElement("path",{fill:"#FFF",d:"M3.461 6.96h5.15L6.36 9.21a.464.464 0 0 0 .325.79.46.46 0 0 0 .325-.135l3.037-3.038a.46.46 0 0 0 0-.65L7.015 3.135a.46.46 0 0 0-.65.65L8.61 6.039H3.461a.46.46 0 0 0-.461.46c0 .254.207.462.461.462z"}),".")));var p;function m(){return m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)({}).hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},m.apply(null,arguments)}const I=e=>c.createElement("svg",m({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 13 13"},e),p||(p=c.createElement("g",{fill:"none",fillRule:"evenodd"},c.createElement("circle",{cx:6.5,cy:6.5,r:6.5,fill:"#FFF"}),c.createElement("path",{fill:"currentColor",d:"M3.461 6.96h5.15L6.36 9.21a.464.464 0 0 0 .325.79.46.46 0 0 0 .325-.135l3.037-3.038a.46.46 0 0 0 0-.65L7.015 3.135a.46.46 0 0 0-.65.65L8.61 6.039H3.461a.46.46 0 0 0-.461.46c0 .254.207.462.461.462z"}),".")));var h;function y(){return y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)({}).hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},y.apply(null,arguments)}const M=e=>c.createElement("svg",y({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},e),h||(h=c.createElement("path",{d:"m12 20-8-8 8-8 1.425 1.4-5.6 5.6H20v2H7.825l5.6 5.6z"})));var f=i(83366),N=i(84385),j=i(62540);const b="BUTTON",D="BUTTON_DISABLED",S="EXTERNAL_LINK",k="LINK",x="ROUTER_LINK",v=(0,c.forwardRef)((e,t)=>{const{"aria-label":i,secondary:n=!1,arrow:o=!1,back:s=!1,caps:a=!1,children:c,className:u="",danger:p=!1,disabled:m=!1,external:h=!1,hideExternalIndicator:y=!1,href:v="",inverse:A=!1,noFlex:T=!1,onClick:E,small:_=!1,standalone:C=!1,linkButton:w=!1,to:O,leadingIcon:z,trailingIcon:L,...R}=e;const P=v||O||!E?O?x:h?S:k:m?D:b;const G=P===b||P===D?"button":P===x?l.N_:"a",B=function(){let e;return P===S&&(e=(0,g._x)("(opens in a new tab)","screen reader text","google-site-kit")),P===D&&(e=(0,g._x)("(disabled)","screen reader text","google-site-kit")),e?i?`${i} ${e}`:"string"==typeof c?`${c} ${e}`:void 0:i}();let U=z,Z=L;return s&&(U=(0,j.jsx)(M,{width:14,height:14})),h&&!y&&(Z=(0,j.jsx)(f.A,{width:14,height:14})),o&&!A&&(Z=(0,j.jsx)(d,{width:14,height:14})),o&&A&&(Z=(0,j.jsx)(I,{width:14,height:14})),(0,j.jsxs)(G,{"aria-label":B,className:r()("googlesitekit-cta-link",u,{"googlesitekit-cta-link--secondary":n,"googlesitekit-cta-link--inverse":A,"googlesitekit-cta-link--small":_,"googlesitekit-cta-link--caps":a,"googlesitekit-cta-link--danger":p,"googlesitekit-cta-link--disabled":m,"googlesitekit-cta-link--standalone":C,"googlesitekit-cta-link--link-button":w,"googlesitekit-cta-link--no-flex":!!T}),disabled:m,href:P!==k&&P!==S||m?void 0:v,onClick:E,rel:P===S?"noopener noreferrer":void 0,ref:t,target:P===S?"_blank":void 0,to:O,...R,children:[!!U&&(0,j.jsx)(N.A,{marginRight:5,children:U}),(0,j.jsx)("span",{className:"googlesitekit-cta-link__contents",children:c}),!!Z&&(0,j.jsx)(N.A,{marginLeft:5,children:Z})]})});v.propTypes={arrow:a().bool,back:a().bool,caps:a().bool,children:a().node,className:a().string,danger:a().bool,disabled:a().bool,external:a().bool,hideExternalIndicator:a().bool,href:a().string,inverse:a().bool,leadingIcon:a().node,linkButton:a().bool,noFlex:a().bool,onClick:a().func,small:a().bool,standalone:a().bool,to:a().string,trailingIcon:a().node};const A=v},21125:(e,t,i)=>{i.d(t,{g4:()=>I,o1:()=>m});var n=i(78913),o=i(32091),r=i.n(o),s=i(10523),a=i.n(s),l=i(12850),c=i(50539);const g="RECEIVE_ERROR",u="CLEAR_ERROR",d="CLEAR_ERRORS";function p(e,t){if(t&&Array.isArray(t)){const i=t.map(e=>"object"==typeof e?(0,l.Zm)(e):e);return`${e}::${a()(JSON.stringify(i))}`}return e}const m={receiveError:(e,t,i=[])=>(r()(e,"error is required."),r()(t,"baseName is required."),r()(i&&Array.isArray(i),"args must be an array."),{type:g,payload:{error:e,baseName:t,args:i}}),clearError:(e,t=[])=>(r()(e,"baseName is required."),r()(t&&Array.isArray(t),"args must be an array."),{type:u,payload:{baseName:e,args:t}}),clearErrors:e=>({type:d,payload:{baseName:e}})};function I(e){r()(e,"storeName must be defined.");const t=(0,c.createReducer)((e,{type:t,payload:i})=>{switch(t){case g:{const{baseName:t,args:n,error:o}=i,r=p(t,n);e.errors=e.errors||{},e.errorArgs=e.errorArgs||{},e.errors[r]=o,e.errorArgs[r]=n;break}case u:{const{baseName:t,args:n}=i,o=p(t,n);e.errors=e.errors||{},e.errorArgs=e.errorArgs||{},delete e.errors[o],delete e.errorArgs[o];break}case d:{const{baseName:t}=i;if(t){e.errors=e.errors||{},e.errorArgs=e.errorArgs||{};for(const i in e.errors)(i===t||i.startsWith(`${t}::`))&&(delete e.errors[i],delete e.errorArgs[i])}else e.errors={},e.errorArgs={};break}}}),i={getErrorForSelector:(e,t,n=[])=>(r()(t,"selectorName is required."),i.getError(e,t,n)),getErrorForAction:(e,t,n=[])=>(r()(t,"actionName is required."),i.getError(e,t,n)),getError(e,t,i){const{errors:n}=e;return r()(t,"baseName is required."),n[p(t,i)]},getErrors(e){const t=new Set(Object.values(e.errors));return Array.from(t)},getMetaDataForError(e,t){const i=Object.keys(e.errors).find(i=>e.errors[i]===t);if(i){return{baseName:i.substring(0,i.indexOf("::")),args:e.errorArgs[i]}}return null},getSelectorDataForError:(0,n.N)(t=>function(i,n){const o=t(e).getMetaDataForError(n);if(o){const{baseName:i,args:n}=o;if(!!t(e)[i])return{storeName:e,name:i,args:n}}return null}),hasErrors:e=>i.getErrors(e).length>0};return{initialState:{errors:{},errorArgs:{}},actions:m,controls:{},reducer:t,resolvers:{},selectors:i}}},21134:(e,t,i)=>{i.d(t,{Gq:()=>u,IL:()=>I,LD:()=>p,SO:()=>d,a2:()=>o,xD:()=>m});var n=i(12850);const o="googlesitekit_",r=`${o}1.165.0_${i.g._googlesitekitBaseData.storagePrefix}_`,s=["sessionStorage","localStorage"];let a,l=[...s];async function c(e){const t=i.g[e];if(!t)return!1;try{const e="__storage_test__";return t.setItem(e,e),t.removeItem(e),!0}catch(e){return e instanceof DOMException&&(22===e.code||1014===e.code||"QuotaExceededError"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name)&&0!==t.length}}async function g(){if(void 0!==a)return a;for(const e of l)a||await c(e)&&(a=i.g[e]);return void 0===a&&(a=null),a}async function u(e){const t=await g();if(t){const i=t.getItem(`${r}${e}`);if(i){const e=JSON.parse(i),{timestamp:t,ttl:n,value:o,isError:r}=e;if(t&&(!n||Math.round(Date.now()/1e3)-t<n))return{cacheHit:!0,value:o,isError:r}}}return{cacheHit:!1,value:void 0}}async function d(e,t,{ttl:o=n.Jg,timestamp:s=Math.round(Date.now()/1e3),isError:a=!1}={}){const l=await g();if(l)try{return l.setItem(`${r}${e}`,JSON.stringify({timestamp:s,ttl:o,value:t,isError:a})),!0}catch(e){return i.g.console.warn("Encountered an unexpected storage error:",e),!1}return!1}async function p(e){const t=await g();if(t)try{const i=e.startsWith(o)?e:`${r}${e}`;return t.removeItem(i),!0}catch(e){return i.g.console.warn("Encountered an unexpected storage error:",e),!1}return!1}async function m(){const e=await g();if(e)try{const t=[];for(let i=0;i<e.length;i++){const n=e.key(i);0===n.indexOf(o)&&t.push(n)}return t}catch(e){return i.g.console.warn("Encountered an unexpected storage error:",e),[]}return[]}async function I(){if(await g()){const e=await m();for(const t of e)await p(t);return!0}return!1}},22242:(e,t,i)=>{i.d(t,{B7:()=>b,FK:()=>j,JG:()=>f,VM:()=>D,Wq:()=>I,hk:()=>N,mV:()=>m});var n=i(32091),o=i.n(n),r=i(17243),s=i(54419),a=i(50539),l=i(47121),c=i(71769),g=i(3687),u=i(21125);const{clearError:d,receiveError:p}=u.o1,m="cannot submit changes while submitting changes",I="cannot submit changes if settings have not changed",h="SET_SETTINGS",y="ROLLBACK_SETTINGS",M="ROLLBACK_SETTING";function f(e,t,i,{ownedSettingsSlugs:n,storeName:u,settingSlugs:m=[],initialSettings:I,validateHaveSettingsChanged:f=D()}={}){o()(e,"type is required."),o()(t,"identifier is required."),o()(i,"datapoint is required.");const N=u||`${e}/${t}`,j={ownedSettingsSlugs:n,settings:I,savedSettings:void 0},b=(0,g.U)({baseName:"getSettings",controlCallback:()=>(0,s.get)(e,t,i,{},{useCache:!1}),reducerCallback:(0,a.createReducer)((e,t)=>{e.savedSettings={...t},e.settings={...t,...e.settings||{}}})}),S=(0,g.U)({baseName:"saveSettings",controlCallback:n=>{const{values:o}=n;return(0,s.set)(e,t,i,o)},reducerCallback:(0,a.createReducer)((e,t)=>{e.savedSettings={...t},e.settings={...t}}),argsToParams:e=>({values:e}),validateParams:({values:e}={})=>{o()((0,r.isPlainObject)(e),"values is required.")}}),k={},x={setSettings:e=>(o()((0,r.isPlainObject)(e),"values is required."),{payload:{values:e},type:h}),rollbackSettings:()=>({payload:{},type:y}),rollbackSetting:e=>(o()(e,"setting is required."),{payload:{setting:e},type:M}),*saveSettings(){const e=yield a.commonActions.getRegistry();yield d("saveSettings",[]);const t=e.select(N).getSettings(),{response:i,error:n}=yield S.actions.fetchSaveSettings(t);return n&&(yield p(n,"saveSettings",[])),{response:i,error:n}}},v=(0,a.createReducer)((e,{type:t,payload:i})=>{switch(t){case h:{const{values:t}=i;e.settings={...e.settings||{},...t};break}case y:e.settings=e.savedSettings;break;case M:{const{setting:t}=i;e.savedSettings[t]&&(e.settings={...e.settings||{},[t]:e.savedSettings[t]});break}default:void 0!==k[t]&&k[t](e,{type:t,payload:i})}}),A={*getSettings(){(yield a.commonActions.getRegistry()).select(N).getSettings()||(yield b.actions.fetchGetSettings())}},{safeSelector:T,dangerousSelector:E}=(0,l.RF)(f),_={haveSettingsChanged:T,__dangerousHaveSettingsChanged:E,getSettings:e=>e.settings,hasSettingChanged(e,t){o()(t,"setting is required.");const{settings:i,savedSettings:n}=e;return!(!i||!n)&&!(0,r.isEqual)(i[t],n[t])},isDoingSaveSettings:e=>Object.values(e.isFetchingSaveSettings).some(Boolean),getOwnedSettingsSlugs:e=>e.ownedSettingsSlugs,haveOwnedSettingsChanged:(0,a.createRegistrySelector)(e=>()=>{const t=e(N).getOwnedSettingsSlugs();return e(N).haveSettingsChanged(t)})};m.forEach(e=>{const t=(0,c.m2)(e),i=(0,c.sP)(e);x[`set${t}`]=e=>(o()(void 0!==e,`value is required for calls to set${t}().`),{payload:{value:e},type:`SET_${i}`}),k[`SET_${i}`]=(t,{payload:i})=>{const{value:n}=i;t.settings={...t.settings||{},[e]:n}},_[`get${t}`]=(0,a.createRegistrySelector)(t=>()=>(t(N).getSettings()||{})[e])});return{...(0,a.combineStores)(a.commonStore,b,S,{initialState:j,actions:x,controls:{},reducer:v,resolvers:A,selectors:_}),STORE_NAME:N}}function N(e,t){return async({select:i,dispatch:n})=>{if(i(t).haveSettingsChanged()){const{error:e}=await n(t).saveSettings();if(e)return{error:e}}return await(0,s.invalidateCache)("modules",e),{}}}function j(e){return({select:t,dispatch:i})=>t(e).haveSettingsChanged()?i(e).rollbackSettings():{}}function b(e){return t=>{const i=(0,l.WI)(t),{haveSettingsChanged:n,isDoingSubmitChanges:r}=i(e);o()(!r(),m),o()(n(),I)}}function D(){return(e,t,i)=>{const{settings:n,savedSettings:s}=t;i&&o()(!(0,r.isEqual)((0,r.pick)(n,i),(0,r.pick)(s,i)),I),o()(!(0,r.isEqual)(n,s),I)}}},24558:(e,t,i)=>{i.d(t,{Ax:()=>r,CZ:()=>g,Ej:()=>D,Gw:()=>S,Is:()=>s,KK:()=>d,Nn:()=>x,OT:()=>j,SH:()=>N,Y$:()=>p,ZS:()=>a,bg:()=>h,en:()=>b,ep:()=>I,f7:()=>o,hi:()=>m,jU:()=>n,k$:()=>M,kz:()=>k,ly:()=>l,mo:()=>y,s3:()=>f,uR:()=>c,zx:()=>u});const n="mainDashboard",o="entityDashboard",r="mainDashboardViewOnly",s="entityDashboardViewOnly",a="userInput",l="activation",c="splash",g="adminBar",u="adminBarViewOnly",d="settings",p="adBlockingRecovery",m="wpDashboard",I="wpDashboardViewOnly",h="moduleSetup",y="metricSelection",M="wpBlockEditor",f="keyMetricsSetup",N="key-metrics",j="traffic",b="content",D="speed",S="monetization",k=[n,o,r,s,a,c,d,h,y],x=[r,s,u,I]},27333:(e,t,i)=>{i.d(t,{A:()=>r});var n=i(35470),o=i(78340);function r(e,t){return(0,n.A)(i=>{const{getValue:n}=i(o.s);return n(e,t)},[e,t])}},29584:(e,t,i)=>{i.d(t,{A:()=>DismissButton});var n=i(62688),o=i.n(n),r=i(82871),s=i(49383),a=i(62540);function DismissButton({className:e,label:t=(0,r.__)("Maybe later","google-site-kit"),onClick:i,disabled:n,tertiary:o=!0}){return i?(0,a.jsx)(s.Button,{className:e,onClick:i,disabled:n,tertiary:o,children:t}):null}DismissButton.propTypes={className:o().string,label:o().string,onClick:o().func,disabled:o().bool,tertiary:o().bool,dismissOptions:o().shape({expiresInSeconds:o().number,skipHidingFromQueue:o().bool})}},30679:(e,t,i)=>{i.d(t,{A:()=>StoreErrorNotices});var n=i(62688),o=i.n(n),r=i(50539),s=i(77967),a=i(37226),l=i(67150),c=i(65311),g=i(62540);function StoreErrorNotices({hasButton:e=!1,moduleSlug:t,storeName:i}){const n=(0,r.useSelect)(e=>e(i).getErrors()),o=(0,r.useSelect)(e=>e(a.i).getModule(t)),u=[];return n.filter(e=>!(!e?.message||u.includes(e.message))&&(u.push(e.message),!0)).map((t,n)=>{let{message:r}=t;return(0,l.SG)(t)&&(r=(0,c.c)(r,o)),(0,g.jsx)(s.A,{error:t,hasButton:e,storeName:i,message:r},n)})}StoreErrorNotices.propTypes={hasButton:o().bool,storeName:o().string.isRequired,moduleSlug:o().string}},30823:(e,t,i)=>{i.d(t,{A:()=>LearnMoreLink});var n=i(62688),o=i.n(n),r=i(82871),s=i(20898),a=i(62540);function LearnMoreLink({href:e,className:t,label:i=(0,r.__)("Learn more","google-site-kit"),external:n=!0,onClick:o=()=>{}}){return e?(0,a.jsx)(s.A,{href:e,className:t,onClick:o,external:n,children:i}):null}LearnMoreLink.propTypes={href:o().string.isRequired,className:o().string,label:o().string,external:o().bool,onClick:o().func}},32947:(e,t,i)=>{i.d(t,{Fo:()=>r,Lg:()=>s,Qb:()=>o,dv:()=>l,mp:()=>a});var n=i(15577);const o="xlarge",r="desktop",s="tablet",a="small";function l(){const e=(0,n.SO)();return e>1280?o:e>960?r:e>600?s:a}},33676:(e,t,i)=>{function n(e){try{if("string"!=typeof e||!e)throw new TypeError(`Invalid URL: ${e}`);return"https:"===new URL(e).protocol}catch(e){return i.g.console.warn("Invalid URL:",e),!1}}i.d(t,{d:()=>n})},34375:(e,t,i)=>{i.d(t,{A:()=>SetupCTA});var n=i(4452),o=i.n(n),r=i(62688),s=i.n(r),a=i(63696),l=i(50539),c=i(71423),g=i(7070),u=i(7184),d=i(30823),p=i(3782),m=i(29584),I=i(55527),h=i(49383),y=i(62540);function SetupCTA({notificationID:e,title:t,description:i,errorText:n,helpText:r,learnMoreLink:s,dismissButton:d,ctaButton:p,svg:m,footer:M,gaTrackingEventArgs:f,waitingProgress:N,...j}){const b=(0,g.A)(e,f?.category),{dismissNotification:D}=(0,l.useDispatch)(c.D);return(0,y.jsxs)(a.Fragment,{children:[!!N&&(0,y.jsx)(h.ProgressBar,{className:"googlesitekit-banner__progress-bar",...N}),(0,y.jsx)("div",{className:o()("googlesitekit-widget-context",{"googlesitekit-widget-context--with-progress-bar":!!N}),children:(0,y.jsx)(I.xA,{children:(0,y.jsx)(I.fI,{children:(0,y.jsx)(I.fh,{size:12,children:(0,y.jsx)(u.A,{className:"googlesitekit-banner--setup-cta",title:t,description:i,errorText:n,helpText:r,learnMoreLink:s&&{...s,onClick:async function(e){b.clickLearnMore(f?.label,f?.value),await(s?.onClick?.(e))}},dismissButton:d&&{...d,onClick:async function(t){await(d?.onClick?.(t)),b.dismiss(f?.label,f?.value),D(e,{...d?.dismissOptions})}},ctaButton:p&&{...p,onClick:async function(t){b.confirm(f?.label,f?.value),await(p?.onClick?.(t)),p?.dismissOnClick&&D(e,{...p?.dismissOptions})}},svg:m,footer:M,...j})})})})})]})}SetupCTA.propTypes={notificationID:s().string,title:s().string,description:s().oneOfType([s().string,s().node]),errorText:s().string,helpText:s().string,learnMoreLink:s().shape(d.A.propTypes),dismissButton:s().shape(m.A.propTypes),ctaButton:s().shape(p.A.propTypes),svg:s().shape({desktop:s().elementType,mobile:s().elementType,verticalPosition:s().oneOf(["top","center","bottom"])}),footer:s().node,gaTrackingEventArgs:s().shape({category:s().string,label:s().string,value:s().number}),waitingProgress:s().shape(h.ProgressBar.propTypes)}},37226:(e,t,i)=>{i.d(t,{U:()=>o,i:()=>n});const n="core/modules",o="insufficient_module_dependencies"},39771:(e,t,i)=>{i.d(t,{Ay:()=>TourTooltips,R0:()=>I,ei:()=>y});var n=i(15844),o=i(36703),r=i(62688),s=i.n(r),a=i(82871),l=i(50539),c=i(7081),g=i(58116),u=i(89318),d=i(60592),p=i(77766),m=i(62540);const I={options:{arrowColor:"#3c7251",backgroundColor:"#3c7251",overlayColor:"rgba(0, 0, 0, 0.6)",textColor:"#fff",zIndex:2e4},spotlight:{border:"2px solid #3c7251",backgroundColor:"#fff"}},h={back:(0,a.__)("Back","google-site-kit"),close:(0,a.__)("Close","google-site-kit"),last:(0,a.__)("Got it","google-site-kit"),next:(0,a.__)("Next","google-site-kit")},y={disableAnimation:!0,styles:{arrow:{length:8,margin:56,spread:16},floater:{filter:"drop-shadow(rgba(60, 64, 67, 0.3) 0px 1px 2px) drop-shadow(rgba(60, 64, 67, 0.15) 0px 2px 6px)"}}},M={VIEW:"feature_tooltip_view",NEXT:"feature_tooltip_advance",PREV:"feature_tooltip_return",DISMISS:"feature_tooltip_dismiss",COMPLETE:"feature_tooltip_complete"};function TourTooltips({steps:e,tourID:t,gaEventCategory:r,callback:s}){const a=`${t}-step`,f=`${t}-run`,{setValue:N}=(0,l.useDispatch)(c.n),{dismissTour:j}=(0,l.useDispatch)(g.oR),b=(0,l.useRegistry)(),D=(0,p.A)(),S=(0,l.useSelect)(e=>e(c.n).getValue(a)||0),k=(0,l.useSelect)(e=>e(c.n).getValue(f)&&!1===e(g.oR).isTourDismissed(t));(0,n.A)(function(){i.g.document.body.classList.add("googlesitekit-showing-feature-tour",`googlesitekit-showing-feature-tour--${t}`),N(f,!0)});const x=e.map(e=>({disableBeacon:!0,isFixed:!0,placement:"auto",...e}));return(0,m.jsx)(o.Ay,{callback:function(e){!function({index:e,action:t,lifecycle:i,size:n,status:s,type:a}){const l=e+1,c="function"==typeof r?r(D):r;a===o.qY.TOOLTIP&&i===o.VD.TOOLTIP?(0,u.sx)(c,M.VIEW,l):t===o.kl.CLOSE&&i===o.VD.COMPLETE?(0,u.sx)(c,M.DISMISS,l):t===o.kl.NEXT&&s===o.XQ.FINISHED&&a===o.qY.TOUR_END&&n===l&&(0,u.sx)(c,M.COMPLETE,l),i===o.VD.COMPLETE&&s!==o.XQ.FINISHED&&(t===o.kl.PREV&&(0,u.sx)(c,M.PREV,l),t===o.kl.NEXT&&(0,u.sx)(c,M.NEXT,l))}(e);const{action:n,index:l,status:c,step:g,type:d}=e,p=n===o.kl.CLOSE,m=!p&&[o.qY.STEP_AFTER,o.qY.TARGET_NOT_FOUND].includes(d),I=[o.XQ.FINISHED,o.XQ.SKIPPED].includes(c),h=p&&d===o.qY.STEP_AFTER,y=I||h;if(o.qY.STEP_BEFORE===d){let e=g.target;"string"==typeof g.target&&(e=i.g.document.querySelector(g.target)),e?.scrollIntoView?.({block:"center"})}m?function(e,t){N(a,e+(t===o.kl.PREV?-1:1))}(l,n):y&&(i.g.document.body.classList.remove("googlesitekit-showing-feature-tour",`googlesitekit-showing-feature-tour--${t}`),j(t)),s&&s(e,b)},floaterProps:y,locale:h,run:k,stepIndex:S,steps:x,styles:I,tooltipComponent:d.A,continuous:!0,disableOverlayClose:!0,disableScrolling:!0,showProgress:!0})}TourTooltips.propTypes={steps:s().arrayOf(s().object).isRequired,tourID:s().string.isRequired,gaEventCategory:s().oneOfType([s().string,s().func]).isRequired,callback:s().func}},42125:(e,t,i)=>{i.d(t,{$:()=>o});var n=i(63696);function o(e,t=0){(0,n.useEffect)(()=>{let n,o=!1;function r(){n=i.g.setTimeout(()=>{o=!0},t)}function s(){i.g.clearTimeout(n),o&&(o=!1,e())}return i.g.addEventListener("focus",s),i.g.addEventListener("blur",r),()=>{i.g.removeEventListener("focus",s),i.g.removeEventListener("blur",r),i.g.clearTimeout(n)}},[t,e])}},42343:(e,t,i)=>{i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var n,o=i(63696);function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)({}).hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},r.apply(null,arguments)}const __WEBPACK_DEFAULT_EXPORT__=e=>o.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),n||(n=o.createElement("path",{fill:"currentColor",d:"m5.825 22 2.325-7.6L2 10h7.6L12 2l2.4 8H22l-6.15 4.4 2.325 7.6L12 17.3z"})))},44174:(e,t,i)=>{i.d(t,{A:()=>SupportLink});var n=i(62688),o=i.n(n),r=i(50539),s=i(93896),a=i(20898),l=i(62540);function SupportLink(e){const{path:t,query:i,hash:n,...o}=e,c=(0,r.useSelect)(e=>e(s.O4).getGoogleSupportURL({path:t,query:i,hash:n}));return(0,l.jsx)(a.A,{...o,href:c})}SupportLink.propTypes={path:o().string.isRequired,query:o().object,hash:o().string}},45472:(e,t,i)=>{i.d(t,{M:()=>n});const n="core/location"},46935:e=>{e.exports=googlesitekit.notifications},47121:(e,t,i)=>{i.d(t,{$C:()=>v,RF:()=>x,WI:()=>S,_5:()=>j,jU:()=>N,o3:()=>f,x0:()=>D});var n=i(32091),o=i.n(n),r=i(50532),s=i.n(r),a=i(17243),l=i(78913);const c="GET_REGISTRY",g="AWAIT";function u(...e){const t=e.reduce((e,t)=>({...e,...t}),{}),i=b(e.reduce((e,t)=>[...e,...Object.keys(t)],[]));return o()(0===i.length,`collect() cannot accept collections with duplicate keys. Your call to collect() contains the following duplicated functions: ${i.join(", ")}. Check your data stores for duplicates.`),t}const d=u,p=u;function m(...e){const t=[...e];let i;return"function"!=typeof t[0]&&(i=t.shift()),(e=i,n={})=>t.reduce((e,t)=>t(e,n),e)}const I=u,h=u,y=u;function M(e){return e}function f(...e){const t=y(...e.map(e=>e.initialState||{}));return{initialState:t,controls:p(...e.map(e=>e.controls||{})),actions:d(...e.map(e=>e.actions||{})),reducer:m(t,...e.map(e=>e.reducer||M)),resolvers:I(...e.map(e=>e.resolvers||{})),selectors:h(...e.map(e=>e.selectors||{}))}}const N={getRegistry:()=>({payload:{},type:c}),*await(e){return{payload:{value:e},type:g}}},j={[c]:(0,l.b)(e=>()=>e),[g]:({payload:e})=>e.value};function b(e){const t=[],i={};for(let n=0;n<e.length;n++){const o=e[n];i[o]=i[o]>=1?i[o]+1:1,i[o]>1&&t.push(o)}return t}const D={actions:N,controls:j,reducer:M};function S(e){return t=>k(e(t))}const k=s()(e=>(0,a.mapValues)(e,(e,t)=>(...i)=>{const n=e(...i);return o()(void 0!==n,`${t}(...) is not resolved`),n}));function x(e,{negate:t=!1}={}){return{safeSelector:(0,l.N)(i=>(n,...o)=>{const r=!t,s=!!t;try{return e(i,n,...o),r}catch{return s}}),dangerousSelector:(0,l.N)(t=>(i,...n)=>{e(t,i,...n)})}}function v(e,t){return o()("function"==typeof e,"a validator function is required."),o()("function"==typeof t,"an action creator function is required."),o()("Generator"!==e[Symbol.toStringTag]&&"GeneratorFunction"!==e[Symbol.toStringTag],"an actions validator function must not be a generator."),(...i)=>(e(...i),t(...i))}},49383:e=>{e.exports=googlesitekit.components},49655:(e,t,i)=>{i.d(t,{Q:()=>n});const n={NEW:"new",SUCCESS:"success",WARNING:"warning",INFO:"info",INFO_ALT:"info-alt",ERROR:"error"}},50539:e=>{e.exports=googlesitekit.data},53137:(e,t,i)=>{i.d(t,{FQ:()=>r,He:()=>a,bI:()=>s,rq:()=>o,ui:()=>n});const n="warning-notification-gtg",o="gtg-setup-cta",r={ERROR_HIGH:30,ERROR_LOW:60,WARNING:100,INFO:150,SETUP_CTA_HIGH:150,SETUP_CTA_LOW:200},s={HEADER:"notification-area-header",DASHBOARD_TOP:"notification-area-dashboard-top",OVERLAYS:"notification-area-overlays"},a={DEFAULT:"default",SETUP_CTAS:"setup-ctas"}},54349:(e,t,i)=>{i.d(t,{A:()=>NoticeNotification});var n=i(80035),o=i(7070),r=i(50539),s=i(71423),a=i(55527),l=i(62688),c=i.n(l),g=i(62540);function NoticeNotification({notificationID:e,children:t,dismissButton:i,ctaButton:l,gaTrackingEventArgs:c,...u}){const d=(0,o.A)(e),{dismissNotification:p}=(0,r.useDispatch)(s.D);return(0,g.jsx)(a.xA,{children:(0,g.jsx)(a.fI,{children:(0,g.jsx)(a.fh,{size:12,alignMiddle:!0,children:(0,g.jsx)(n.A,{dismissButton:{...i,onClick:async function(t){await(i?.onClick?.(t)),d.dismiss(c?.label,c?.value),p(e,{...i?.dismissOptions||{}})}},ctaButton:{...l,onClick:async function(t){d.confirm(c?.label,c?.value),await(l?.onClick?.(t)),l?.dismissOnClick&&p(e,{...l?.dismissOptions})}},...u,children:t})})})})}NoticeNotification.propTypes={notificationID:c().string.isRequired,children:c().node,dismissButton:c().oneOfType([c().bool,c().object]),ctaButton:c().object,gaTrackingEventArgs:c().object}},54419:e=>{e.exports=googlesitekit.api},55527:(e,t,i)=>{i.d(t,{$z:()=>o.$,CR:()=>a.C,Cf:()=>l.DialogContent,Es:()=>l.DialogFooter,Nv:()=>n.N,P3:()=>s.P,Si:()=>r.S,fI:()=>g.fI,fh:()=>g.fh,lG:()=>c.a,xA:()=>g.xA});var n=i(91046),o=i(3412),r=i(30454),s=i(26569),a=i(56655),l=i(12786),c=i.n(l),g=i(75487)},58116:(e,t,i)=>{i.d(t,{$8:()=>s,$Q:()=>p,BT:()=>w,CQ:()=>x,DF:()=>H,GM:()=>k,GT:()=>M,HA:()=>R,HD:()=>d,HP:()=>C,J5:()=>G,JF:()=>A,JK:()=>h,Ml:()=>I,SS:()=>O,UF:()=>g,UY:()=>Q,Vl:()=>z,W6:()=>Y,Xq:()=>v,YQ:()=>T,Yw:()=>Z,dV:()=>_,dX:()=>S,ej:()=>c,em:()=>r,ep:()=>b,fu:()=>N,gC:()=>f,hz:()=>m,jx:()=>u,lV:()=>l,nH:()=>P,oR:()=>n,od:()=>a,p3:()=>y,pG:()=>D,qv:()=>o,qy:()=>E,t1:()=>F,t7:()=>U,tB:()=>j,tK:()=>B,u_:()=>L});const n="core/user",o="connected_url_mismatch",r="__global",s="temporary_persist_permission_error",a="adblocker_active",l=["weekly","monthly","quarterly"],c="googlesitekit_authenticate",g="googlesitekit_setup",u="googlesitekit_view_dashboard",d="googlesitekit_manage_options",p="googlesitekit_read_shared_module_data",m="googlesitekit_manage_module_sharing_options",I="googlesitekit_delegate_module_sharing_management",h="googlesitekit_update_plugins",y="kmAnalyticsAdSenseTopEarningContent",M="kmAnalyticsEngagedTrafficSource",f="kmAnalyticsLeastEngagingPages",N="kmAnalyticsNewVisitors",j="kmAnalyticsPopularAuthors",b="kmAnalyticsPopularContent",D="kmAnalyticsPopularProducts",S="kmAnalyticsReturningVisitors",k="kmAnalyticsTopCities",x="kmAnalyticsTopCitiesDrivingLeads",v="kmAnalyticsTopCitiesDrivingAddToCart",A="kmAnalyticsTopCitiesDrivingPurchases",T="kmAnalyticsTopDeviceDrivingPurchases",E="kmAnalyticsTopConvertingTrafficSource",_="kmAnalyticsTopCountries",C="kmAnalyticsTopPagesDrivingLeads",w="kmAnalyticsTopRecentTrendingPages",O="kmAnalyticsTopTrafficSource",z="kmAnalyticsTopTrafficSourceDrivingAddToCart",L="kmAnalyticsTopTrafficSourceDrivingLeads",R="kmAnalyticsTopTrafficSourceDrivingPurchases",P="kmAnalyticsPagesPerVisit",G="kmAnalyticsVisitLength",B="kmAnalyticsTopReturningVisitorPages",U="kmSearchConsolePopularKeywords",Z="kmAnalyticsVisitsPerVisitor",Q="kmAnalyticsMostEngagingPages",F="kmAnalyticsTopCategories",Y=[y,M,f,N,j,b,D,S,F,k,x,v,A,T,E,_,w,O,z,P,G,B,Z,Q,F],H=[...Y,U]},60592:(e,t,i)=>{i.d(t,{A:()=>TourTooltip});var n=i(28056),o=i.n(n),r=i(4452),s=i.n(r),a=i(62688),l=i.n(a),c=i(82871),g=i(49383);var u=i(72545),d=i(15167),p=i(62540);function TourTooltip({backProps:e,closeProps:t,index:i,primaryProps:r,size:a,step:l,tooltipProps:m}){const I=a>1?function(e){return new Array(null!=e?e:0).fill().map((e,t)=>t)}(a):[];function h(e){return s()("googlesitekit-tooltip-indicator",{active:e===i})}return(0,p.jsx)("div",{className:s()("googlesitekit-tour-tooltip",l.className),...m,children:(0,p.jsxs)(o(),{className:"googlesitekit-tooltip-card",children:[(0,p.jsxs)("div",{className:"googlesitekit-tooltip-body",children:[(0,p.jsx)(d.A,{as:"h2",className:"googlesitekit-tooltip-title",size:"medium",type:"title",children:l.title}),(0,p.jsx)("div",{className:"googlesitekit-tooltip-content",children:l.content})]}),(0,p.jsxs)(n.CardActions,{className:"googlesitekit-tooltip-actions",children:[(0,p.jsx)("ul",{className:"googlesitekit-tooltip-indicators",children:I.map(e=>(0,p.jsx)("li",{className:h(e)},`indicator-${e}`))}),(0,p.jsxs)("div",{className:"googlesitekit-tooltip-buttons",children:[0!==i&&(0,p.jsx)(g.Button,{className:"googlesitekit-tooltip-button",text:!0,...e,children:e.title}),l.cta,r.title&&(0,p.jsx)(g.Button,{className:"googlesitekit-tooltip-button",text:!0,...r,children:r.title})]})]}),(0,p.jsx)(g.Button,{className:"googlesitekit-tooltip-close",icon:(0,p.jsx)(u.A,{width:"14",height:"14"}),onClick:t.onClick,"aria-label":(0,c.__)("Close","google-site-kit"),text:!0,hideTooltipTitle:!0})]})})}TourTooltip.propTypes={backProps:l().object.isRequired,closeProps:l().object.isRequired,index:l().number.isRequired,isLastStep:l().bool.isRequired,primaryProps:l().object.isRequired,size:l().number.isRequired,step:l().shape({content:l().node,title:l().node,cta:l().oneOfType([l().element,l().bool]),className:l().string}).isRequired,tooltipProps:l().object.isRequired}},61991:(e,t,i)=>{i.d(t,{Ay:()=>s,Kq:()=>r});const n=(0,i(63696).createContext)(""),{Consumer:o,Provider:r}=n,s=n},65214:(e,t,i)=>{i.d(t,{G:()=>o,t:()=>n});const n=new Set(i.g?._googlesitekitBaseData?.enabledFeatures||[]);function o(e,t=n){return t instanceof Set&&t.has(e)}},65311:(e,t,i)=>{i.d(t,{c:()=>s});var n=i(82871),o=i(97398),r=i(99897);function s(e="",t={}){const{slug:i="",name:s="",owner:a={}}=t||{};if(!i||!s)return e;let l="",c="";return r.L1===i?e.match(/account/i)?l=(0,n.__)("Your Google account does not have sufficient permissions for this Analytics account, so you wont be able to see stats from it on the Site Kit dashboard.","google-site-kit"):e.match(/property/i)?l=(0,n.__)("Your Google account does not have sufficient permissions for this Analytics property, so you wont be able to see stats from it on the Site Kit dashboard.","google-site-kit"):e.match(/view/i)&&(l=(0,n.__)("Your Google account does not have sufficient permissions for this Analytics view, so you wont be able to see stats from it on the Site Kit dashboard.","google-site-kit")):o.Y===i&&(l=(0,n.__)("Your Google account does not have sufficient permissions for this Search Console property, so you wont be able to see stats from it on the Site Kit dashboard.","google-site-kit")),l||(l=(0,n.sprintf)(/* translators: %s: module name */ /* translators: %s: module name */
(0,n.__)("Your Google account does not have sufficient permissions to access %s data, so you wont be able to see stats from it on the Site Kit dashboard.","google-site-kit"),s)),a&&a.login&&(c=(0,n.sprintf)(/* translators: %s: owner name */ /* translators: %s: owner name */
(0,n.__)('This service was originally connected by the administrator "%s" — you can contact them for more information.',"google-site-kit"),a.login)),c||(c=(0,n.__)("This service was originally connected by an administrator — you can contact them for more information.","google-site-kit")),`${l} ${c}`}},67150:(e,t,i)=>{i.d(t,{G:()=>c,HY:()=>u,SG:()=>g,db:()=>o,e4:()=>p,vl:()=>d});i(17243);var n=i(82871);const o="missing_required_scopes",r="insufficientPermissions",s="forbidden",a="internal_server_error",l="invalid_json";function c(e){return e?.code===o}function g(e){return[r,s].includes(e?.data?.reason)}function u(e){return!!e?.data?.reconnectURL}function d(e,t){return!(!t?.storeName||g(e)||c(e)||u(e))}function p(e){return e?.code===a?(0,n.__)("There was a critical error on this website while fetching data","google-site-kit"):e?.code===l?(0,n.__)("The server provided an invalid response","google-site-kit"):e?.message}},68485:(e,t,i)=>{i.d(t,{r:()=>AdminScreenTooltip,i:()=>n.i});var n=i(15863),o=i(63696),r=i(50539),s=i(62688),a=i(36703),l=i(40960),c=i(60592),g=i(14007),u=i(39771),d=i(32947),p=i(62540);function JoyrideTooltip(e){const{title:t,content:n,dismissLabel:r,disableOverlay:s=!0,target:m,cta:I=!1,className:h,styles:y={},slug:M="",placement:f="auto",onDismiss:N=()=>{},onView:j=()=>{},onTourStart:b=()=>{},onTourEnd:D=()=>{}}=e;function S(){return!!i.g.document.querySelector(m)}const[k,x]=(0,o.useState)(S),v=(0,d.dv)(),A=v===d.mp||v===d.Lg,[T,E]=(0,o.useState)(!0),_=(0,o.useRef)(A);if((0,l.A)(()=>{S()&&x(!0)},k?null:250),(0,o.useEffect)(()=>{let e=()=>{};if("function"==typeof i.g.ResizeObserver){const t=i.g.document.querySelector(m);if(t){const n=new ResizeObserver(()=>{i.g.dispatchEvent(new Event("resize"))});n.observe(t),e=()=>n.disconnect()}}return e},[m,k]),(0,o.useEffect)(()=>{let e;return _.current!==A&&(E(!1),e=setTimeout(()=>{E(!0)},50),_.current=A),()=>{e&&clearTimeout(e)}},[A]),!k)return null;const C=[{title:t,target:m,content:n,disableBeacon:!0,isFixed:!0,placement:f,cta:I,className:h}],w={close:r,last:r};return(0,p.jsx)(g.A,{slug:M,children:(0,p.jsx)(a.Ay,{callback:function({type:e}){switch(e){case a.qY.TOUR_START:b(),i.g.document.body.classList.add("googlesitekit-showing-tooltip");break;case a.qY.TOUR_END:D(),i.g.document.body.classList.remove("googlesitekit-showing-tooltip");break;case a.qY.STEP_AFTER:N();break;case a.qY.TOOLTIP:j()}},disableOverlay:s,spotlightPadding:0,floaterProps:u.ei,locale:w,steps:C,styles:{...u.R0,...y,options:{...u.R0.options,...y?.options},spotlight:{...u.R0.spotlight,...y?.spotlight}},tooltipComponent:c.A,run:T,disableScrolling:!0})})}JoyrideTooltip.propTypes={title:s.PropTypes.node,content:s.PropTypes.string,disableOverlay:s.PropTypes.bool,dismissLabel:s.PropTypes.string,target:s.PropTypes.string.isRequired,onDismiss:s.PropTypes.func,onShow:s.PropTypes.func,className:s.PropTypes.string,styles:s.PropTypes.object,slug:s.PropTypes.string,placement:s.PropTypes.string,onView:s.PropTypes.func};var m=i(7081),I=i(12850),h=i(77766);function AdminScreenTooltip(){const e=(0,h.A)(),{setValue:t}=(0,r.useDispatch)(m.n),i=(0,d.dv)(),{isTooltipVisible:n=!1,target:s,placement:a,className:l,tooltipSlug:c,title:g,content:u,dismissLabel:y}=(0,r.useSelect)(e=>e(m.n).getValue("admin-screen-tooltip")||{isTooltipVisible:!1});const M=(0,o.useCallback)(()=>{c&&(0,I.sx)(`${e}_${c}`,"tooltip_dismiss"),t("admin-screen-tooltip",void 0)},[t,c,e]);if(!n)return null;const f=i===d.mp||i===d.Lg,N=null!=s?s:'#adminmenu [href*="page=googlesitekit-settings"]',j=null!=a?a:"right";return(0,p.jsx)(JoyrideTooltip,{target:f?"body":N,placement:f?"center":j,className:f?"googlesitekit-tour-tooltip__modal_step":l||(s?void 0:"googlesitekit-tour-tooltip__fixed-settings-tooltip"),disableOverlay:!f,slug:"admin-screen-tooltip",title:g,content:u,dismissLabel:y,onView:function(){(0,I.sx)(`${e}_${c}`,"tooltip_view")},onDismiss:M})}},71423:(e,t,i)=>{i.d(t,{$:()=>r,D:()=>o});var n=i(24558);const o="core/notifications",r=[n.uR,n.jU,n.f7,n.Ax,n.Is]},71769:(e,t,i)=>{function n(e){return e.charAt(0).toUpperCase()+e.slice(1)}function o(e){return e.replace(/([a-z0-9]{1})([A-Z]{1})/g,"$1_$2").toUpperCase()}function r(e){return e.split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join("")}i.d(t,{Uf:()=>r,m2:()=>n,sP:()=>o})},72545:(e,t,i)=>{i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var n,o=i(63696);function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)({}).hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},r.apply(null,arguments)}const __WEBPACK_DEFAULT_EXPORT__=e=>o.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 14 14"},e),n||(n=o.createElement("path",{fill:"currentColor",d:"M14 1.41 12.59 0 7 5.59 1.41 0 0 1.41 5.59 7 0 12.59 1.41 14 7 8.41 12.59 14 14 12.59 8.41 7z"})))},75487:(e,t,i)=>{i.d(t,{fh:()=>Cell,xA:()=>d,fI:()=>g});var n=i(62688),o=i.n(n),r=i(4452),s=i.n(r),a=i(62540);function Cell(e){const{className:t,alignTop:i,alignMiddle:n,alignBottom:o,alignRight:r,alignLeft:l,smAlignRight:c,mdAlignRight:g,lgAlignRight:u,smSize:d,smStart:p,smOrder:m,mdSize:I,mdStart:h,mdOrder:y,lgSize:M,lgStart:f,lgOrder:N,size:j,children:b,...D}=e;return(0,a.jsx)("div",{...D,className:s()(t,"mdc-layout-grid__cell",{"mdc-layout-grid__cell--align-top":i,"mdc-layout-grid__cell--align-middle":n,"mdc-layout-grid__cell--align-bottom":o,"mdc-layout-grid__cell--align-right":r,"mdc-layout-grid__cell--align-left":l,"mdc-layout-grid__cell--align-right-phone":c,"mdc-layout-grid__cell--align-right-tablet":g,"mdc-layout-grid__cell--align-right-desktop":u,[`mdc-layout-grid__cell--span-${j}`]:12>=j&&j>0,[`mdc-layout-grid__cell--span-${M}-desktop`]:12>=M&&M>0,[`mdc-layout-grid__cell--start-${f}-desktop`]:12>=f&&f>0,[`mdc-layout-grid__cell--order-${N}-desktop`]:12>=N&&N>0,[`mdc-layout-grid__cell--span-${I}-tablet`]:8>=I&&I>0,[`mdc-layout-grid__cell--start-${h}-tablet`]:8>=h&&h>0,[`mdc-layout-grid__cell--order-${y}-tablet`]:8>=y&&y>0,[`mdc-layout-grid__cell--span-${d}-phone`]:4>=d&&d>0,[`mdc-layout-grid__cell--start-${p}-phone`]:4>=p&&p>0,[`mdc-layout-grid__cell--order-${m}-phone`]:4>=m&&m>0}),children:b})}Cell.propTypes={smSize:o().number,smStart:o().number,smOrder:o().number,mdSize:o().number,mdStart:o().number,mdOrder:o().number,lgSize:o().number,lgStart:o().number,lgOrder:o().number,size:o().number,alignTop:o().bool,alignMiddle:o().bool,alignBottom:o().bool,alignRight:o().bool,alignLeft:o().bool,smAlignRight:o().bool,mdAlignRight:o().bool,lgAlignRight:o().bool,className:o().string,children:o().node},Cell.defaultProps={className:"",size:0,smSize:0,smStart:0,smOrder:0,mdSize:0,mdStart:0,mdOrder:0,lgSize:0,lgStart:0,lgOrder:0};var l=i(63696);const c=(0,l.forwardRef)(({className:e,children:t,...i},n)=>(0,a.jsx)("div",{ref:n,className:s()("mdc-layout-grid__inner",e),...i,children:t}));c.displayName="Row",c.propTypes={className:o().string,children:o().node},c.defaultProps={className:""};const g=c,u=(0,l.forwardRef)(({alignLeft:e,fill:t,className:i,children:n,collapsed:o,...r},l)=>(0,a.jsx)("div",{className:s()("mdc-layout-grid",i,{"mdc-layout-grid--align-left":e,"mdc-layout-grid--collapsed":o,"mdc-layout-grid--fill":t}),...r,ref:l,children:n}));u.displayName="Grid",u.propTypes={alignLeft:o().bool,fill:o().bool,className:o().string,collapsed:o().bool,children:o().node},u.defaultProps={className:""};const d=u},76422:(e,t,i)=>{i.d(t,{A:()=>OverlayNotification});var n=i(62688),o=i.n(n),r=i(50539),s=i(71423),a=i(7070),l=i(5230),c=i(4452),g=i.n(c),u=i(32947),d=i(63696),p=i(15167),m=i(62540);function Title({children:e}){return(0,m.jsx)(p.A,{as:"h3",size:"medium",type:"title",className:"googlesitekit-overlay-card__title",children:e})}function Description({children:e}){return(0,m.jsx)("p",{className:"googlesitekit-overlay-card__description",children:e})}Title.propTypes={children:o().node.isRequired},Description.propTypes={children:o().node.isRequired};var I=i(82871),h=i(49383);function DismissButton({label:e=(0,I.__)("Maybe later","google-site-kit"),onClick:t,disabled:i}){return(0,m.jsx)(h.Button,{onClick:t,disabled:i,tertiary:!0,children:e})}const y={label:o().string,onClick:o().func,disabled:o().bool};function CTAButton(e){const{label:t,...i}=e;return(0,m.jsx)(h.Button,{...i,children:t})}DismissButton.propTypes=y,CTAButton.propTypes={...y,href:o().string,target:o().string,trailingIcon:o().object};var M=i(98652);function Body({title:e,description:t,ctaButton:i,dismissButton:n,GraphicDesktop:o,GraphicMobile:r,newBadge:s}){const a=(0,u.dv)();return(0,m.jsxs)(d.Fragment,{children:[a!==u.mp&&o&&(0,m.jsx)("div",{className:"googlesitekit-overlay-card__graphic",children:(0,m.jsx)(o,{})}),(0,m.jsxs)("div",{className:"googlesitekit-overlay-card__body",children:[s&&(0,m.jsx)("div",{className:"googlesitekit-overlay-card__badge",children:(0,m.jsx)(M.A,{hasNoSpacing:!0})}),e&&(0,m.jsx)(Title,{children:e}),t&&(0,m.jsx)(Description,{children:t})]}),(i||n)&&(0,m.jsxs)("div",{className:"googlesitekit-overlay-card__actions",children:[n&&(0,m.jsx)(DismissButton,{...n}),i&&(0,m.jsx)(CTAButton,{...i})]}),a===u.mp&&r&&(0,m.jsx)(r,{})]})}function OverlayCard(e){const{visible:t,className:i,...n}=e,o=(0,u.dv)();if(!t)return null;const r=(0,m.jsx)("div",{className:g()("googlesitekit-overlay-card",i),children:(0,m.jsx)(Body,{...n})});return o===u.mp?r:(0,m.jsx)(l.A,{direction:"up",in:t,children:r})}function OverlayNotification({notificationID:e,ctaButton:t,dismissButton:i,gaTrackingEventArgs:n,...o}){const l=(0,a.A)(e,n?.category,{confirmAction:n?.confirmAction,dismissAction:n?.dismissAction}),{dismissNotification:c}=(0,r.useDispatch)(s.D);const{dismissOnClick:g,dismissOptions:u,...d}=t||{};const p=t?{...d,onClick:async function(i){l.confirm(n?.label,n?.value),await(t?.onClick?.(i)),g&&c(e,{...u})}}:void 0;return(0,m.jsx)(OverlayCard,{ctaButton:p,dismissButton:{...i,onClick:async function(t){await(i?.onClick?.(t)),l.dismiss(n?.label,n?.value),c(e,{...i.dismissOptions})}},...o,visible:!0})}Body.propTypes={title:o().node,description:o().node,ctaButton:o().shape({...y,href:o().string,target:o().string,trailingIcon:o().element}),dismissButton:o().shape({...y}),GraphicDesktop:o().elementType,GraphicMobile:o().elementType,newBadge:o().bool},OverlayCard.propTypes={className:o().string,title:o().string,description:o().oneOfType([o().string,o().object]),ctaButton:o().shape({...y,href:o().string,target:o().string,trailingIcon:o().object}),dismissButton:o().shape(y),GraphicDesktop:o().elementType,GraphicMobile:o().elementType,newBadge:o().bool,visible:o().bool},OverlayCard.defaultProps={visible:!1},OverlayNotification.propTypes={notificationID:o().string,ctaButton:o().object,dismissButton:o().oneOfType([o().object,o().bool])}},77766:(e,t,i)=>{i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var n=i(63696),o=i(61991);const __WEBPACK_DEFAULT_EXPORT__=function(){return(0,n.useContext)(o.Ay)}},77967:(e,t,i)=>{i.d(t,{A:()=>ErrorNotice});var n=i(62688),o=i.n(n),r=i(63696),s=i(82871),a=i(84024),l=i(50539),c=i(67150),g=i(80035),u=i(12850),d=i(62540);function ErrorNotice({className:e,error:t,hasButton:i=!1,storeName:n,message:o=t.message,noPrefix:p=!1,skipRetryMessage:m,hideIcon:I=!1}){const h=(0,l.useDispatch)(),y=(0,l.useSelect)(e=>n?e(n).getSelectorDataForError(t):null),M=(0,r.useCallback)(()=>{h(y.storeName).invalidateResolution(y.name,y.args)},[h,y]);if(!o||(0,c.G)(t))return null;const f=i&&(0,c.vl)(t,y);let N=o;i||m||(N=(0,s.sprintf)(/* translators: %s: Error message from Google API. */ /* translators: %s: Error message from Google API. */
(0,s.__)("%s (Please try again.)","google-site-kit"),N)),p||(N=(0,s.sprintf)(/* translators: $%s: Error message */ /* translators: $%s: Error message */
(0,s.__)("Error: %s","google-site-kit"),N));const j=t?.data?.reconnectURL;j&&(0,a.m)(j)&&(N=(0,s.sprintf)(/* translators: 1: Original error message 2: Reconnect URL */ /* translators: 1: Original error message 2: Reconnect URL */
(0,s.__)('%1$s To fix this, <a href="%2$s">redo the plugin setup</a>.',"google-site-kit"),N,j));return(0,d.jsx)(g.A,{className:e,type:g.A.TYPES.ERROR,description:(0,d.jsx)("span",{dangerouslySetInnerHTML:(0,u.p9)(N,{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href"]})}),ctaButton:f?{label:(0,s.__)("Retry","google-site-kit"),onClick:M}:void 0,hideIcon:I})}ErrorNotice.propTypes={className:o().string,error:o().shape({message:o().string}),hasButton:o().bool,storeName:o().string,message:o().string,noPrefix:o().bool,skipRetryMessage:o().bool,hideIcon:o().bool}},78340:(e,t,i)=>{i.d(t,{s:()=>n});const n="core/forms"},79829:(e,t,i)=>{i.d(t,{Eo:()=>u,JK:()=>I,K5:()=>m,jq:()=>p,mK:()=>g});var n=i(17243),o=i(50532),r=i.n(o),s=i(82871);function a(e,t={}){const{formatUnit:i,formatDecimal:n}=function(e,t={}){const{hours:i,minutes:n,seconds:o}=l(e);return{hours:i,minutes:n,seconds:o,formatUnit(){const{unitDisplay:r="short",...a}=t,l={unitDisplay:r,...a,style:"unit"};return 0===e?p(o,{...l,unit:"second"}):(0,s.sprintf)(/* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */ /* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */
(0,s._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),o?p(o,{...l,unit:"second"}):"",n?p(n,{...l,unit:"minute"}):"",i?p(i,{...l,unit:"hour"}):"").trim()},formatDecimal(){const t=(0,s.sprintf)(
// translators: %s: number of seconds with "s" as the abbreviated unit.
// translators: %s: number of seconds with "s" as the abbreviated unit.
(0,s.__)("%ds","google-site-kit"),o);if(0===e)return t;const r=(0,s.sprintf)(
// translators: %s: number of minutes with "m" as the abbreviated unit.
// translators: %s: number of minutes with "m" as the abbreviated unit.
(0,s.__)("%dm","google-site-kit"),n),a=(0,s.sprintf)(
// translators: %s: number of hours with "h" as the abbreviated unit.
// translators: %s: number of hours with "h" as the abbreviated unit.
(0,s.__)("%dh","google-site-kit"),i);return(0,s.sprintf)(/* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */ /* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */
(0,s._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),o?t:"",n?r:"",i?a:"").trim()}}}(e,t);try{return i()}catch{return n()}}function l(e){e=parseInt(e,10),Number.isNaN(e)&&(e=0);return{hours:Math.floor(e/60/60),minutes:Math.floor(e/60%60),seconds:Math.floor(e%60)}}function c(e){return 1e6<=e?Math.round(e/1e5)/10:1e4<=e?Math.round(e/1e3):1e3<=e?Math.round(e/100)/10:e}function g(e){let t={};return"%"===e?t={style:"percent",maximumFractionDigits:2}:"s"===e?t={style:"duration",unitDisplay:"narrow"}:e&&"string"==typeof e?t={style:"currency",currency:e}:(0,n.isPlainObject)(e)&&(t={...e}),t}function u(e,t={}){e=(0,n.isFinite)(e)?e:Number(e),(0,n.isFinite)(e)||(console.warn("Invalid number",e,typeof e),e=0);const i=g(t),{style:o="metric"}=i;return"metric"===o?function(e){const t={minimumFractionDigits:1,maximumFractionDigits:1};return 1e6<=e?(0,s.sprintf)(
// translators: %s: an abbreviated number in millions.
// translators: %s: an abbreviated number in millions.
(0,s.__)("%sM","google-site-kit"),p(c(e),e%10==0?{}:t)):1e4<=e?(0,s.sprintf)(
// translators: %s: an abbreviated number in thousands.
// translators: %s: an abbreviated number in thousands.
(0,s.__)("%sK","google-site-kit"),p(c(e))):1e3<=e?(0,s.sprintf)(
// translators: %s: an abbreviated number in thousands.
// translators: %s: an abbreviated number in thousands.
(0,s.__)("%sK","google-site-kit"),p(c(e),e%10==0?{}:t)):p(e,{signDisplay:"never",maximumFractionDigits:1})}(e):"duration"===o?a(e,i):"durationISO"===o?function(e){let{hours:t,minutes:i,seconds:n}=l(e);return n=("0"+n).slice(-2),i=("0"+i).slice(-2),t=("0"+t).slice(-2),"00"===t?`${i}:${n}`:`${t}:${i}:${n}`}(e):p(e,i)}const d=r()(console.warn);function p(e,t={}){const{locale:i=I(),...n}=t;try{return new Intl.NumberFormat(i,n).format(e)}catch(t){d(`Site Kit numberFormat error: Intl.NumberFormat( ${JSON.stringify(i)}, ${JSON.stringify(n)} ).format( ${typeof e} )`,t.message)}const o={currencyDisplay:"narrow",currencySign:"accounting",style:"unit"},r=["signDisplay","compactDisplay"],s={};for(const[e,t]of Object.entries(n))o[e]&&t===o[e]||r.includes(e)||(s[e]=t);try{return new Intl.NumberFormat(i,s).format(e)}catch{return new Intl.NumberFormat(i).format(e)}}function m(e,t={}){const{locale:i=I(),style:n="long",type:o="conjunction"}=t;if(Intl.ListFormat){return new Intl.ListFormat(i,{style:n,type:o}).format(e)}
/* translators: used between list items, there is a space after the comma. */const r=(0,s.__)(", ","google-site-kit");return e.join(r)}function I(e=i.g){const t=(0,n.get)(e,["_googlesitekitLegacyData","locale"]);if(t){const e=t.match(/^(\w{2})?(_)?(\w{2})/);if(e&&e[0])return e[0].replace(/_/g,"-")}return e.navigator.language}},80035:(e,t,i)=>{i.d(t,{A:()=>f});var n,o=i(62688),r=i.n(o),s=i(4452),a=i.n(s),l=i(63696),c=i(19793);function g(){return g=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)({}).hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},g.apply(null,arguments)}const warning_notice=e=>l.createElement("svg",g({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),n||(n=l.createElement("path",{fill:"currentColor",d:"M12 1c6.075 0 11 4.925 11 11s-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1m0 14a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3m-1-2h2V6h-2z"})));var u=i(42343),d=i(49655),p=i(62540);const m={[d.Q.NEW]:u.A,[d.Q.SUCCESS]:c.A,[d.Q.INFO]:warning_notice,[d.Q.WARNING]:warning_notice,[d.Q.ERROR]:warning_notice};function Icon({type:e}){const t=m[e]||warning_notice;return(0,p.jsx)(t,{width:24,height:24})}function Title({className:e,children:t}){return(0,p.jsx)("p",{className:a()("googlesitekit-notice__title",e),children:t})}function Description({className:e,children:t}){return(0,p.jsx)("p",{className:a()("googlesitekit-notice__description",e),children:t})}Icon.propTypes={type:r().oneOf(Object.values(d.Q))},Title.propTypes={className:r().string,children:r().node},Description.propTypes={className:r().string,children:r().node};var I=i(49383),h=i(83366);function CTAButton({label:e,disabled:t,inProgress:i,onClick:n,href:o,external:r,hideExternalIndicator:s}){let a;return r&&!s&&(a=(0,p.jsx)(h.A,{width:14,height:14})),(0,p.jsx)(I.SpinnerButton,{className:"googlesitekit-notice__cta",disabled:t,isSaving:i,onClick:n,href:o,target:r?"_blank":"_self",trailingIcon:a,children:e})}CTAButton.propTypes={label:r().string.isRequired,disabled:r().bool,inProgress:r().bool,onClick:r().func,href:r().string,external:r().bool,hideExternalIndicator:r().bool};var y=i(82871);function DismissButton({label:e=(0,y.__)("Got it","google-site-kit"),onClick:t,disabled:i}){return(0,p.jsx)(I.Button,{onClick:t,disabled:i,tertiary:!0,children:e})}DismissButton.propTypes={label:r().string,onClick:r().func.isRequired,disabled:r().bool};const M=(0,l.forwardRef)(({className:e,title:t,description:i,dismissButton:n,ctaButton:o,type:r=d.Q.INFO,children:s,hideIcon:l},c)=>(0,p.jsxs)("div",{ref:c,className:a()("googlesitekit-notice",`googlesitekit-notice--${r}`,e),children:[!l&&(0,p.jsx)("div",{className:"googlesitekit-notice__icon",children:(0,p.jsx)(Icon,{type:r})}),(0,p.jsxs)("div",{className:"googlesitekit-notice__content",children:[t&&(0,p.jsx)(Title,{children:t}),i&&(0,p.jsx)(Description,{children:i})]}),(n?.label||n?.onClick||o?.label&&(o?.onClick||o?.href)||s)&&(0,p.jsxs)("div",{className:"googlesitekit-notice__action",children:[s,(n?.label||n?.onClick)&&(0,p.jsx)(DismissButton,{label:n.label,onClick:n.onClick,disabled:n.disabled}),o?.label&&(o?.onClick||o?.href)&&(0,p.jsx)(CTAButton,{label:o.label,onClick:o.onClick,inProgress:o.inProgress,disabled:o.disabled,href:o.href,external:o.external,hideExternalIndicator:o.hideExternalIndicator})]})]}));M.TYPES=d.Q,M.propTypes={className:r().string,title:r().oneOfType([r().string,r().object]),description:r().node,type:r().oneOf(Object.values(d.Q)),dismissButton:r().shape(DismissButton.propTypes),ctaButton:r().shape({...CTAButton.propTypes,label:r().string}),children:r().node,hideIcon:r().bool};const f=M},80452:(e,t,i)=>{i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var n,o=i(63696);function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)({}).hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},r.apply(null,arguments)}const __WEBPACK_DEFAULT_EXPORT__=e=>o.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 12 9"},e),n||(n=o.createElement("path",{stroke:"currentColor",strokeLinecap:"square",strokeWidth:1.6,d:"m2 5.309 1.474 2.14c.69 1.001 1.946 1.001 2.636 0L10 1.8"})))},82046:(e,t,i)=>{i.d(t,{C:()=>r,p:()=>o});var n=i(15210);function o(e,t={}){return{__html:n.O.sanitize(e,t)}}function r(e){const t="object"==typeof e?e.toString():e;return t?.replace?.(/\/+$/,"")}},82871:e=>{e.exports=googlesitekit.i18n},83366:(e,t,i)=>{i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var n,o=i(63696);function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)({}).hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},r.apply(null,arguments)}const __WEBPACK_DEFAULT_EXPORT__=e=>o.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},e),n||(n=o.createElement("path",{d:"M5 21a2 2 0 0 1-1.425-.575A2 2 0 0 1 3 19V5q0-.825.575-1.4Q4.175 3 5 3h7v2H5v14h14v-7h2v7q0 .825-.6 1.425Q19.825 21 19 21zm4.7-5.3-1.4-1.4L17.6 5H14V3h7v7h-2V6.4z"})))},84385:(e,t,i)=>{i.d(t,{A:()=>IconWrapper});var n=i(62688),o=i.n(n),r=i(62540);function IconWrapper({children:e,marginLeft:t,marginRight:i}){return(0,r.jsx)("span",{className:"googlesitekit-icon-wrapper",style:{marginLeft:t,marginRight:i},children:e})}IconWrapper.propTypes={children:o().node.isRequired,marginLeft:o().number,marginRight:o().number}},89318:(e,t,i)=>{i.d(t,{M9:()=>k,sx:()=>D,BI:()=>S});var n=i(17243);const o="_googlesitekitDataLayer",r="data-googlesitekit-gtag";function s(e){return function(){e[o]=e[o]||[],e[o].push(arguments)}}var a=i(65214);const l={activeModules:[],isAuthenticated:!1,referenceSiteURL:"",trackingEnabled:!1,trackingID:"",userIDHash:"",userRoles:[]};const{activeModules:c=[],isSiteKitScreen:g,trackingEnabled:u,trackingID:d,referenceSiteURL:p,userIDHash:m,isAuthenticated:I,userRoles:h}=i.g._googlesitekitTrackingData||{},{GOOGLESITEKIT_VERSION:y}=i.g,M={activeModules:c,trackingEnabled:u,trackingID:d,referenceSiteURL:p,userIDHash:m,isSiteKitScreen:g,userRoles:h,isAuthenticated:I,pluginVersion:y},{enableTracking:f,disableTracking:N,isTrackingEnabled:j,initializeSnippet:b,trackEvent:D,trackEventOnce:S}=function(e,t=i.g,c=i.g){const g={...l,...e};g.referenceSiteURL&&(g.referenceSiteURL=g.referenceSiteURL.toString().replace(/\/+$/,""));const u=function(e,t){const n=s(t);let l;const{activeModules:c,referenceSiteURL:g,userIDHash:u,userRoles:d=[],isAuthenticated:p,pluginVersion:m}=e;return function(){const{document:t}=i.g;if(void 0===l&&(l=!!t.querySelector(`script[${r}]`)),l)return!1;l=!0;const s=d?.length?d.join(","):"";n("js",new Date),n("config",e.trackingID,{groups:"site_kit",send_page_view:e.isSiteKitScreen,domain:g,plugin_version:m||"",enabled_features:Array.from(a.t).join(","),active_modules:c.join(","),authenticated:p?"1":"0",user_properties:{user_roles:s,user_identifier:u}});const I=t.createElement("script");return I.setAttribute(r,""),I.async=!0,I.src=`https://www.googletagmanager.com/gtag/js?id=${e.trackingID}&l=${o}`,t.head.appendChild(I),{scriptTagSrc:`https://www.googletagmanager.com/gtag/js?id=${e.trackingID}&l=${o}`}}}(g,t),d=function(e,t,i,n){const o=s(t);return async function(t,r,s,a){const{trackingEnabled:l}=e;if(!l)return null;i();const c={send_to:"site_kit",event_category:t,event_label:s,value:a};return new Promise(e=>{const i=setTimeout(function(){n.console.warn(`Tracking event "${r}" (category "${t}") took too long to fire.`),e()},1e3);function s(){clearTimeout(i),e()}o("event",r,{...c,event_callback:s}),n._gaUserPrefs?.ioo?.()&&s()})}}(g,t,u,c),p={};return{enableTracking:function(){g.trackingEnabled=!0},disableTracking:function(){g.trackingEnabled=!1},initializeSnippet:u,isTrackingEnabled:function(){return!!g.trackingEnabled},trackEvent:d,trackEventOnce:function(...e){const t=JSON.stringify(e);p[t]||(p[t]=(0,n.once)(d)),p[t](...e)}}}(M);function k(e){e?f():N()}g&&u&&b()},92152:(e,t,i)=>{i.d(t,{A:()=>LearnMoreLink});var n=i(62688),o=i.n(n),r=i(20898),s=i(7070),a=i(62540);function LearnMoreLink({id:e,label:t,url:i,ariaLabel:n,gaTrackingEventArgs:o,external:l=!0,...c}){const g=(0,s.A)(e);return(0,a.jsx)(r.A,{onClick:function(e){e.persist(),g.clickLearnMore(o?.label,o?.value)},href:i,"aria-label":n,external:l,...c,children:t})}LearnMoreLink.propTypes={id:o().string,label:o().string,url:o().string,ariaLabel:o().string,gaTrackingEventArgs:o().shape({label:o().string,value:o().string}),external:o().bool}},92698:(e,t,i)=>{i.d(t,{A:()=>d});var n=i(63696),o=i(50539),r=i(93896),s=i(58116),a=i(37226),l=i(45472),c=i(21134),g=i(89318),u=i(77766);function d(e){const t=(0,u.A)(),i=(0,o.useSelect)(t=>t(a.i).getModule(e)),d=(0,o.useSelect)(e=>e(s.oR).hasCapability(s.HD)),{activateModule:p}=(0,o.useDispatch)(a.i),{navigateTo:m}=(0,o.useDispatch)(l.M),{setInternalServerError:I}=(0,o.useDispatch)(r.O4),h=(0,n.useCallback)(async()=>{const{error:i,response:n}=await p(e);i?I({id:`${e}-setup-error`,description:i.message}):(await(0,g.sx)(`${t}_widget-activation-cta`,"activate_module",e),await(0,c.SO)("module_setup",e,{ttl:300}),m(n.moduleReauthURL))},[p,e,m,I,t]);return i?.name&&d?h:null}},93896:(e,t,i)=>{i.d(t,{O4:()=>n,OQ:()=>r,qc:()=>o});const n="core/site",o="primary",r="secondary"},94552:(e,t,i)=>{i.d(t,{A:()=>l});var n=i(62688),o=i.n(n),r=i(4452),s=i.n(r),a=i(62540);function ChangeArrow({direction:e,invertColor:t,width:i,height:n}){return(0,a.jsx)("svg",{className:s()("googlesitekit-change-arrow",`googlesitekit-change-arrow--${e}`,{"googlesitekit-change-arrow--inverted-color":t}),width:i,height:n,viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M5.625 10L5.625 2.375L9.125 5.875L10 5L5 -1.76555e-07L-2.7055e-07 5L0.875 5.875L4.375 2.375L4.375 10L5.625 10Z",fill:"currentColor"})})}ChangeArrow.propTypes={direction:o().string,invertColor:o().bool,width:o().number,height:o().number},ChangeArrow.defaultProps={direction:"up",invertColor:!1,width:9,height:9};const l=ChangeArrow},97398:(e,t,i)=>{i.d(t,{Y:()=>n});const n="search-console"},98652:(e,t,i)=>{i.d(t,{A:()=>p});var n=i(62688),o=i.n(n),r=i(4452),s=i.n(r),a=i(63696),l=i(82871),c=i(49383),g=i(2362),u=i(20898),d=i(62540);function NewBadge({tooltipTitle:e,learnMoreLink:t,forceOpen:i,hasLeftSpacing:n,hasNoSpacing:o,onLearnMoreClick:r=()=>{}}){const p=(0,d.jsx)(g.A,{className:s()("googlesitekit-new-badge",{"googlesitekit-new-badge--has-no-spacing":o}),label:(0,l.__)("New","google-site-kit"),hasLeftSpacing:n});return e?(0,d.jsx)(c.Tooltip,{tooltipClassName:"googlesitekit-new-badge__tooltip",title:(0,d.jsxs)(a.Fragment,{children:[e,(0,d.jsx)("br",{}),(0,d.jsx)(u.A,{href:t,onClick:r,external:!0,hideExternalIndicator:!0,children:(0,l.__)("Learn more","google-site-kit")})]}),placement:"top",enterTouchDelay:0,leaveTouchDelay:5e3,open:i,interactive:!0,children:p}):p}NewBadge.propTypes={tooltipTitle:o().string,learnMoreLink:o().string,forceOpen:o().bool,onLearnMoreClick:o().func,hasLeftSpacing:o().bool,hasNoSpacing:o().bool};const p=NewBadge},99897:(e,t,i)=>{i.d(t,{A_:()=>g,DF:()=>d,L1:()=>p,M0:()=>s,Mc:()=>a,Ok:()=>c,U9:()=>l,iW:()=>r,ue:()=>o,wq:()=>n,xR:()=>u});const n=1,o=2,r=3,s="enhanced-measurement-activation-banner-tooltip-state",a="enhanced-measurement-activation-banner-dismissed-item",l="_r.explorerCard..selmet",c="_r.explorerCard..seldim",g="_r..dataFilters",u="_r..nav",d="key-metrics-connect-ga4-cta-widget",p="analytics-4"}},e=>{e.O(0,[660],()=>{return t=17911,e(e.s=t);var t});e.O()}]);