kollapsminoriteten/wp-content/plugins/google-site-kit/dist/assets/js/googlesitekit-settings-a156...

61 lines
457 KiB
JavaScript
Raw Normal View History

2026-03-31 11:30:59 +02:00
"use strict";(globalThis.__googlesitekit_webpackJsonp=globalThis.__googlesitekit_webpackJsonp||[]).push([[290,937],{80:(e,t,i)=>{i.d(t,{CV:()=>S,Cu:()=>A,K9:()=>s,Kr:()=>h,Lf:()=>p,Oh:()=>r,PW:()=>M,Rx:()=>T,S9:()=>_,TQ:()=>d,Vt:()=>w,Wl:()=>v,ZC:()=>n,ZY:()=>a,_p:()=>C,ag:()=>m,aj:()=>u,bz:()=>N,dq:()=>E,f2:()=>c,fB:()=>b,fV:()=>I,iB:()=>g,kc:()=>l,mo:()=>y,nc:()=>j,rm:()=>x,to:()=>o,wo:()=>f,yn:()=>k});const s="modules/analytics-4",n="account_create",o="property_create",r="webdatastream_create",a="analyticsSetup",l=10,c=0,g="https://www.googleapis.com/auth/tagmanager.readonly",d="enhanced-measurement-form",u="enhanced-measurement-enabled",p="enhanced-measurement-should-dismiss-activation-banner",m="analyticsAccountCreate",h="analyticsCustomDimensionsCreate",_="https://www.googleapis.com/auth/analytics.edit",f="dashboardAllTrafficWidgetDimensionName",y="dashboardAllTrafficWidgetDimensionColor",k="dashboardAllTrafficWidgetDimensionValue",v="dashboardAllTrafficWidgetActiveRowIndex",x="dashboardAllTrafficWidgetLoaded",A={googlesitekit_post_date:{parameterName:"googlesitekit_post_date",displayName:"WordPress Post Date",description:"Created by Site Kit: Date when a post was published",scope:"EVENT"},googlesitekit_post_author:{parameterName:"googlesitekit_post_author",displayName:"WordPress Post Author",description:"Created by Site Kit: WordPress name of the post author",scope:"EVENT"},googlesitekit_post_categories:{parameterName:"googlesitekit_post_categories",displayName:"WordPress Post Categories",description:"Created by Site Kit: Names of categories assigned to a post",scope:"EVENT"},googlesitekit_post_type:{parameterName:"googlesitekit_post_type",displayName:"WordPress Post Type",description:"Created by Site Kit: Content type of a post",scope:"EVENT"}},j={ADD_TO_CART:"add_to_cart",PURCHASE:"purchase",SUBMIT_LEAD_FORM:"submit_lead_form",GENERATE_LEAD:"generate_lead",CONTACT:"contact"},I=[j.CONTACT,j.GENERATE_LEAD,j.SUBMIT_LEAD_FORM],b={"new-visitors":{description:"People who visited the site for the first time",displayName:"New visitors",membershipDurationDays:-1,filterClauses:[{clauseType:"INCLUDE",simpleFilter:{scope:"AUDIENCE_FILTER_SCOPE_ACROSS_ALL_SESSIONS",filterExpression:{andGroup:{filterExpressions:[{orGroup:{filterExpressions:[{dimensionOrMetricFilter:{fieldName:"newVsReturning",stringFilter:{matchType:"EXACT",value:"new"}}}]}},{orGroup:{filterExpressions:[{notExpression:{dimensionOrMetricFilter:{fieldName:"groupId",stringFilter:{matchType:"EXACT",value:"created_by_googlesitekit:new_visitors"}}}}]}}]}}}}]},"returning-visitors":{description:"People who have visited your site at least once before",displayName:"Returning visitors",membershipDurationDays:-1,filterClauses:[{clauseType:"INCLUDE",simpleFilter:{scope:"AUDIENCE_FILTER_SCOPE_ACROSS_ALL_SESSIONS",filterExpression:{andGroup:{filterExpressions:[{orGroup:{filterExpressions:[{dimensionOrMetricFilter:{fieldName:"newVsReturning",stringFilter:{matchType:"EXACT",value:"returning"}}}]}},{orGroup:{filterExpressions:[{notExpression:{dimensionOrMetricFilter:{fieldName:"groupId",stringFilter:{matchType:"EXACT",value:"created_by_googlesitekit:returning_visitors"}}}}]}}]}}}}]}},M="audiencePermissionsSetup",S="audienceTileCustomDimensionCreate",N="audience-selection-panel-expirable-new-badge-",E="audience",w="customDimension",C="property",T=[E,w,C]},338:(e,t,i)=>{i.d(t,{A:()=>UserSettingsSelectionPanel});var s=i(82871),n=i(63696),o=i(81276),r=i(50539),a=i(7972),l=i(97345),c=i(76729),g=i(5856),d=i(62688),u=i.n(d),p=i(29785),m=i(88273),h=i(13606),_=i(70301),f=i(4124),y=i(38432),k=i(83880),v=i(62659),x=i(20697),A=i(4751),j=i(62540);function Header({closePanel:e,isLoading:t}){const i=(0,v.A)(),o=(0,f.A)(),a=(0,r.useSelect)(e=>e(p.O4).isEmailReportingEnabled()),l=(0,r.useSelect)(e=>e(p.O4).getSiteKitAdminSettingsURL({scrollTo:"email-reporting"})),{navigateTo:c}=(0,r.useDispatch)(_.M),d=(0,n.useCallback)(()=>{x.KK===i&&e(),c(l)},[l,c,e,i]);return(0,j.jsxs)(g.W4,{title:(0,s.__)("Email reports subscription","google-site-kit"),onCloseClick:e,children:[t&&(0,j.jsxs)(n.Fragment,{ch
(0,s.__)("Sent every %s","google-site-kit"),function(e){const t=Number.isInteger(e)&&e>=0&&e<=6?e:1;return a[t]}(c)),h={weekly:{label:(0,s.__)("Weekly","google-site-kit"),period:(0,s.__)("Last 7 days","google-site-kit"),description:m},monthly:{label:(0,s.__)("Monthly","google-site-kit"),period:(0,s.__)("Last 28 days","google-site-kit"),description:(0,s.__)("Sent on the 1st of each month","google-site-kit")},quarterly:{label:(0,s.__)("Quarterly","google-site-kit"),period:(0,s.__)("Last 90 days","google-site-kit"),description:(0,s.__)("Sent on the 1st of each quarter","google-site-kit")}};return t?(0,j.jsxs)(n.Fragment,{children:[(0,j.jsx)("br",{}),(0,j.jsx)(A.A,{width:"20%",height:"16px"}),(0,j.jsx)("br",{}),(0,j.jsx)("div",{className:"googlesitekit-frequency-selector",children:(0,j.jsx)(C.A,{width:"100%",height:"184px",count:3})})]}):!1===o?null:(0,j.jsxs)(n.Fragment,{children:[(0,j.jsx)(M.A,{className:"googlesitekit-frequency-selector-title",type:"label",size:"small",as:"h3",children:(0,s.__)("Frequency","google-site-kit")}),e&&d&&!i&&(0,j.jsx)("div",{className:"googlesitekit-frequency-selector__badge-row",children:l.lV.map(e=>(0,j.jsx)("div",{className:"googlesitekit-frequency-selector__badge-cell",children:e===d&&(0,j.jsx)("div",{className:"googlesitekit-frequency-selector__current-subscription",children:(0,j.jsx)(M.A,{type:E.SZ,size:E.Kk,children:(0,s.__)("Current subscription","google-site-kit")})},e)},e))}),(0,j.jsx)("div",{className:"googlesitekit-frequency-selector",role:"radiogroup","aria-label":(0,s.__)("Frequency","google-site-kit"),children:l.lV.map(t=>{const n=g===t,{label:o,period:r,description:a}=h[t]||{};return(0,j.jsxs)("div",{className:N()("googlesitekit-frequency-selector__card",{"googlesitekit-frequency-selector__card--selected":n}),role:"radio","aria-checked":n,tabIndex:0,onClick:()=>u(t),onKeyDown:e=>function(e,t){" "!==e.key&&"Spacebar"!==e.key&&"Enter"!==e.key||(e.preventDefault(),u(t))}(e,t),children:[e&&d&&i&&t===d&&(0,j.jsx)("div",{className:N()("googlesitekit-frequency-selector__current-subscription",{"googlesitekit-frequency-selector__current-subscription--selected":n}),children:(0,j.jsx)(M.A,{type:E.SZ,size:E.Kk,children:(0,s.__)("Current subscription","google-site-kit")})}),(0,j.jsxs)("div",{className:"googlesitekit-frequency-selector__content",children:[(0,j.jsx)("div",{className:"googlesitekit-frequency-selector__label",children:(0,j.jsx)(M.A,{type:"label",size:"large",children:o})}),(0,j.jsxs)("div",{className:"googlesitekit-frequency-selector__period-description",children:[(0,j.jsx)("div",{className:"googlesitekit-frequency-selector__period",children:(0,j.jsx)(M.A,{type:"body",size:"small",children:r})}),(0,j.jsx)("div",{className:"googlesitekit-frequency-selector__description",children:(0,j.jsx)(M.A,{type:"body",size:"small",children:a})})]})]})]},t)})})]})}FrequencySelector.propTypes={isUserSubscribed:u().bool,isLoading:u().bool};var T=i(11763),D=i(52696);const R={SUBSCRIBE:"subscribe",UNSUBSCRIBE:"unsubscribe",UPDATE_SETTINGS:"update_settings"};function SubscribeActions({isSubscribed:e,onSubscribe:t,onUnsubscribe:i,updateSettings:o,isSavingSettings:r,isLoading:a}){const[l,c]=(0,n.useState)("");function g(e){switch(c(e),e){case R.UPDATE_SETTINGS:o();break;case R.SUBSCRIBE:t();break;case R.UNSUBSCRIBE:i()}}return!1===(0,D.WM)(e=>e(p.O4).isEmailReportingEnabled())?null:(0,j.jsxs)("div",{className:"googlesitekit-selection-panel-subscribe-actions",children:[a&&(0,j.jsx)(C.A,{width:"140px",height:"42px",count:2}),!a&&e&&(0,j.jsx)(T.A,{onClick:()=>g(R.UNSUBSCRIBE),isSaving:r&&l===R.UNSUBSCRIBE,disabled:r,tertiary:!0,children:(0,s.__)("Unsubscribe","google-site-kit")}),!a&&(0,j.jsx)(T.A,{onClick:()=>g(e?R.UPDATE_SETTINGS:R.SUBSCRIBE),isSaving:r&&l!==R.UNSUBSCRIBE,disabled:r,children:e?(0,s.__)("Update Settings","google-site-kit"):(0,s.__)("Subscribe","google-site-kit")})]})}SubscribeActions.propTypes={isSubscribed:u().bool,onSubscribe:u().func.isRequired,onUnsubscribe:u().func.isRequired,updateSettings:u().func.isRequired,isSavingSettings:u().bool,isLoading:u().bool};var z=i(91117),L=i(6373
(0,y.__)("%1$d selected <MaxCount>(up to %2$d)</MaxCount>","google-site-kit"),C,n),{MaxCount:(0,m.jsx)("span",{className:"googlesitekit-selection-panel-footer__item-count--max-count"})})});return(0,m.jsx)("footer",{className:"googlesitekit-selection-panel-footer",children:(0,m.jsxs)("div",{className:"googlesitekit-selection-panel-footer__content",children:[T,(0,m.jsxs)("div",{className:"googlesitekit-selection-panel-footer__actions",children:[(0,m.jsx)(k.Button,{onClick:N,disabled:o,tertiary:!0,children:(0,y.__)("Cancel","google-site-kit")}),(0,m.jsx)(k.SpinnerButton,{onClick:S,isSaving:o,disabled:C<s||C>n||o||!l&&p,children:g||v})]})]})})}SelectionPanelFooter.propTypes={savedItemSlugs:r().array,selectedItemSlugs:r().array,saveSettings:r().func,minSelectedItemCount:r().number,maxSelectedItemCount:r().number,isBusy:r().bool,onSaveSuccess:r().func,onCancel:r().func,isOpen:r().bool,closePanel:r().func};const S=SelectionPanel},6730:(e,t,i)=>{i.d(t,{A:()=>GenericErrorHandlerActions});var s=i(62688),n=i.n(s),o=i(82871),r=i(38432),a=i(38021),l=i.n(a),c=i(63696),g=i(12417),d=i(1027),u=i(65123),p=i(49383),m=i(62540);function ReportErrorButton({message:e,componentStack:t}){const[i,s]=(0,c.useState)(!1);return(0,m.jsx)(p.Button,{"aria-label":i?(0,o.__)("Error message copied to clipboard. Click to copy the error message again.","google-site-kit"):void 0,onClick:function(){l()(`\`\`\`\n${e}\n${t}\n\`\`\``),s(!0)},trailingIcon:(0,m.jsx)(g.A,{className:"mdc-button__icon",icon:i?d.A:u.A}),children:i?(0,o.__)("Copied to clipboard","google-site-kit"):(0,o.__)("Copy error contents","google-site-kit")})}ReportErrorButton.propTypes={message:n().string,componentStack:n().string};const h=ReportErrorButton;function GenericErrorHandlerActions({message:e,componentStack:t}){return(0,m.jsxs)("div",{className:"googlesitekit-generic-error-handler-actions",children:[(0,m.jsx)(h,{message:e,componentStack:t}),(0,m.jsx)(r.A,{href:"https://wordpress.org/support/plugin/google-site-kit/",external:!0,children:(0,o.__)("Report this problem","google-site-kit")})]})}GenericErrorHandlerActions.propTypes={message:n().string,componentStack:n().string}},7076:(e,t,i)=>{i.d(t,{d:()=>r});var s=i(18117),n=i(17243),o=i(63696);function r(...e){const t=(0,s.MA)(()=>(0,n.debounce)(...e),e);return(0,o.useEffect)(()=>()=>t.cancel(),[t]),t}},7144:(e,t,i)=>{i.d(t,{EA:()=>o,GF:()=>f,Hl:()=>d,IX:()=>m,Is:()=>r,KD:()=>p,LO:()=>g,NO:()=>c,Nl:()=>l,QJ:()=>u,Uf:()=>n,XU:()=>_,Y0:()=>a,hs:()=>y,wb:()=>h});var s=i(82871);const n="key-metrics-setup-cta-widget",o="googlesitekit-key-metrics-selection-panel-opened",r="key-metrics-selection-form",a="key-metrics-selected",l="key-metrics-effective-selection",c="key-metrics-unstaged-selection",g=2,d=8,u={SLUG:"current-selection",LABEL:(0,s.__)("Current selection","google-site-kit")},p={SLUG:"suggested",LABEL:(0,s.__)("Suggested","google-site-kit")},m={SLUG:"visitors",LABEL:(0,s.__)("Visitors","google-site-kit")},h={SLUG:"driving-traffic",LABEL:(0,s.__)("Driving traffic","google-site-kit")},_={SLUG:"generating-leads",LABEL:(0,s.__)("Generating leads","google-site-kit")},f={SLUG:"selling-products",LABEL:(0,s.__)("Selling products","google-site-kit")},y={SLUG:"content-performance",LABEL:(0,s.__)("Content performance","google-site-kit")}},7551:(e,t,i)=>{i.d(t,{Ay:()=>a,Oo:()=>o,oE:()=>r});var s=i(20697),n=i(62659);const o=s.jU,r=s.f7;function a(){const e=(0,n.A)();return e===s.jU||e===s.Ax?o:e===s.f7||e===s.Is?r:null}},7972:(e,t,i)=>{i.d(t,{F:()=>n,n:()=>s});const s="core/ui",n="activeContextID"},8084:(e,t,i)=>{i.d(t,{$C:()=>S,RF:()=>M,WI:()=>I,_5:()=>x,jU:()=>v,o3:()=>k,x0:()=>j});var s=i(32091),n=i.n(s),o=i(50532),r=i.n(o),a=i(17243),l=i(78913);const c="GET_REGISTRY",g="AWAIT";function d(...e){const t=e.reduce((e,t)=>({...e,...t}),{}),i=A(e.reduce((e,t)=>[...e,...Object.keys(t)],[]));return n()(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 u=d,p=d;function m(...e){const t=[...e];let i;re
(0,c.__)("these active modules depend on consent mode and will be affected: %s","google-site-kit"),(0,R.K5)(n)):null;(0,D.A)(()=>{(0,R.sx)(`${i}_CoMo`,"view_modal")});let r=[(0,c.__)("Track how visitors interact with your site","google-site-kit")],a=(0,c.__)("Disabling consent mode may affect your ability in the European Economic Area, the UK and Switzerland to:","google-site-kit");return s&&(r=[(0,c.__)("Performance of your Ad campaigns","google-site-kit"),(0,c.__)("How visitors interact with your site via Analytics","google-site-kit")],a=(0,c.__)("Disabling consent mode may affect your ability to track these in the European Economic Area, the UK and Switzerland:","google-site-kit")),(0,P.jsx)(L.A,{className:"googlesitekit-settings-module__confirm-disconnect-modal",title:(0,c.__)("Disable consent mode?","google-site-kit"),subtitle:a,handleConfirm:e,handleCancel:t,onClose:t,provides:r,notes:[o],confirmButton:(0,c.__)("Disable","google-site-kit"),dialogActive:!0,danger:!0})}ConfirmDisableConsentModeDialog.propTypes={onConfirm:T().func.isRequired,onCancel:T().func.isRequired};var B=i(11514),U=i(73198),G=i(83880);function ConsentModeSwitch({loading:e}){const t=(0,O.A)(),[i,s]=(0,l.useState)(null),[n,o]=(0,l.useState)(!1),r=(0,m.useSelect)(e=>e(M.O4).isConsentModeEnabled()),a=(0,m.useSelect)(e=>e(M.O4).getDocumentationLinkURL("consent-mode")),d=(0,m.useSelect)(e=>e(M.O4).isFetchingSaveConsentModeSettings()),{setConsentModeEnabled:u,saveConsentModeSettings:p}=(0,m.useDispatch)(M.O4),{dismissPrompt:h,triggerSurvey:f}=(0,m.useDispatch)(_.oR),y=(0,m.useSelect)(e=>e(_.oR).isPromptDismissed(B.X));async function k(){s(null);const e=[p(),f("enable_como",{ttl:R.tt})],[{error:t}]=await Promise.all(e);t?s(t):y||await h(B.X)}return(0,P.jsxs)(l.Fragment,{children:[(0,P.jsxs)("div",{children:[(0,P.jsx)(w.A,{loading:e,width:"180px",height:"21.3px",children:(0,P.jsx)(g.Switch,{label:(0,c.__)("Enable consent mode","google-site-kit"),checked:r,disabled:e||d,onClick:()=>{r?((0,R.sx)(`${t}_CoMo`,"como_disable"),o(!0)):((0,R.sx)(`${t}_CoMo`,"como_enable"),u(!0),k())},hideLabel:!1})}),i&&(0,P.jsx)(U.A,{message:i.message}),!e&&r&&(0,P.jsx)("p",{className:"googlesitekit-settings-consent-mode-switch__enabled-notice",children:(0,c.__)("Site Kit added the necessary code to your tag to comply with consent mode.","google-site-kit")}),(0,P.jsx)(w.A,{className:"googlesitekit-settings-consent-mode-switch-description--loading",loading:e,width:"750px",height:"42px",smallWidth:"386px",smallHeight:"84px",tabletWidth:"540px",tabletHeight:"84px",children:(0,P.jsx)(G.A,{children:(0,N.A)((0,c.__)("Consent mode will help adjust tracking on your site, so only visitors who have explicitly given consent are tracked. <br />This is required in some parts of the world, like the European Economic Area. <a>Learn more</a>","google-site-kit"),{br:(0,P.jsx)("br",{}),a:(0,P.jsx)(E.A,{href:a,"aria-label":(0,c.__)("Learn more about consent mode","google-site-kit"),onClick:async()=>{await(0,R.sx)(`${t}_CoMo`,"como_learn_more")},external:!0})})})})]}),n&&(0,P.jsx)(ConfirmDisableConsentModeDialog,{onConfirm:()=>{(0,R.sx)(`${t}_CoMo`,"confirm_disconnect"),u(!1),o(!1),k()},onCancel:()=>{(0,R.sx)(`${t}_CoMo`,"cancel_disconnect"),o(!1)}})]})}var V=i(11763),W=i(33052);function WPConsentAPIRequirement({title:e,description:t,footer:i}){return(0,P.jsxs)("div",{className:"googlesitekit-settings-consent-mode-requirement",children:[(0,P.jsx)(W.A,{as:"h4",size:"large",type:"title",children:e}),(0,P.jsx)("p",{className:"googlesitekit-settings-consent-mode-requirement__description",children:t}),(0,P.jsx)("footer",{className:"googlesitekit-settings-consent-mode-requirement__footer",children:i})]})}WPConsentAPIRequirement.propTypes={title:T().string.isRequired,description:T().node.isRequired,footer:T().node.isRequired};var F=i(63972),H=i(25797);function WPConsentAPIRequirements(){const e=(0,O.A)(),t=(0,m.useSelect)(e=>e(M.O4).getDocumentationLinkURL("wp-consent-api")),i=(0,m.useSelect)(e=>e(M.O4).getDocumentationLinkURL("consent-management-platform")),{hasConsentAPI:s,wpConsentPlugin:n}=(0,m.useS
(0,c.__)("Edit %s settings","google-site-kit"),r?.name),trailingIcon:(0,P.jsx)($e,{className:"googlesitekit-settings-module__edit-button-icon",width:10,height:10}),children:(0,c.__)("Edit","google-site-kit")}):null}var Xe;function Je(){return Je=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},Je.apply(null,arguments)}const et=e=>l.createElement("svg",Je({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 11 13"},e),Xe||(Xe=l.createElement("path",{fill:"currentColor",d:"M.722 11.556c0 .794.65 1.444 1.445 1.444h5.777c.795 0 1.445-.65 1.445-1.444V2.889H.722zM10.112.722H7.582L6.861 0H3.25l-.722.722H0v1.445h10.111z"})));function FooterSecondaryAction({slug:e,isEditing:t,handleDialog:i}){const s=(0,m.useSelect)(t=>t(h.i).getModule(e)),n=(0,m.useSelect)(t=>t(h.i).getDetailsLinkURL(e));return t&&!s?.forceActive?(0,P.jsx)(E.A,{className:"googlesitekit-settings-module__remove-button",onClick:i,trailingIcon:(0,P.jsx)(et,{className:"googlesitekit-settings-module__remove-button-icon",width:13,height:13}),danger:!0,children:(0,c.sprintf)(/* translators: %s is replaced with the module name */ /* translators: %s is replaced with the module name */
(0,c.__)("Disconnect %s from Site Kit","google-site-kit"),s?.name)}):!t&&s?.connected&&n?(0,P.jsx)(E.A,{href:n,className:"googlesitekit-settings-module__cta-button",external:!0,children:(0,c.sprintf)(/* translators: %s is replaced with the module name */ /* translators: %s is replaced with the module name */
(0,c.__)("See full details in %s","google-site-kit"),s?.name)}):null}function Footer({slug:e}){const t=(0,O.A)(),i=(0,a.W6)(),{action:s,moduleSlug:n}=(0,a.g)(),o="edit"===s&&n===e,r=`module-${e}-error`,c=`module-${e}-dialogActive`,g=`module-${e}-isSaving`,d=(0,m.useSelect)(e=>e(q.n).getValue(c)),u=(0,m.useSelect)(e=>e(q.n).getValue(g)),p=(0,m.useSelect)(t=>t(h.i).getModule(e)),{submitChanges:_}=(0,m.useDispatch)(h.i),{clearErrors:f}=(0,m.useDispatch)(p?.storeName)||{},{setValue:y}=(0,m.useDispatch)(q.n),k=(0,l.useCallback)(async()=>{await(0,R.sx)(`${t}_module-list`,"cancel_module_settings",e),await(f?.()),i.push(`/connected-services/${e}`)},[f,i,t,e]),x=(0,l.useCallback)(async s=>{s.preventDefault(),y(g,!0);const{error:n}=await _(e);y(g,!1),n?y(r,n):(await(0,R.sx)(`${t}_module-list`,"update_module_settings",e),y(r,void 0),await(f?.()),i.push(`/connected-services/${e}`),await(0,qe.IL)())},[y,g,_,e,r,f,i,t]),A=(0,l.useCallback)(()=>{y(c,!d)},[d,c,y]),j=(0,l.useCallback)(()=>{(0,R.sx)(`${t}_module-list`,"edit_module_settings",e)},[e,t]);return p?(0,P.jsx)("footer",{className:"googlesitekit-settings-module__footer",children:(0,P.jsx)(v.xA,{children:(0,P.jsxs)(v.fI,{children:[(0,P.jsx)(v.fh,{lgSize:6,mdSize:8,smSize:4,children:(0,P.jsx)(FooterPrimaryAction,{slug:e,isEditing:o,isSaving:u,handleConfirm:x,handleClose:k,handleEdit:j})}),(0,P.jsx)(v.fh,{lgSize:6,mdSize:8,smSize:4,alignMiddle:!0,lgAlignRight:!0,children:(0,P.jsx)(FooterSecondaryAction,{slug:e,isEditing:o,handleDialog:A})})]})})}):null}Footer.propTypes={slug:T().string.isRequired};var tt=i(31589);function ConfirmDisconnect({slug:e}){const t=(0,O.A)(),[i,s]=(0,l.useState)(!1),{setValue:n}=(0,m.useDispatch)(q.n),o=`module-${e}-dialogActive`,r=(0,m.useSelect)(t=>t(h.i).getModuleDependantNames(e)),a=(0,m.useSelect)(t=>t(h.i).getModuleFeatures(e)),g=(0,m.useSelect)(t=>t(h.i).getModule(e)),d=(0,m.useSelect)(e=>e(M.O4).getAdminURL("googlesitekit-settings")),u=(0,m.useSelect)(e=>e(q.n).getValue(o)),p=(0,l.useCallback)(()=>{n(o,!1)},[o,n]),_=(0,l.useCallback)(e=>{Pe._f===e.keyCode&&u&&p()},[u,p]);(0,tt.A)("keydown",_);const{deactivateModule:f}=(0,m.useDispatch)(h.i),{navigateTo:y}=(0,m.useDispatch)(Q.M),k=(0,l.useCallback)(async()=>{if(g.forceActive)return;s(!0);const{error:i}=await f(e);i?s(!1):(await(0,qe.IL)(),await(0,R.sx)(`${t}_module-list`,"deactivate_module",e),y(d))},[e,g?.forceActive,d,f,y,t]);if(!g||!u)return null;const{name:v}=g,x=(0,c.sprintf)(/* translators: %s: module name */ /* translators: %s: module name */
(0,c.__)("Disconnect %s from Site Kit?","google-site-kit"),v),A=[];return r.length>0&&A.push((0,c.sprintf)(/* translators: 1: module name, 2: list of dependent modules */ /* translators: 1: module name, 2: list of dependent modules */
(0,c.__)("these active modules depend on %1$s and will also be disconnected: %2$s","google-site-kit"),v,(0,R.K5)(r))),"function"==typeof g?.SettingsDisconnectNoteComponent&&A.push(g.SettingsDisconnectNoteComponent),(0,P.jsx)(L.A,{className:"googlesitekit-settings-module__confirm-disconnect-modal",handleCancel:p,onClose:p,title:x,provides:a,handleConfirm:k,notes:A,inProgress:i,dialogActive:!0,danger:!0})}function SettingsActiveModule(e){const{slug:t}=e,{action:i,moduleSlug:s}=(0,a.g)(),n="edit"===i,o=s===t,r=s!==t&&n,l=`module-${t}-error`,c=(0,m.useSelect)(e=>e(h.i).getErrorForAction("deactivateModule",[t])),g=(0,m.useSelect)(e=>e(q.n).getValue(l));return(0,P.jsxs)("div",{className:I()("googlesitekit-settings-module","googlesitekit-settings-module--active",`googlesitekit-settings-module--${t}`,{"googlesitekit-settings-module--error":(g||c)&&n}),children:[r&&(0,P.jsx)(Oe,{compress:!o}),(0,P.jsx)(Header_Header,{slug:t}),o&&(0,P.jsxs)("div",{id:`googlesitekit-settings-module__content--${t}`,className:"googlesitekit-settings-module__content googlesitekit-settings-module__content--open",role:"tabpanel","aria-labelledby":`googlesitekit-settings-module__header--${t}`,children:[(0,P.jsx)(v.xA,{children:(0,P.jsx)(v.fI,{children:(0,P.jsx)(v.fh,{size:12,children:(0,P.jsx)(SettingsRenderer,{slug:t})})})}),(0,P.jsx)(Footer,{slug:t})]}),(0,P.jsx)(ConfirmDisconnect,{slug:t})]})}function SettingsActiveModules(){const e=(0,m.useSelect)(e=>e(h.i).getModules());if(!e)return null;const t=Object.keys(e).map(t=>e[t]).filter(({internal:e,active:t})=>!e&&t).sort((e,t)=>e.order-t.order);return(0,P.jsx)(p.A,{rounded:!0,children:t.map(({slug:e})=>(0,P.jsx)(SettingsActiveModule,{slug:e},e))})}ConfirmDisconnect.propTypes={slug:T().string.isRequired},SettingsActiveModule.propTypes={slug:T().string.isRequired};var it=i(62457),st=i(42340);function SetupModule({slug:e,name:t,description:i}){const s=(0,O.A)(),[n,o]=(0,l.useState)(!1),{activateModule:r}=(0,m.useDispatch)(h.i),{navigateTo:a}=(0,m.useDispatch)(Q.M),{setInternalServerError:g}=(0,m.useDispatch)(M.O4),d=(0,l.useCallback)(async()=>{o(!0);const{error:t,response:i}=await r(e);t?(g({id:"activate-module-error",description:t.message}),o(!1)):(await(0,R.sx)(`${s}_module-list`,"activate_module",e),await(0,qe.SO)("module_setup",e,{ttl:300}),a(i.moduleReauthURL))},[r,a,g,e,s]),u=(0,m.useSelect)(t=>t(h.i).canActivateModule(e));return(0,P.jsxs)("div",{className:I()("googlesitekit-settings-connect-module",`googlesitekit-settings-connect-module--${e}`),children:[(0,P.jsx)("div",{className:"googlesitekit-settings-connect-module__switch",children:(0,P.jsx)(it.A,{isSaving:n})}),(0,P.jsx)("div",{className:"googlesitekit-settings-connect-module__logo",children:(0,P.jsx)(Fe.A,{slug:e})}),(0,P.jsxs)("div",{className:"googlesitekit-settings-connect-module__heading",children:[(0,P.jsx)(W.A,{as:"h3",type:"title",size:"small",className:" googlesitekit-subheading-1 googlesitekit-settings-connect-module__title ",children:t}),(0,P.jsxs)("div",{className:"googlesitekit-settings-connect-module__badges",children:[Ve.includes(e)&&(0,P.jsx)(S.A,{label:(0,c.__)("Experimental","google-site-kit")}),Ge.includes(e)&&(0,P.jsx)(S.A,{className:"googlesitekit-badge--beta",label:(0,c.__)("Beta","google-site-kit")}),Ue.includes(e)&&(0,P.jsx)(He.A,{hasNoSpacing:!0})]})]}),(0,P.jsx)("p",{className:"googlesitekit-settings-connect-module__text",children:i}),(0,P.jsx)("p",{className:"googlesitekit-settings-connect-module__cta",children:(0,P.jsx)(E.A,{onClick:d,href:"",disabled:!u||n,arrow:!0,children:(0,c.sprintf)(/* translators: %s: module name */ /* translators: %s: module name */
(0,c.__)("Set up %s","google-site-kit"),t)})}),(0,P.jsx)(st.A,{slug:e})]},e)}function SettingsInactiveModules(){const e=(0,m.useSelect)(e=>e(h.i).getModules());if(!e)return null;const t=Object.keys(e).map(t=>e[t]).filter(({internal:e,active:t})=>!e&&!t).sort((e,t)=>e.order-t.order);return 0===t.length?(0,P.jsx)(H.A,{id:"no-more-modules",title:(0,c.__)("Congrats, youve connected all services!","google-site-kit"),description:(0,c.__)("Were working on adding new services to Site Kit by Google all the time, so please check back in the future","google-site-kit"),type:me.Q.SUCCESS}):(0,P.jsx)(p.A,{title:(0,c.__)("Connect More Services to Gain More Insights","google-site-kit"),header:!0,rounded:!0,relative:!0,children:(0,P.jsx)(v.xA,{children:(0,P.jsx)(v.fI,{children:t.map(({slug:e,name:t,description:i})=>(0,P.jsx)(v.fh,{size:4,children:(0,P.jsx)(SetupModule,{slug:e,name:t,description:i})},e))})})})}SetupModule.propTypes={slug:T().string.isRequired,name:T().string.isRequired,description:T().string.isRequired};const nt=function SettingsModules(){const e=(0,m.useSelect)(e=>e(h.i).getModules());return void 0!==e&&Object.values(e).length?(0,P.jsxs)(a.dO,{children:[(0,P.jsx)(a.qh,{path:"/connected-services/:moduleSlug/:action",children:(0,P.jsx)(SettingsActiveModules,{})}),(0,P.jsx)(a.qh,{path:"/connected-services/:moduleSlug",children:(0,P.jsx)(SettingsActiveModules,{})}),(0,P.jsx)(a.qh,{path:"/connected-services",children:(0,P.jsx)(SettingsActiveModules,{})}),(0,P.jsx)(a.qh,{path:"/connect-more-services",children:(0,P.jsx)(SettingsInactiveModules,{})}),(0,P.jsx)(a.qh,{path:"/admin-settings",children:(0,P.jsx)(SettingsAdmin,{})}),(0,P.jsx)(a.rd,{from:"/settings/:moduleSlug/edit",to:"/connected-services/:moduleSlug/edit"}),(0,P.jsx)(a.rd,{from:"/settings/:moduleSlug",to:"/connected-services/:moduleSlug"}),(0,P.jsx)(a.rd,{from:"/settings",to:"/connected-services"}),(0,P.jsx)(a.rd,{from:"/connect",to:"/connect-more-services"}),(0,P.jsx)(a.rd,{from:"/admin",to:"/admin-settings"}),(0,P.jsx)(a.rd,{to:"/connected-services"})]}):null};var ot=i(78307),rt=i(65054),at=i(338);function SettingsApp(){const e=(0,a.zy)();const[,t]=e.pathname.split("/"),i=SettingsApp.basePathToTabIndex[t],n=(0,O.A)(),o=(0,Re.i)("proactiveUserEngagement"),r=(0,l.useCallback)(()=>{(0,rt.sx)(n,"tab_select",t)},[t,n]);return(0,P.jsxs)(l.Fragment,{children:[(0,P.jsx)(d.A,{children:(0,P.jsx)(ot.A,{})}),(0,P.jsx)("div",{className:"googlesitekit-module-page",children:(0,P.jsx)(v.xA,{children:(0,P.jsxs)(v.fI,{children:[(0,P.jsx)(v.fh,{size:12,children:(0,P.jsx)(u.A,{title:(0,c.__)("Settings","google-site-kit")})}),(0,P.jsx)(v.fh,{size:12,children:(0,P.jsx)(p.A,{transparent:!0,rounded:!0,children:(0,P.jsxs)(g.TabBar,{activeIndex:i,className:"googlesitekit-tab-bar__settings",handleActiveIndexUpdate:r,children:[(0,P.jsx)(g.Tab,{tag:s.N_,to:"/connected-services",replace:!1,children:(0,P.jsx)("span",{className:"mdc-tab__text-label",children:(0,c.__)("Connected Services","google-site-kit")})}),(0,P.jsx)(g.Tab,{tag:s.N_,to:"/connect-more-services",replace:!1,children:(0,P.jsx)("span",{className:"mdc-tab__text-label",children:(0,c.__)("Connect More Services","google-site-kit")})}),(0,P.jsx)(g.Tab,{tag:s.N_,to:"/admin-settings",replace:!1,children:(0,P.jsx)("span",{className:"mdc-tab__text-label",children:(0,c.__)("Admin Settings","google-site-kit")})})]})})}),(0,P.jsx)(v.fh,{size:12,children:(0,P.jsx)(nt,{})})]})})}),o&&(0,P.jsx)(at.A,{})]})}SettingsApp.propTypes={},SettingsApp.basePathToTabIndex={"connected-services":0,"connect-more-services":1,"admin-settings":2};const lt=(0,a.y)(SettingsApp);var ct=i(20697);(0,n.A)(()=>{const e=document.getElementById("js-googlesitekit-settings");e&&(0,o.render)((0,P.jsx)(r.A,{viewContext:ct.KK,children:(0,P.jsx)(s.I9,{children:(0,P.jsx)(lt,{})})}),e)})},9246:(e,t,i)=>{i.d(t,{A:()=>UserInputSelectOptions});var s=i(62688),n=i.n(s),o=i(63696),r=i(19266),a=i(82871),l=i(50539),c=i(49383),g=i(97345),d=i(11999),u=i(70301),p=i(10740),m=i(65573),h=i(13047),_=i(62659),f=i(62540);function UserInputSelectOptions({slug:e,descriptions:t,options:i,max:
(0,a._n)("Select only %d answer","Select up to %d answers",s,"google-site-kit"),s)})}),(0,f.jsx)("div",{className:"googlesitekit-user-input__select-options",ref:M,children:T})]})}UserInputSelectOptions.propTypes={slug:n().string.isRequired,descriptions:n().shape({}),options:n().shape({}).isRequired,max:n().number,next:n().func,showInstructions:n().bool,alignLeftOptions:n().bool,gaTrackingEventArgs:n().object},UserInputSelectOptions.defaultProps={max:1,showInstructions:!1,alignLeftOptions:!1}},9318:(e,t,i)=>{i.d(t,{B:()=>s});i(80);function s(e){return 400===e?.code&&e?.message?.includes("is not a valid dimension")}},10740:(e,t,i)=>{i.d(t,{$z:()=>n.$,CR:()=>a.C,Cf:()=>l.DialogContent,Es:()=>l.DialogFooter,Nv:()=>s.N,P3:()=>r.P,Si:()=>o.S,fI:()=>g.fI,fh:()=>g.fh,lG:()=>c.a,xA:()=>g.xA});var s=i(91046),n=i(3412),o=i(30454),r=i(26569),a=i(56655),l=i(12786),c=i.n(l),g=i(84984)},11193:(e,t,i)=>{i.d(t,{D:()=>o});var s=i(32091),n=i.n(s);function o(e,{dateRangeLength:t}){n()(Array.isArray(e),"report must be an array to partition."),n()(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)}}},11514:(e,t,i)=>{i.d(t,{X:()=>s});const s="consent-mode-setup-cta-widget"},11763:(e,t,i)=>{i.d(t,{A:()=>SpinnerButton,k:()=>d});var s=i(62688),n=i.n(s),o=i(4452),r=i.n(o),a=i(17243),l=i(85135),c=i(99578),g=i(62540);const d={BEFORE:"before",AFTER:"after"};function SpinnerButton(e){const{className:t,onClick:i=()=>{},isSaving:s=!1,spinnerPosition:n=d.AFTER,...o}=e,u=(0,a.pickBy)(o,e=>void 0!==e);return(0,g.jsx)(l.A,{className:r()(t,"googlesitekit-button-icon--spinner",{"googlesitekit-button-icon--spinner__running":s,"googlesitekit-button-icon--spinner__before":n===d.BEFORE,"googlesitekit-button-icon--spinner__after":n===d.AFTER}),icon:s&&n===d.BEFORE?(0,g.jsx)(c.A,{size:14}):void 0,trailingIcon:s&&n===d.AFTER?(0,g.jsx)(c.A,{size:14}):void 0,onClick:i,...u})}SpinnerButton.propTypes={className:n().string,onClick:n().func,isSaving:n().bool,spinnerPosition:n().oneOf(Object.values(d))}},11883:(e,t,i)=>{i.d(t,{YJ:()=>o,Eq:()=>r});var s=i(97513),n=i(17243);function o(e,t){const s=document.querySelector(e);if(!s)return 0;const n=s.getBoundingClientRect().top,o=r(t);return n+i.g.scrollY-o}function r(e){let t=function(e){let t=0;const o=document.querySelector(".googlesitekit-header");t=o&&"sticky"===i.g.getComputedStyle(o).position?function(e){const t=document.querySelector(".googlesitekit-header");if(t){if(e===s.mp)return t.offsetHeight;const i=t.getBoundingClientRect().bottom;return i<0?0:i}return 0}(e):function(e){const t=document.querySelector("#wpadminbar");if(t&&e!==s.mp)return t.offsetHeight;return 0}(e);return t=function(e){return(0,n.isFinite)(e)?e:0}(t),t<0?0:t}(e);const o=document.querySelectorAll(".googlesitekit-navigation, .googlesitekit-entity-header");return t+=Array.from(o).reduce((e,t)=>e+t.offsetHeight,0),t}},11974:(e,t,i)=>{i.d(t,{A:()=>OptIn});var s=i(62688),n=i.n(s),o=i(4452),r=i.n(o),a=i(63696),l=i(13606),c=i(82871),g=i(50539),d=i(97345),u=i(65054),p=i(38432),m=i(62659),h=i(7076),_=i(49383),f=i(62540);function LayoutDefault({checkboxProps:e,label:t}){return(0,f.jsx)(_.Checkbox,{...e,children:t})}function LayoutStacked({checkboxProps:e,title:t,description:i}){return(0,f.jsxs)(a.Fragment,{children:[(0,f.jsx)(_.Checkbox,{...e,children:t}),(0,f.jsx)("div",{className:"googlesitekit-opt-in__description",children:i})]})}LayoutDefault.propTypes={checkboxProps:n().object.isRequired,label:n().node.isRequired},LayoutStacked.propTypes={checkboxProps:n().object.isRequired,title:n().node.isRequired,description:n().node.isRequired};const y="default",k="stacked";function OptIn({id:e="googlesitekit-opt-in",name:t="optIn",className:i,layout:s=y,title:n=null,description:o=null,trackEventCategory:_,trackEventAction:v="tracking_optin"}){const[x,A]=(0,a.useState)(),j=(0,g.useSelect)(e=>e(d.oR).isTrackingEnabled()),I=(0,g.useSelect)(e=>e(d.oR).getErrorForAction("setTrackingEnabled",[!j])),{setTrackingEnabled:b}=(0,g.useDispatch)(d.oR),M=(0,m.A)(),S=(0,a.useCallback)(as
(0,o.__)("%s Gathering Data","google-site-kit"),t?.name),description:(0,o.sprintf)(/* translators: %s: Module name */ /* translators: %s: Module name */
(0,o.__)("%s data is not yet available, please check back later","google-site-kit"),t?.name)})}ReportZero.propTypes={moduleSlug:n().string.isRequired}},17443:(e,t,i)=>{i.d(t,{r:()=>AdminScreenTooltip,i:()=>s.i});var s=i(52274),n=i(63696),o=i(50539),r=i(62688),a=i(36703),l=i(40960),c=i(83202),g=i(94656),d=i(71264),u=i(97513),p=i(62540);function JoyrideTooltip(e){const{title:t,content:s,dismissLabel:o,disableOverlay:r=!0,target:m,cta:h=!1,className:_,styles:f={},slug:y="",placement:k="auto",onDismiss:v=()=>{},onView:x=()=>{},onTourStart:A=()=>{},onTourEnd:j=()=>{}}=e;function I(){return!!i.g.document.querySelector(m)}const[b,M]=(0,n.useState)(I),S=(0,u.dv)(),N=S===u.mp||S===u.Lg,[E,w]=(0,n.useState)(!0),C=(0,n.useRef)(N);if((0,l.A)(()=>{I()&&M(!0)},b?null:250),(0,n.useEffect)(()=>{let e=()=>{};if("function"==typeof i.g.ResizeObserver){const t=i.g.document.querySelector(m);if(t){const s=new ResizeObserver(()=>{i.g.dispatchEvent(new Event("resize"))});s.observe(t),e=()=>s.disconnect()}}return e},[m,b]),(0,n.useEffect)(()=>{let e;return C.current!==N&&(w(!1),e=setTimeout(()=>{w(!0)},50),C.current=N),()=>{e&&clearTimeout(e)}},[N]),!b)return null;const T=[{title:t,target:m,content:s,disableBeacon:!0,isFixed:!0,placement:k,cta:h,className:_}],D={close:o,last:o};return(0,p.jsx)(g.A,{slug:y,children:(0,p.jsx)(a.Ay,{callback:function({type:e}){switch(e){case a.qY.TOUR_START:A(),i.g.document.body.classList.add("googlesitekit-showing-tooltip");break;case a.qY.TOUR_END:j(),i.g.document.body.classList.remove("googlesitekit-showing-tooltip");break;case a.qY.STEP_AFTER:v();break;case a.qY.TOOLTIP:x()}},disableOverlay:r,spotlightPadding:0,floaterProps:d.ei,locale:D,steps:T,styles:{...d.R0,...f,options:{...d.R0.options,...f?.options},spotlight:{...d.R0.spotlight,...f?.spotlight}},tooltipComponent:c.A,run:E,disableScrolling:!0})})}JoyrideTooltip.propTypes={title:r.PropTypes.node,content:r.PropTypes.string,disableOverlay:r.PropTypes.bool,dismissLabel:r.PropTypes.string,target:r.PropTypes.string.isRequired,onDismiss:r.PropTypes.func,onShow:r.PropTypes.func,className:r.PropTypes.string,styles:r.PropTypes.object,slug:r.PropTypes.string,placement:r.PropTypes.string,onView:r.PropTypes.func};var m=i(7972),h=i(13047),_=i(62659);function AdminScreenTooltip(){const e=(0,_.A)(),{setValue:t}=(0,o.useDispatch)(m.n),i=(0,u.dv)(),{isTooltipVisible:s=!1,target:r,placement:a,className:l,tooltipSlug:c,title:g,content:d,dismissLabel:f,gaTrackingEventLabel:y}=(0,o.useSelect)(e=>e(m.n).getValue("admin-screen-tooltip")||{isTooltipVisible:!1});const k=(0,n.useCallback)(()=>{c&&(0,h.sx)(`${e}_${c}`,"tooltip_dismiss",y),t("admin-screen-tooltip",void 0)},[t,c,e,y]);if(!s)return null;const v=i===u.mp||i===u.Lg,x=null!=r?r:'#adminmenu [href*="page=googlesitekit-settings"]',A=null!=a?a:"right";return(0,p.jsx)(JoyrideTooltip,{target:v?"body":x,placement:v?"center":A,className:v?"googlesitekit-tour-tooltip__modal_step":l||(r?void 0:"googlesitekit-tour-tooltip__fixed-settings-tooltip"),disableOverlay:!v,slug:"admin-screen-tooltip",title:g,content:d,dismissLabel:f,onView:function(){(0,h.sx)(`${e}_${c}`,"tooltip_view",y)},onDismiss:k})}},18418:(e,t,i)=>{i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var s,n=i(63696);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},o.apply(null,arguments)}const __WEBPACK_DEFAULT_EXPORT__=e=>n.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 2 12"},e),s||(s=n.createElement("g",{fill:"currentColor",fillRule:"evenodd"},n.createElement("path",{d:"M0 0h2v7H0zM0 10h2v2H0z"}))))},19793:(e,t,i)=>{i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var s,n=i(63696);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},o.apply(null,arguments)}const __WEBPACK_DEFAULT_EXPORT__=e=>n.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"
(0,d.__)("%1$s. <Link><Strong>%2$s</Strong></Link>","google-site-kit"),i,(0,d.__)("Get help","google-site-kit")),{Link:(0,y.jsx)(p.A,{href:t,trailingIcon:(0,y.jsx)(_,{width:15,height:15}),external:!0,hideExternalIndicator:!0}),Strong:(0,y.jsx)("strong",{})}),hideIcon:!0}):null}function AdBlockerWarning({moduleSlug:e,className:t}){const i=(0,r.useSelect)(t=>t(l.i).getModuleStoreName(e)),s=(0,r.useSelect)(e=>e(i)?.getAdBlockerWarningMessage()),n=(0,r.useSelect)(t=>t(a.O4).getDocumentationLinkURL(`${e}-ad-blocker-detected`));return(0,y.jsx)(AdBlockerWarningMessage,{className:t,getHelpLink:n,warningMessage:s})}AdBlockerWarningMessage.propTypes={className:o().string,getHelpLink:o().string,warningMessage:o().string},AdBlockerWarning.propTypes={className:o().string,moduleSlug:o().string.isRequired}},24355:(e,t,i)=>{i.d(t,{SO:()=>a});var s=i(55620),n=i(99123);function o(){return[i.g.innerWidth,i.g.innerHeight]}function r({fps:e=60,leading:t=!1,initialWidth:i=0,initialHeight:r=0}={}){const[a,l]=(0,s._)("undefined"==typeof document?[i,r]:o,e,t);function c(){return l(o)}return(0,n.A)(window,"resize",c),(0,n.A)(window,"orientationchange",c),a}function a(e={}){return r(e)[0]}},24560:(e,t,i)=>{i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var s,n=i(63696);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},o.apply(null,arguments)}const __WEBPACK_DEFAULT_EXPORT__=e=>n.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 12"},e),s||(s=n.createElement("g",{fill:"currentColor",fillRule:"evenodd"},n.createElement("path",{d:"M0 6.414 1.415 5l5.292 5.292-1.414 1.415z"}),n.createElement("path",{d:"m14.146.146 1.415 1.414L5.414 11.707 4 10.292z"}))))},25797:(e,t,i)=>{i.d(t,{A:()=>k});var s,n=i(62688),o=i.n(n),r=i(4452),a=i.n(r),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 s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}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),s||(s=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 d=i(42343),u=i(76984),p=i(62540);const m={[u.Q.NEW]:d.A,[u.Q.SUCCESS]:c.A,[u.Q.INFO]:warning_notice,[u.Q.WARNING]:warning_notice,[u.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:o().oneOf(Object.values(u.Q))},Title.propTypes={className:o().string,children:o().node},Description.propTypes={className:o().string,children:o().node};var h=i(49383),_=i(83366);function CTAButton({label:e,disabled:t,inProgress:i,onClick:s,href:n,external:o=!1,hideExternalIndicator:r=!1}){let l;return o&&!r&&(l=(0,p.jsx)(_.A,{width:14,height:14})),(0,p.jsx)(h.SpinnerButton,{className:a()("googlesitekit-notice__cta",{"googlesitekit-notice__cta--spinner__running":i}),disabled:t,isSaving:i,onClick:s,href:n,target:o?"_blank":void 0,trailingIcon:l,children:e})}CTAButton.propTypes={label:o().string.isRequired,disabled:o().bool,inProgress:o().bool,onClick:o().func,href:o().string,external:o().bool,hideExternalIndicator:o().bool};var f=i(82871);function DismissButton({label:e=(0,f.__)("Got it","google-site-kit"),onClick:t,disabled:i,href:s,external:n=!1}){return(0,p.jsx)(h.Button,{onClick:t,disabled:i,href:s,target:n?"_blank":void 0,tertiary:!0,children:e})}DismissButton.propTypes={label:o().string,onClick:o().func.isRequired,disabled:o().bool,href:o().string,external:o().bool};const y=(0,l.forwardRef)(({className:e,title
(0,s.__)("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"),r)),a&&a.login&&(c=(0,s.sprintf)(/* translators: %s: owner name */ /* translators: %s: owner name */
(0,s.__)('This service was originally connected by the administrator "%s" — you can contact them for more information.',"google-site-kit"),a.login)),c||(c=(0,s.__)("This service was originally connected by an administrator — you can contact them for more information.","google-site-kit")),`${l} ${c}`}},31790:(e,t,i)=>{function s(e,t=3){return e.filter(({dimensionValues:e})=>"(not set)"!==e[0].value&&""!==e[0].value).slice(0,t)}i.d(t,{S:()=>s})},32600:(e,t,i)=>{i.d(t,{A:()=>NoticeNotification});var s=i(25797),n=i(68761),o=i(50539),r=i(8732),a=i(10740),l=i(62688),c=i.n(l),g=i(62540);function NoticeNotification({notificationID:e,children:t,dismissButton:i,ctaButton:l,gaTrackingEventArgs:c,...d}){const u=(0,n.A)(e,c?.category),{dismissNotification:p}=(0,o.useDispatch)(r.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)(s.A,{dismissButton:{...i,onClick:async function(t){await(i?.onClick?.(t)),u.dismiss(c?.label,c?.value),p(e,{...i?.dismissOptions||{}})}},ctaButton:{...l,onClick:async function(t){u.confirm(c?.label,c?.value),await(l?.onClick?.(t)),l?.dismissOnClick&&p(e,{...l?.dismissOptions})}},...d,children:t})})})})}NoticeNotification.propTypes={notificationID:c().string.isRequired,children:c().node,dismissButton:c().oneOfType([c().bool,c().object]),ctaButton:c().object,gaTrackingEventArgs:c().object}},32803:(e,t,i)=>{i.d(t,{Y:()=>s});const s="search-console"},33052:(e,t,i)=>{i.d(t,{A:()=>Typography});var s=i(62688),n=i.n(s),o=i(4452),r=i.n(o),a=i(8513),l=i(62540);function Typography({className:e,type:t,size:i,as:s="span",children:n,...o}){return(0,l.jsx)(s,{className:r()("googlesitekit-typography",e,{[`googlesitekit-typography--${t}`]:t&&a.tT.includes(t),[`googlesitekit-typography--${i}`]:i&&a.oJ.includes(i)}),...o,children:n})}Typography.propTypes={className:n().string,type:n().oneOf(a.tT),size:n().oneOf(a.oJ),as:n().oneOfType([n().string,n().elementType])}},33494:(e,t,i)=>{i.d(t,{Gr:()=>r,We:()=>l,Y2:()=>a});var s=i(4169),n=i(15118),o=i(97591);const r={[s.N$.QUARTER]:3,[s.N$.HALF]:6,[s.N$.FULL]:12},a="googlesitekit-hidden",l=[n.A,o.A]},33903:(e,t,i)=>{i.d(t,{A:()=>OverlayNotification});var s=i(62688),n=i.n(s),o=i(50539),r=i(8732),a=i(68761),l=i(5230),c=i(4452),g=i.n(c),d=i(97513),u=i(63696),p=i(33052),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:n().node.isRequired},Description.propTypes={children:n().node.isRequired};var h=i(82871),_=i(49383);function DismissButton({label:e=(0,h.__)("Maybe later","google-site-kit"),onClick:t,disabled:i}){return(0,m.jsx)(_.Button,{onClick:t,disabled:i,tertiary:!0,children:e})}const f={label:n().string,onClick:n().func,disabled:n().bool};function CTAButton(e){const{label:t,...i}=e;return(0,m.jsx)(_.Button,{...i,children:t})}DismissButton.propTypes=f,CTAButton.propTypes={...f,href:n().string,target:n().string,trailingIcon:n().object};var y=i(60515);function Body({title:e,description:t,ctaButton:i,dismissButton:s,GraphicDesktop:n,GraphicMobile:o,newBadge:r}){const a=(0,d.dv)();return(0,m.jsxs)(u.Fragment,{children:[a!==d.mp&&n&&(0,m.jsx)("div",{className:"googlesitekit-overlay-card__graphic",children:(0,m.jsx)(n,{})}),(0,m.jsxs)("div",{className:"googlesitekit-overlay-card__body",children:[r&&(0,m.jsx)("div",{className:"googlesitekit-overlay-card__badge",children:(0,m.jsx)(y.A,{hasNoSpacing:!0})}),e&&(0,m.jsx)(Title,{children:e}),t&&(0,m.jsx)(Description,{children:t})]}),(i||s)&&(0,m.jsxs)("div",{className:"googlesitekit-overlay-card__actions",children:[s&&(0,m.jsx)(DismissButton,{...s}),i&&(0,m.jsx)(CTAButton,{...i})]}),a===d.mp&&o&&(0,m.jsx)(o,{})]})}function OverlayCard(e){const{visible:t,className:i,...s}=e,n=(0,d.dv)();if(!t)return null;const o=(0,m.jsx)("div",{className:g()("googlesitekit-overlay-card",i),children:(0,m.jsx)(Body,{...s})});return n===d.mp?o:(0,m.j
(0,c.__)("Source: %s","google-site-kit"),`<a>${e}</a>`),{a:h.createElement(g.A,{key:"link",href:t,external:s,onClick:f})}))}SourceLink.propTypes={name:n().string,href:n().string,className:n().string,external:n().bool};const _=SourceLink},44192:(e,t,i)=>{i.d(t,{A:()=>ReportError});var s=i(62688),n=i.n(s),o=i(17243),r=i(63696),a=i(82871),l=i(81375),c=i(50539),g=i(88273),d=i(13137),u=i(31012),p=i(55465),m=i(12317),h=i(1641),_=i(4124),f=i(73198),y=i(62540);function ReportError({moduleSlug:e,error:t}){const i=(0,_.A)(),s=(0,c.useSelect)(t=>t(g.i).getModule(e)),n=Array.isArray(t)?t:[t];let k;function v(e){return(0,d.SG)(e)?i?(k=(0,a.sprintf)(/* translators: %s: module name */ /* translators: %s: module name */
(0,a.__)("Access lost to %s","google-site-kit"),s?.name),(0,a.sprintf)(/* translators: %s: module name */ /* translators: %s: module name */
(0,a.__)("The administrator sharing this module with you has lost access to the %s service, so you wont be able to see stats from it on the Site Kit dashboard. You can contact them or another administrator to restore access.","google-site-kit"),s?.name)):(k=(0,a.sprintf)(/* translators: %s: module name */ /* translators: %s: module name */
(0,a.__)("Insufficient permissions in %s","google-site-kit"),s?.name),(0,u.c)(e.message,s)):(0,d.e4)(e)}const x=(0,o.uniqWith)(n.map(e=>({...e,message:v(e),reconnectURL:e.data?.reconnectURL?(0,l.m)(e.data.reconnectURL,"code"):void 0})),(e,t)=>e.message===t.message&&e.reconnectURL===t.reconnectURL),A=n.some(e=>(0,d.SG)(e));A||1!==x.length?!A&&x.length>1&&(k=(0,a.sprintf)(/* translators: %s: module name */ /* translators: %s: module name */
(0,a.__)("Data errors in %s","google-site-kit"),s?.name)):k=(0,a.sprintf)(/* translators: %s: module name */ /* translators: %s: module name */
(0,a.__)("Data error in %s","google-site-kit"),s?.name);const j=(0,y.jsx)(r.Fragment,{children:x.map(e=>{const t=e?.data?.reconnectURL;return t?(0,y.jsx)(f.A,{error:e,message:e.message},e.message):(0,y.jsx)("p",{children:p.O.sanitize(e.message,{ALLOWED_TAGS:[]})},e.message)})});return(0,y.jsx)(m.A,{title:k,description:j,error:!0,children:(0,y.jsx)(h.A,{moduleSlug:e,error:t})})}ReportError.propTypes={moduleSlug:n().string.isRequired,error:n().oneOfType([n().arrayOf(n().object),n().object]).isRequired}},44436:(e,t,i)=>{i.d(t,{A:()=>d});var s,n=i(82871),o=i(88933),r=i(63696);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},a.apply(null,arguments)}const l=e=>r.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 80 21"},e),s||(s=r.createElement("path",{fill:"#5F6368",d:"M62.09 1.664h3.038v.1L58.34 9.593l7.241 10.224v.1H62.7L56.755 11.4 53.95 14.64v5.278h-2.351V1.664h2.35v9.415h.1zM69.985 3.117c0 .454-.167.853-.488 1.175-.322.322-.71.488-1.176.488-.455 0-.854-.166-1.175-.488a1.6 1.6 0 0 1-.488-1.175c0-.466.166-.854.488-1.176s.71-.488 1.175-.488c.455 0 .854.166 1.176.488.332.333.487.72.487 1.176m-.477 4.313v12.498h-2.351V7.43zM77.016 20.128c-1.02 0-1.864-.31-2.54-.943q-1.014-.948-1.031-2.628V9.57h-2.196V7.43h2.196V3.603h2.35V7.43h3.061v2.14h-3.06v6.222c0 .831.166 1.397.488 1.696.321.3.687.444 1.097.444.189 0 .366-.022.555-.067.188-.044.344-.1.499-.166l.743 2.096c-.632.222-1.342.333-2.162.333M2.673 18.952C1.375 18.009.488 16.678 0 14.97l2.883-1.176c.289 1.076.799 1.94 1.542 2.628.732.677 1.619 1.02 2.65 1.02.965 0 1.774-.244 2.45-.742.677-.5 1.01-1.187 1.01-2.052 0-.798-.3-1.453-.887-1.974q-.883-.781-3.094-1.564l-1.22-.432Q3.371 9.997 2.04 8.716C1.153 7.862.71 6.742.71 5.346c0-.966.266-1.853.787-2.673S2.75 1.209 3.693.72C4.624.244 5.678 0 6.864 0c1.708 0 3.072.41 4.081 1.242 1.02.832 1.697 1.752 2.04 2.795L10.236 5.2c-.2-.621-.576-1.164-1.142-1.63-.565-.477-1.286-.71-2.173-.71s-1.641.222-2.251.676-.91 1.032-.91 1.742c0 .676.278 1.22.82 1.663.544.432 1.398.854 2.563 1.253l1.22.41c1.674.577 2.96 1.342 3.88 2.274.921.931 1.376 2.184 1.376 3.748 0 1.275-.322 2.34-.976 3.193a6 6 0 0 1-2.495 1.919 8 8 0 0 1-3.116.621c-1.62 0-3.072-.466-4.358-1.408M15.969 3.449a1.95 1.95 0 0 1-.588-1.43c0-.566.2-1.043.588-1.431A1.95 1.95 0 0 1 17.399 0c.566 0 1.043.2 1.43.588.389.388.588.865.588 1.43 0 .566-.2 1.043-.587 1.43a1.95 1.95 0 0 1-1.43.589c-.566-.012-1.043-.2-1.431-.588m-.067 2.595h2.994v13.883h-2.994zM25.406 19.85c-.544-.2-.987-.466-1.331-.788-.776-.776-1.176-1.84-1.176-3.182V8.683h-2.428v-2.64h2.428V2.13h2.994v3.926h3.372v2.639h-3.372v6.531c0 .743.145 1.276.433 1.575.277.366.743.543 1.42.543.31 0 .576-.044.82-.122q.35-.116.765-.399v2.917c-.599.277-1.32.41-2.173.41a5 5 0 0 1-1.753-.3M33.623 19.407a6.63 6.63 0 0 1-2.529-2.628c-.61-1.12-.909-2.373-.909-3.77 0-1.332.3-2.551.887-3.693.588-1.132 1.409-2.04 2.462-2.706s2.251-1.01 3.593-1.01c1.397 0 2.606.311 3.637.921a6.1 6.1 0 0 1 2.34 2.528c.532 1.076.799 2.274.799 3.627 0 .255-.023.576-.078.953H33.179c.111 1.287.566 2.285 1.375 2.983a4.16 4.16 0 0 0 2.817 1.043c.854 0 1.597-.189 2.218-.588a4.27 4.27 0 0 0 1.508-1.597l2.528 1.198q-.981 1.713-2.561 2.694c-1.054.655-2.318.976-3.782.976q-2.046.033-3.66-.931m7.23-8.051a3.3 3.3 0 0 0-.466-1.453c-.277-.477-.687-.887-1.242-1.208-.554-.322-1.23-.488-2.03-.488-.964 0-1.773.288-2.439.853-.665.566-1.12 1.342-1.375 2.296z"})));var c=i(55989),g=i(62540);const d=function Logo(){return(0,g.jsxs)("div",{className:"googlesitekit-logo","aria-hidden":"true",children:[(0,g.jsx)(o.A,{className:"googlesitekit-logo__logo-g",height:"34",width:"32"}),(0,g.jsx)(l,{className:"googlesitekit-logo__logo-sitekit",height:"26",width:"99"}),(0,g.jsx)(c.A,{children:(0,n.__)("Site Kit by Google Logo","google-site-kit")})]})}},45257:(e,t,i)=>{i.d(t,{A:()=>LoadingWrapper});var s=i(62688),n=i.n(s),o=i(4751),r=i(62540);function LoadingWrapper({loading:e,children:t,...i}){return e?(0,r.jsx)(o.A,{...i}):t}LoadingW
(0,r._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),n?p(n,{...l,unit:"second"}):"",s?p(s,{...l,unit:"minute"}):"",i?p(i,{...l,unit:"hour"}):"").trim()},formatDecimal(){const t=(0,r.sprintf)(
// translators: %s: number of seconds with "s" as the abbreviated unit.
// translators: %s: number of seconds with "s" as the abbreviated unit.
(0,r.__)("%ds","google-site-kit"),n);if(0===e)return t;const o=(0,r.sprintf)(
// translators: %s: number of minutes with "m" as the abbreviated unit.
// translators: %s: number of minutes with "m" as the abbreviated unit.
(0,r.__)("%dm","google-site-kit"),s),a=(0,r.sprintf)(
// translators: %s: number of hours with "h" as the abbreviated unit.
// translators: %s: number of hours with "h" as the abbreviated unit.
(0,r.__)("%dh","google-site-kit"),i);return(0,r.sprintf)(/* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */ /* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */
(0,r._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),n?t:"",s?o:"",i?a:"").trim()}}}(e,t);try{return i()}catch{return s()}}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,s.isPlainObject)(e)&&(t={...e}),t}function d(e,t={}){e=(0,s.isFinite)(e)?e:Number(e),(0,s.isFinite)(e)||(console.warn("Invalid number",e,typeof e),e=0);const i=g(t),{style:n="metric"}=i;return"metric"===n?function(e){const t={minimumFractionDigits:1,maximumFractionDigits:1};return 1e6<=e?(0,r.sprintf)(
// translators: %s: an abbreviated number in millions.
// translators: %s: an abbreviated number in millions.
(0,r.__)("%sM","google-site-kit"),p(c(e),e%10==0?{}:t)):1e4<=e?(0,r.sprintf)(
// translators: %s: an abbreviated number in thousands.
// translators: %s: an abbreviated number in thousands.
(0,r.__)("%sK","google-site-kit"),p(c(e))):1e3<=e?(0,r.sprintf)(
// translators: %s: an abbreviated number in thousands.
// translators: %s: an abbreviated number in thousands.
(0,r.__)("%sK","google-site-kit"),p(c(e),e%10==0?{}:t)):p(e,{signDisplay:"never",maximumFractionDigits:1})}(e):"duration"===n?a(e,i):"durationISO"===n?function(e){let{hours:t,minutes:i,seconds:s}=l(e);return s=("0"+s).slice(-2),i=("0"+i).slice(-2),t=("0"+t).slice(-2),"00"===t?`${i}:${s}`:`${t}:${i}:${s}`}(e):p(e,i)}const u=o()(console.warn);function p(e,t={}){const{locale:i=h(),...s}=t;try{return new Intl.NumberFormat(i,s).format(e)}catch(t){u(`Site Kit numberFormat error: Intl.NumberFormat( ${JSON.stringify(i)}, ${JSON.stringify(s)} ).format( ${typeof e} )`,t.message)}const n={currencyDisplay:"narrow",currencySign:"accounting",style:"unit"},o=["signDisplay","compactDisplay"],r={};for(const[e,t]of Object.entries(s))n[e]&&t===n[e]||o.includes(e)||(r[e]=t);try{return new Intl.NumberFormat(i,r).format(e)}catch{return new Intl.NumberFormat(i).format(e)}}function m(e,t={}){const{locale:i=h(),style:s="long",type:n="conjunction"}=t;if(Intl.ListFormat){return new Intl.ListFormat(i,{style:s,type:n}).format(e)}
/* translators: used between list items, there is a space after the comma. */const o=(0,r.__)(", ","google-site-kit");return e.join(o)}function h(e=i.g){const t=(0,s.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}},49993:(e,t,i)=>{i.d(t,{Gq:()=>d,IL:()=>h,LD:()=>p,SO:()=>u,a2:()=>n,xD:()=>m});var s=i(13047);const n="googlesitekit_",o=`${n}1.175.0_${i.g._googlesitekitBaseData.storagePrefix}_`,r=["sessionStorage","localStorage"];let a,l=[...r];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 d(e){const t=await g();if(t){const i=t.getItem(`${o}${e}`);if(i){const e=JSON.parse(i),{timestamp:t,ttl:s,value:n,isError:o}=e;if(t&&(!s||Math.round(Date.now()/1e3)-t<s))return{cacheHit:!0,value:n,isError:o}}}return{cacheHit:!1,value:void 0}}async function u(e,t,{ttl:n=s.Jg,timestamp:r=Math.round(Date.now()/1e3),isError:a=!1}={}){const l=await g();if(l)try{return l.setItem(`${o}${e}`,JSON.stringify({timestamp:r,ttl:n,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(n)?e:`${o}${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 s=e.key(i);0===s.indexOf(n)&&t.push(s)}return t}catch(e){return i.g.console.warn("Encountered an unexpected storage error:",e),[]}return[]}async function h(){if(await g()){const e=await m();for(const t of e)await p(t);return!0}return!1}},50304:(e,t,i)=>{i.d(t,{A:()=>IconWrapper});var s=i(62688),n=i.n(s),o=i(62540);function IconWrapper({children:e,marginLeft:t,marginRight:i}){return(0,o.jsx)("span",{className:"googlesitekit-icon-wrapper",style:{marginLeft:t,marginRight:i},children:e})}IconWrapper.propTypes={children:n().node.isRequired,marginLeft:n().number,marginRight:n().number}},50454:(e,t,i)=>{i.d(t,{G:()=>d});var s=i(82871),n=i(97345),o=i(29785),r=i(80);function a({select:e,slug:t}){return e(r.K9).hasConversionReportingEvents(this.requiredConversionEventName)||e(n.oR).isKeyMetricActive(t)}var l=i(7144);function c({select:e,isViewOnlyDashboard:t}){return!t||!(!t||!e(r.K9).getAdSenseLinked())}function g({select:e,isViewOnlyDashboard:t}){return!t||e(r.K9).hasCustomDimensions(this.requiredCustomDimensions)}const d={[n.p3]:{title:(0,s.__)("Top earning pages","google-site-kit"),description:(0,s.__)("Pages that generated the most AdSense revenue","google-site-kit"),infoTooltip:(0,s.__)("Pages that generated the most AdSense revenue","google-site-kit"),displayInSelectionPanel:c,displayInList:c,metadata:{group:l.hs.SLUG}},[n.BT]:{title:(0,s.__)("Top recent trending pages","google-site-kit"),description:(0,s.__)("Pages with the most pageviews published in the last 3 days","google-site-kit"),infoTooltip:(0,s.__)("Pages with the most pageviews published in the last 3 days","google-site-kit"),requiredCustomDimensions:["googlesitekit_post_date"],displayInSelectionPanel:g,displayInWidgetArea:g,displayInList:g,metadata:{group:l.hs.SLUG}},[n.tB]:{title:(0,s.__)("Most popular authors by pageviews","google-site-kit"),description:(0,s.__)("Authors whose posts got the most visits","google-site-kit"),infoTooltip:(0,s.__)("Authors whose posts got the most visits","google-site-kit"),requiredCustomDimensions:["googlesitekit_post_author"],displayInSelectionPanel:g,displayInWidgetArea:g,displayInList:g,metadata:{group:l.hs.SLUG}},[n.t1]:{title:(0,s.__)("Top categories by pageviews","google-site-kit"),description:(0,s.__)("Categories that your site visitors viewed the most","google
(0,u.__)("%s of total pageviews","google-site-kit"),(0,V.Eo)(l,{style:"percent",maximumFractionDigits:1})),metricValue:a.currentValue,Badge:()=>(0,P.jsx)(nt.A,{previousValue:a.previousValue,currentValue:a.currentValue})}),(0,P.jsx)(AudienceTileCitiesMetric,{TileIcon:ze,title:(0,u.__)("Cities with the most visitors","google-site-kit"),topCities:g}),(!j||N&&!m)&&(0,P.jsx)(AudienceTilePagesMetric,{audienceTileNumber:e,audienceSlug:t,TileIcon:Pe,title:(0,u.__)("Top content by pageviews","google-site-kit"),topContentTitles:p,topContent:d,isTopContentPartialData:S})]})]})})}function AudienceTooltipMessage({audienceSlug:e,audienceName:t}){const i=(0,c.useSelect)(e=>e(Ge.O4).getDocumentationLinkURL("visitor-group-insights"));return(0,a.useMemo)(()=>{switch(e){case"new-visitors":return(0,L.A)((0,u.sprintf)(/* translators: %s: is the audience name */ /* translators: %s: is the audience name */
(0,u.__)('%s are people who visited your site for the first time. Note that under some circumstances it\'s possible for a visitor to be counted in both the "new" and "returning" groups. <link>Learn more</link>',"google-site-kit"),"<strong>New visitors</strong>"),{strong:(0,P.jsx)("strong",{}),link:(0,P.jsx)(O.A,{href:i,external:!0,hideExternalIndicator:!0})});case"returning-visitors":return(0,L.A)((0,u.sprintf)(/* translators: %s: is the audience name */ /* translators: %s: is the audience name */
(0,u.__)('%s are people who have visited your site at least once before. Note that under some circumstances it\'s possible for a visitor to be counted in both the "new" and "returning" groups. <link>Learn more</link>',"google-site-kit"),"<strong>Returning visitors</strong>"),{strong:(0,P.jsx)("strong",{}),link:(0,P.jsx)(O.A,{href:i,external:!0,hideExternalIndicator:!0})});default:return(0,L.A)((0,u.sprintf)(/* translators: %s: is the audience name */ /* translators: %s: is the audience name */
(0,u.__)("%s is an audience that already exists in your Analytics property. Note that it's possible for a visitor to be counted in more than one group. <link>Learn more</link>","google-site-kit"),`<strong>${t}</strong>`),{strong:(0,P.jsx)("strong",{}),link:(0,P.jsx)(O.A,{href:i,external:!0,hideExternalIndicator:!0})})}},[e,t,i])}var pt,mt,ht,_t,ft,yt,kt,vt,xt,At,jt,It,bt,Mt,St,Nt,Et,wt,Ct,Tt,Dt,Rt,zt,Lt,Ot,Pt,Bt,Ut,Gt,Vt,Wt,Ft,Ht,Yt,Zt,Qt,qt,Kt,$t,Xt,Jt,ei,ti,ii,si,ni,oi,ri,ai,li,ci,gi,di,ui,pi,mi,hi,_i,fi,yi,ki,vi,xi,Ai,ji,Ii,bi,Mi,Si,Ni;function Ei(){return Ei=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},Ei.apply(null,arguments)}AudienceTileZeroData.propTypes={Widget:r().elementType.isRequired,audienceSlug:r().string.isRequired,title:r().string.isRequired,infoTooltip:r().oneOfType([r().string,r().element]),isMobileBreakpoint:r().bool,isTileHideable:r().bool,onHideTile:r().func},AudienceTile.propTypes={audienceTileNumber:r().number,audienceSlug:r().string.isRequired,title:r().string.isRequired,infoTooltip:r().oneOfType([r().string,r().element]),visitors:r().object,visitsPerVisitor:r().object,pagesPerVisit:r().object,pageviews:r().object,percentageOfTotalPageViews:r().number,topCities:r().object,topContent:r().object,topContentTitles:r().object,hasInvalidCustomDimensionError:r().bool,Widget:r().elementType.isRequired,audienceResourceName:r().string.isRequired,isZeroData:r().bool,isPartialData:r().bool,isTileHideable:r().bool,onHideTile:r().func},AudienceTooltipMessage.propTypes={audienceSlug:r().string.isRequired};const wi=e=>a.createElement("svg",Ei({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 211 109"},e),pt||(pt=a.createElement("path",{fill:"#B8E6CA",d:"M2.675 72.31a29.3 29.3 0 0 0 5.678 8.74c9.451 9.955 23.416 10.799 36.223 8.308a88.8 88.8 0 0 0 35.776-15.752c6.09-4.513 12.104-10.113 20.167-10.363 3.027-.093 6.158.741 8.445 2.71 4.753 4.063 4.668 11.012 8.377 15.829 4.932 6.405 12.026 8.389 19.764 9.128 21.862 2.086 47.902-4.758 62.939-21.412 13.426-14.868 15.038-38.526-1.214-52.08-7.425-6.192-17.606-9.03-27.216-7.584-7.345 1.105-14.801 4.467-22.404 5.401-8.954 1.103-14.49-2.659-21.734-7.04C114.852.58 98.164-2.345 83.874 2.072 70.195 6.301 60.35 17.846 47.04 22.918c-11.502 4.385-25.089 3.717-35.082 10.86C.133 42.228-2.84 59.286 2.675 72.31"})),a.createElement("path",{fill:"#161B18",d:"M108.273 109c54.612 0 98.883-1.735 98.883-3.874s-44.271-3.875-98.883-3.875-98.882 1.735-98.882 3.875S53.66 109 108.273 109",opacity:.1,style:{mixBlendMode:"multiply"}}),mt||(mt=a.createElement("path",{fill:"#CBD0D3",d:"M108.273 109c54.612 0 98.883-1.735 98.883-3.874s-44.271-3.875-98.883-3.875-98.882 1.735-98.882 3.875S53.66 109 108.273 109"})),ht||(ht=a.createElement("path",{stroke:"#161B18",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.472,d:"M134.765 53.225c-1.065 16.927-6.936 32.112-3.012 51.193h-4.468M139.814 104.418h-4.47l7.9-51.193"})),_t||(_t=a.createElement("path",{stroke:"#000",strokeLinecap:"round",strokeWidth:1.468,d:"M120.504 36.651c-3.814 1.73-11.135 5.58-11.135 13.398M147.266 35.787c3.493 1.787 11.06 7.678 11.977 13.225"})),ft||(ft=a.createElement("path",{fill:"#77AD8C",d:"m151.555 75.952-3.102.282-18.926 1.719-11.063 1.002-1.049-24.735-1.825-43.046 34.528-1.262.697 32.058.094 4.316.642 29.565z"})),yt||(yt=a.createElement("path",{fill:"#5C9271",d:"m148.453 76.234 1.78-.162 1.323-.12-1.439-66.042-1.983.091 1.281 63.2-24.976 2.127.862-19.15-7.844-1.074.86 20.438.107 2.465.041.946 11.063-1.002 18.927-1.719z"})),kt||(kt=a.createElement("path",{fill:"#CBD0D3",d:"M135.891 70.752c.032.916-.392-20.197-.629-27.044-6.628-3.008-13.797-3.559-20.67-1.228l.628 27.043c6.874-2.33 14.043-1.779 20.671 1.23"})),vt||(vt=a.createElement("path",{fill:"#EBEEF0",d:"M135.926 70.752c.01.916-.547-20.194-.629-27.044 6.481-3.306 13.617-4.182 20.592-2.166l.629 27.043c-6.975-2.015-14.111-1.139-20.592 2.167"})),xt||(xt=a.createElement("path",{fill:"#CBD0D3",fillRule:"evenodd",d:"M133.233 60.796c-.083-3
(0,u._n)("Select at least %1$d group (%2$d selected)","Select at least %1$d groups (%2$d selected)",Bi,"google-site-kit"),Bi,r):r>Ui&&(l=(0,u.sprintf)(/* translators: 1: Maximum number of groups that can be selected. 2: Number of selected groups. */ /* translators: 1: Maximum number of groups that can be selected. 2: Number of selected groups. */
(0,u.__)("Select up to %1$d groups (%2$d selected)","google-site-kit"),Ui,r));const c=(0,a.useMemo)(()=>!(0,n.isEqual)((0,V.N9)(t),(0,V.N9)(e)),[t,e]);if(!l&&!o&&!i)return null;let g=o||i;return c&&l&&(g={message:l}),(0,P.jsx)(ms.A,{error:g})}function Panel(){const e=(0,W.A)(),t=(0,c.useSelect)(e=>e(d.n).getValue(Ti)),i=(0,c.useSelect)(e=>e(Z.K9).isFetchingSyncAvailableAudiences()),s=(0,c.useInViewSelect)(e=>{const{getConfigurableAudiences:t}=e(Z.K9),{getConfiguredAudiences:i}=e(Q.oR),s=i()||[],n=t()||[];return n.length&&s.length?n.filter(({name:e})=>s.includes(e)).map(({name:e})=>e):[]}),n=(0,Ze.A)(Vi,"autoSubmit"),{setValues:o}=(0,c.useDispatch)(Ue.s),{setValue:r}=(0,c.useDispatch)(d.n),l=(0,a.useCallback)(()=>{o(Di,{[Ri]:s,[zi]:!1}),(0,V.sx)(`${e}_audiences-sidebar`,"audiences_sidebar_view")},[s,o,e]),g=(0,a.useCallback)(()=>{t&&(r(Ti,!1),r(Pi,!1))},[r,t]);return(0,P.jsxs)(is.Ay,{className:"googlesitekit-audience-selection-panel",closePanel:g,isOpen:t||n,isLoading:i,onOpen:l,children:[(0,P.jsx)(Header_Header,{closePanel:g}),(0,P.jsx)(AudienceItems,{savedItemSlugs:s}),(0,P.jsx)(LearnMoreLink,{}),(0,P.jsx)(SaveErrorNotice,{savedItemSlugs:s}),(0,P.jsx)(SyncErrorNotice,{}),(0,P.jsx)(AudienceCreationSuccessNotice,{}),(0,P.jsx)(Footer,{closePanel:g,isOpen:t,savedItemSlugs:s})]})}function AudienceSelectionPanel(){const e=(0,c.useSelect)(e=>e(d.n).getValue(Ti));return(0,P.jsx)(Ji.Ay,{value:{key:"AudienceSelectionPanel",value:!!e},children:(0,P.jsx)(Panel,{})})}var hs=i(44148);function AudienceAreaFooter(){const e=(0,ue.A)(),t=(0,c.useSelect)(e=>e(Q.oR).getDateRangeDates({offsetDays:Z.f2})),i=(0,c.useSelect)(i=>e?null:i(Z.K9).getServiceReportURL("audiences",{dates:t}));return(0,c.useSelect)(e=>e(Wi.i).isModuleConnected(F.L1))?(0,P.jsx)(hs.A,{className:"googlesitekit-audience-widget__source",name:(0,u._x)("Analytics","Service name","google-site-kit"),href:i,external:!0}):null}var _s,fs,ys,ks,vs=i(674);function ChangeGroupsLink(){const e=(0,W.A)(),t=(0,c.useInViewSelect)(e=>e(Z.K9).getConfigurableAudiences(),[]),{setValue:i}=(0,c.useDispatch)(d.n),s=(0,a.useCallback)(()=>{i(Ti,!0),(0,V.sx)(`${e}_audiences-sidebar`,"change_groups")},[i,e]);return Array.isArray(t)&&t?.length>0?(0,P.jsx)(O.A,{className:"googlesitekit-widget-area__cta-link",onClick:s,leadingIcon:(0,P.jsx)(vs.A,{width:22,height:22}),secondary:!0,linkButton:!0,children:(0,u.__)("Change groups","google-site-kit")}):null}function xs(){return xs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},xs.apply(null,arguments)}const As=e=>a.createElement("svg",xs({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"-3 1 333.666 149.252"},e),_s||(_s=a.createElement("defs",null,a.createElement("filter",{id:"audience-connect-analytics-cta-graphic_svg__c",width:144.59,height:185.064,x:109.551,y:18.171,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},a.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),a.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"}),a.createElement("feOffset",{dy:4}),a.createElement("feGaussianBlur",{stdDeviation:8}),a.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),a.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"}),a.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_1731_24094"}),a.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_1731_24094",result:"shape"})),a.createElement("filter",{id:"audience-connect-analytics-cta-graphic_svg__d",width:144.59,height:185.064,x:236.859,y:18.171,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},a.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),a.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"}),a.createElement("feOffset",{dy:4}),a.createElement("feGaussianBlur",{stdDeviation:8}),a.createElement("feComposit
(0,r._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 h(e=""){if(!(0,o.isString)(e))return!1;if(3!==e.split("-").length)return!1;const t=new Date(e);return(0,o.isDate)(t)&&!isNaN(t)}function _(e){n()((0,o.isDate)(e)&&!isNaN(e),a);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 f(e){n()(h(e),l);const[t,i,s]=e.split("-");return new Date(t,i-1,s)}function y(e,t){return _(v(e,t*u))}function k(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 v(e,t){n()(h(e)||(0,o.isDate)(e)&&!isNaN(e),l);const i=h(e)?Date.parse(e):e.getTime();return new Date(i-1e3*t)}},52274:(e,t,i)=>{i.d(t,{i:()=>r});var s=i(63696),n=i(50539),o=i(7972);function r(e){const{setValue:t}=(0,n.useDispatch)(o.n);return(0,s.useCallback)(()=>{t("admin-screen-tooltip",{isTooltipVisible:!0,...e})},[t,e])}},52696:(e,t,i)=>{i.d(t,{WM:()=>s.WM,wA:()=>s.wA,ws:()=>s.ws});var s=i(49057);void 0===i.g.googlesitekit&&(i.g.googlesitekit={}),i.g.googlesitekit.data=s.Ay},52721:(e,t,i)=>{i.d(t,{w:()=>a});var s=i(35470),n=i(63696),o=i(85097);function r(){}function a(e,t){const i=(0,o.W)({sticky:!0}),a=(0,n.useRef)(),l=(0,n.useCallback)(e,t),c=(0,s.A)(i?l:r);return i&&(a.current=c),a.current}},52735:(e,t,i)=>{i.d(t,{A:()=>s});const s=(0,i(63696).createContext)(!1)},55465:(e,t,i)=>{i.d(t,{O:()=>n});var s=i(31234);const n=i.n(s)()(i.g)},55989:(e,t,i)=>{i.d(t,{A:()=>l});var s=i(62688),n=i.n(s),o=i(4452),r=i.n(o),a=i(62540);function VisuallyHidden({className:e,children:t,...i}){return t?(0,a.jsx)("span",{...i,className:r()("screen-reader-text",e),children:t}):null}VisuallyHidden.propTypes={className:n().string,children:n().node},VisuallyHidden.defaultProps={className:""};const l=VisuallyHidden},58718:(e,t,i)=>{i.d(t,{CX:()=>n,Py:()=>r,SM:()=>s,kj:()=>o});const s="adsense-connect-cta",n="adsense-connect-cta-tooltip-state",o="adsense-ga4-top-earnings-notice",r="adsense"},59352:(e,t,i)=>{i.r(t),i.d(t,{CONTEXT_ENTITY_DASHBOARD_CONTENT:()=>c,CONTEXT_ENTITY_DASHBOARD_MONETIZATION:()=>d,CONTEXT_ENTITY_DASHBOARD_SPEED:()=>g,CONTEXT_ENTITY_DASHBOARD_TRAFFIC:()=>l,CONTEXT_MAIN_DASHBOARD_CONTENT:()=>o,CONTEXT_MAIN_DASHBOARD_KEY_METRICS:()=>s,CONTEXT_MAIN_DASHBOARD_MONETIZATION:()=>a,CONTEXT_MAIN_DASHBOARD_SPEED:()=>r,CONTEXT_MAIN_DASHBOARD_TRAFFIC:()=>n,default:()=>u});const s="mainDashboardKeyMetrics",n="mainDashboardTraffic",o="mainDashboardContent",r="mainDashboardSpeed",a="mainDashboardMonetization",l="entityDashboardTraffic",c="entityDashboardContent",g="entityDashboardSpeed",d="entityDashboardMonetization",u={CONTEXT_MAIN_DASHBOARD_KEY_METRICS:s,CONTEXT_MAIN_DASHBOARD_TRAFFIC:n,CONTEXT_MAIN_DASHBOARD_CONTENT:o,CONTEXT_MAIN_DASHBOARD_SPEED:r,CONTEXT_MAIN_DASHBOARD_MONETIZATION:a,CONTEXT_ENTITY_DASHBOARD_TRAFFIC:l,CONTEXT_ENTITY_DASHBOARD_CONTENT:c,CONTEXT_ENTITY_DASHBOARD_SPEED:g,CONTEXT_ENTITY_DASHBOARD_MONETIZATION:d}},59865:(e,t,i)=>{i.d(t,{A:()=>p});var s=i(62688),n=i.n(s),o=i(4452),r=i.n(o),a=i(52684),l=i(13606),c=i(82871),g=i(49383),d=i(85149),u=i(62540);function ModalDialog({className:e="",dialogActive:t=!1,handleCancel:i=null,onOpen:s=null,onClose:n=null,title:o=null,provides:p,handleConfirm:m,subtitle:h,confirmButton:_=null,notes:f=[],danger:y=!1,inProgress:k=!1,small:v=!1,medium:x=!1,buttonLink:A=null}){const j=`googlesitekit-dialog-description-${(0,a.A)(ModalDialog)}`,I=!(!p||!p.length);return(0,u.jsxs)(g.Dialog,{open:t,onOpen:s,onClose:n,"aria-describedby":I?j:void 0,tabIndex:"-1",className:r()(e,{"googlesitekit-dialog-sm":v,"googlesitekit-dialog-md":x}),children:[(0,u.jsxs)(g.DialogTitle,{children:[y&&(0,u.jsx)(d.A,{width:28,height:28}),o]}),h?(0,u.jsx)("p",{className:"mdc-dialog__lead",children:h}):[],(0,u.jsxs)(g.DialogContent,{children:[I&&(0,u.jsx)("section",{id
(0,c.__)("<strong>Note:</strong> %s","google-site-kit"),e),{strong:(0,u.jsx)("strong",{})}),"function"==typeof e&&(0,u.jsx)(e,{})]},`note-${t}`))})]}),(0,u.jsxs)(g.DialogFooter,{children:[(0,u.jsx)(g.Button,{className:"mdc-dialog__cancel-button",onClick:i,disabled:k,tertiary:!0,children:(0,c.__)("Cancel","google-site-kit")}),A?(0,u.jsx)(g.Button,{href:A,onClick:m,target:"_blank",danger:y,children:_}):(0,u.jsx)(g.SpinnerButton,{onClick:m,danger:y,disabled:k,isSaving:k,children:_||(0,c.__)("Disconnect","google-site-kit")})]})]})}ModalDialog.displayName="Dialog",ModalDialog.propTypes={className:n().string,dialogActive:n().bool,handleDialog:n().func,handleConfirm:n().func.isRequired,onOpen:n().func,onClose:n().func,title:n().string,provides:n().arrayOf(n().string),confirmButton:n().string,notes:n().arrayOf(n().oneOfType([n().string,n().elementType])),danger:n().bool,small:n().bool,medium:n().bool,buttonLink:n().string};const p=ModalDialog},60515:(e,t,i)=>{i.d(t,{A:()=>p});var s=i(62688),n=i.n(s),o=i(4452),r=i.n(o),a=i(63696),l=i(82871),c=i(49383),g=i(5855),d=i(38432),u=i(62540);function NewBadge({tooltipTitle:e,learnMoreLink:t,forceOpen:i,hasLeftSpacing:s,hasNoSpacing:n,onLearnMoreClick:o=()=>{}}){const p=(0,u.jsx)(g.A,{className:r()("googlesitekit-new-badge",{"googlesitekit-new-badge--has-no-spacing":n}),label:(0,l.__)("New","google-site-kit"),hasLeftSpacing:s});return e?(0,u.jsx)(c.Tooltip,{tooltipClassName:"googlesitekit-new-badge__tooltip",title:(0,u.jsxs)(a.Fragment,{children:[e,(0,u.jsx)("br",{}),(0,u.jsx)(d.A,{href:t,onClick:o,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:n().string,learnMoreLink:n().string,forceOpen:n().bool,onLearnMoreClick:n().func,hasLeftSpacing:n().bool,hasNoSpacing:n().bool};const p=NewBadge},61983:(e,t,i)=>{i.d(t,{A:()=>DismissButton});var s=i(62688),n=i.n(s),o=i(82871),r=i(49383),a=i(62540);function DismissButton({className:e,label:t=(0,o.__)("Maybe later","google-site-kit"),onClick:i,disabled:s,tertiary:n=!0}){return i?(0,a.jsx)(r.Button,{className:e,onClick:i,disabled:s,tertiary:n,children:t}):null}DismissButton.propTypes={className:n().string,label:n().string,onClick:n().func,disabled:n().bool,tertiary:n().bool,dismissOptions:n().shape({expiresInSeconds:n().number,skipHidingFromQueue:n().bool})}},62051:(e,t,i)=>{i.d(t,{A:()=>LearnMoreLink});var s=i(62688),n=i.n(s),o=i(38432),r=i(68761),a=i(62540);function LearnMoreLink({id:e,label:t,url:i,ariaLabel:s,gaTrackingEventArgs:n,external:l=!0,...c}){const g=(0,r.A)(e);return(0,a.jsx)(o.A,{onClick:function(e){e.persist(),g.clickLearnMore(n?.label,n?.value)},href:i,"aria-label":s,external:l,...c,children:t})}LearnMoreLink.propTypes={id:n().string,label:n().string,url:n().string,ariaLabel:n().string,gaTrackingEventArgs:n().shape({label:n().string,value:n().string}),external:n().bool}},62457:(e,t,i)=>{i.d(t,{A:()=>r});var s=i(62688),n=i.n(s),o=i(62540);function Spinner({isSaving:e,style:t={}}){return(0,o.jsx)("span",{className:"spinner",style:{display:e?"inline-block":"none",float:"none",marginTop:"0",visibility:"visible",...t}})}Spinner.propTypes={isSaving:n().bool,style:n().object};const r=Spinner},62659:(e,t,i)=>{i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var s=i(63696),n=i(19826);const __WEBPACK_DEFAULT_EXPORT__=function(){return(0,s.useContext)(n.Ay)}},62779:(e,t,i)=>{i.d(t,{A:()=>f});var s=i(82871),n=i(63696),o=i(13606),r=i(7076),a=i(50539),l=i(59865),c=i(49993),g=i(94656),d=i(38432),u=i(29785),p=i(70301),m=i(65054),h=i(62659),_=i(62540);const f=function ResetButton({children:e}){const t=(0,a.useSelect)(e=>e(u.O4).getAdminURL("googlesitekit-splash",{notification:"reset_success"})),i=(0,a.useSelect)(e=>e(u.O4).isDoingReset()),f=(0,a.useSelect)(e=>e(p.M).isNavigatingTo(t||"")),[y,k]=(0,n.useState)(!1),[v,x]=(0,n.useState)(!1),A=(0,r.d)(k,3e3);(0,n.useEffect)(()=>{i||f?k(!0):A(!1)},[i,f,A]);const{reset:j}=(0,a.useDispatch)(u.O4),{navigateTo:I}=(0,a.useDispatch)(p.M),b=(0,h.A)(),M=(
(0,r.__)("%s (Please try again.)","google-site-kit"),v)),p||(v=(0,r.sprintf)(/* translators: $%s: Error message */ /* translators: $%s: Error message */
(0,r.__)("Error: %s","google-site-kit"),v));const x=t?.data?.reconnectURL;x&&(0,a.m)(x)&&(v=(0,r.sprintf)(/* translators: 1: Original error message 2: Reconnect URL */ /* translators: 1: Original error message 2: Reconnect URL */
(0,r.__)('%1$s To fix this, <a href="%2$s">redo the plugin setup</a>.',"google-site-kit"),v,x));return(0,u.jsx)(g.A,{className:e,type:g.A.TYPES.ERROR,description:(0,u.jsx)("span",{dangerouslySetInnerHTML:(0,d.p9)(v,{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href"]})}),ctaButton:k?{label:(0,r.__)("Retry","google-site-kit"),onClick:y}:void 0,hideIcon:h})}ErrorNotice.propTypes={className:n().string,error:n().shape({message:n().string}),hasButton:n().bool,storeName:n().string,message:n().string,noPrefix:n().bool,skipRetryMessage:n().bool,hideIcon:n().bool}},73963:(e,t,i)=>{i.d(t,{A:()=>g});var s=i(4452),n=i.n(s),o=i(62688),r=i.n(o),a=i(63696),l=i(62540);const c=(0,a.forwardRef)(({children:e,className:t,widgetSlug:i,noPadding:s,Header:o,Footer:r},a)=>(0,l.jsxs)("div",{className:n()("googlesitekit-widget",`googlesitekit-widget--${i}`,{"googlesitekit-widget--no-padding":s},{"googlesitekit-widget--with-header":o},t),ref:a,children:[o&&(0,l.jsx)("div",{className:"googlesitekit-widget__header",children:(0,l.jsx)(o,{})}),(0,l.jsx)("div",{className:"googlesitekit-widget__body",children:e}),r&&(0,l.jsx)("div",{className:"googlesitekit-widget__footer",children:(0,l.jsx)(r,{})})]}));c.defaultProps={children:void 0,noPadding:!1},c.propTypes={children:r().node,widgetSlug:r().string.isRequired,noPadding:r().bool,Header:r().elementType,Footer:r().elementType};const g=c},74426:(e,t,i)=>{function s(e){return e.charAt(0).toUpperCase()+e.slice(1)}function n(e){return e.replace(/([a-z0-9]{1})([A-Z]{1})/g,"$1_$2").toUpperCase()}function o(e){return e.split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join("")}i.d(t,{Uf:()=>o,m2:()=>s,sP:()=>n})},74655:(e,t,i)=>{i.d(t,{A:()=>ChangeBadge});var s=i(62688),n=i.n(s),o=i(4452),r=i.n(o),a=i(13047),l=i(62540);function ChangeBadge(e){const{previousValue:t,currentValue:i,isAbsolute:s}=e,n=s?i-t:(0,a.Zf)(t,i),o=n<0,c=0===n;return null===n?null:(0,l.jsx)("div",{className:r()("googlesitekit-change-badge",{"googlesitekit-change-badge--negative":o,"googlesitekit-change-badge--zero":c}),children:(0,a.Eo)(n,{style:"percent",signDisplay:"exceptZero",maximumFractionDigits:1})})}ChangeBadge.propTypes={isAbsolute:n().bool,previousValue:n().number.isRequired,currentValue:n().number.isRequired}},75594:(e,t,i)=>{i.d(t,{A:()=>UserInputQuestionNotice});var s=i(4452),n=i.n(s),o=i(82871),r=i(62540);function UserInputQuestionNotice({className:e}){return(0,r.jsx)("p",{className:n()(e,"googlesitekit-user-input__question-notice"),children:(0,o.__)("You can always edit your answers later in Settings","google-site-kit")})}},75649:(e,t,i)=>{i.d(t,{A:()=>o});var s=i(82871),n=i(63696);function o({isDismissalFinal:e}={}){const[t]=(0,n.useState)(!0===e?(0,s.__)("Dont show again","google-site-kit"):(0,s.__)("Maybe later","google-site-kit"));return t}},75662:(e,t,i)=>{i.d(t,{A:()=>h});var s=i(62688),n=i.n(s),o=i(4452),r=i.n(o),a=i(63696),l=i(10740),c=i(38432),g=i(33052),d=i(62540);class LayoutHeader extends a.Component{render(){const{title:e,badge:t,ctaLabel:i,ctaLink:s}=this.props,n=s?{alignMiddle:!0,smSize:4,lgSize:6}:{alignMiddle:!0,smSize:4,mdSize:8,lgSize:12};return(0,d.jsx)("header",{className:"googlesitekit-layout__header",children:(0,d.jsx)(l.xA,{children:(0,d.jsxs)(l.fI,{children:[e&&(0,d.jsx)(l.fh,{...n,children:(0,d.jsxs)(g.A,{as:"h3",size:"small",type:"title",className:"googlesitekit-subheading-1 googlesitekit-layout__header-title",children:[e,t]})}),s&&(0,d.jsx)(l.fh,{smSize:4,lgSize:6,alignMiddle:!0,mdAlignRight:!0,children:(0,d.jsx)(c.A,{href:s,external:!0,children:i})})]})})})}}LayoutHeader.propTypes={title:n().string,badge:n().node,ctaLabel:n().string,ctaLink:n().string},LayoutHeader.defaultProps={title:"",badge:null,ctaLabel:"",ctaLink:""};const u=LayoutHeader;var p=i(44148);class LayoutFooter extends a.Component{render(){const{ctaLabel:e,ctaLink:t,footerContent:i}=this.props;return(0,d.jsx)("footer",{className:"googlesitekit-layout__footer",children:(0,d.jsx)(l.xA,{children:(0,d.jsx)(l.fI,{children:(0,d.jsxs)(l.fh,{size:12,children:[t&&e&&(0,d.jsx)(p.A,{className:"googlesitekit-data-block__source",name:e,href:t,exte
(0,r.__)("We were unable to generate your report due to insufficient permissions in %s. To fix this, contact your administrator or get help. Report delivery will automatically resume once the issue is resolved.","google-site-kit"),t.name),onInView:c.view,ctaButton:s?{label:(0,r.__)("Request access","google-site-kit"),href:s,external:!0,hideExternalIndicator:!0,onClick:c.confirm}:null,dismissButton:o?{label:(0,r.__)("Get help","google-site-kit"),onClick:c.dismiss,href:o,external:!0}:null})}const _="email_reports_report_error_notice",f=(0,u.A)(c.A);function ReportErrorNotice({moduleSlug:e}){const t=(0,l.WM)(t=>t(a.i).getModule(e)),i=(0,d.A)(_),s=(0,l.WM)(t=>t(n.O4).getModuleSettingsURL(e)),o=(0,l.WM)(e=>e(n.O4).getDocumentationLinkURL("email-reporting"));return(0,p.jsx)(f,{className:"googlesitekit-email-reporting__admin-settings-notice",type:g.Q.ERROR,title:(0,r.__)("Email reports are failing to send","google-site-kit"),description:(0,r.sprintf)(/* translators: %1$s: module name */ /* translators: %1$s: module name */
(0,r.__)("We were unable to generate your report because data loading failed for %1$s. To fix this, go to %1$s settings in Site Kit or get help. Report delivery will automatically resume once the issue is resolved.","google-site-kit"),t.name),onInView:i.view,ctaButton:s?{label:(0,r.__)("Go to settings","google-site-kit"),href:s,onClick:i.confirm}:null,dismissButton:{label:(0,r.__)("Get help","google-site-kit"),onClick:i.dismiss,href:o,external:!0}})}const y="email_reports_sending_error_notice",k=(0,u.A)(c.A);function SendingErrorNotice(){const e=(0,d.A)(y);return(0,p.jsx)(k,{className:"googlesitekit-email-reporting__admin-settings-notice",type:g.Q.ERROR,title:(0,r.__)("Email reports are failing to send","google-site-kit"),description:(0,r.__)("We were unable to deliver your report, likely due to your WordPress email configuration. To fix this, go to your WordPress sites system settings or contact your host. Report delivery will automatically resume once the issue is resolved. ","google-site-kit"),onInView:e.view})}const v="email_reports_server_error_notice",x=(0,u.A)(c.A);function ServerErrorNotice(){const e=(0,d.A)(v);return(0,p.jsx)(x,{className:"googlesitekit-email-reporting__admin-settings-notice",type:g.Q.ERROR,title:(0,r.__)("Email reports are failing to send","google-site-kit"),description:(0,r.__)("We were unable to deliver your report. Report delivery will automatically resume once the issue is resolved.","google-site-kit"),onInView:e.view})}function EmailReportingErrorNotices(){const e=(0,o.A)(),t=(0,s.useSelect)(e=>e(n.O4).isEmailReportingEnabled()),i=(0,s.useSelect)(e=>e(n.O4).getEmailReportingErrors()),r=(0,s.useSelect)(e=>e(n.O4).getLatestEmailReportingError());if(!t||e||0===i?.length||void 0===r)return null;switch(r?.category_id){case"permissions_error":return(0,p.jsx)(PermissionsErrorNotice,{moduleSlug:r.module_slug});case"report_error":return(0,p.jsx)(ReportErrorNotice,{moduleSlug:r.module_slug});case"sending_error":return(0,p.jsx)(SendingErrorNotice,{});default:return(0,p.jsx)(ServerErrorNotice,{})}}},79506:(e,t,i)=>{i.d(t,{A:()=>AudienceErrorModal});var s=i(62688),n=i.n(s),o=i(13606),r=i(82871),a=i(50539),l=i(38432),c=i(82246),g=i(94656),d=i(29785),u=i(80),p=i(13137),m=i(13047),h=i(62540);function AudienceErrorModal({apiErrors:e,hasOAuthError:t,inProgress:i,title:s,description:n,trackEventCategory:_,onCancel:f=()=>{},onRetry:y=()=>{}}){const k=Array.isArray(e)?e:[e],v=(0,a.useSelect)(e=>e(d.O4).getErrorTroubleshootingLinkURL({code:"analytics-4_insufficient_permissions"})),x=(0,a.useSelect)(e=>e(u.K9).getServiceEntityAccessURL()),A=(0,a.useSelect)(e=>e(d.O4).getErrorTroubleshootingLinkURL({code:"access_denied"}));if(!k.length&&!t)return null;const j=k.some(e=>(0,p.SG)(e));let I,b,M,S;return t?(I=(0,r.__)("Analytics update failed","google-site-kit"),b=(0,o.A)((0,r.__)("Setup was interrupted because you did not grant the necessary permissions. <HelpLink />","google-site-kit"),{HelpLink:(0,h.jsx)(l.A,{href:A,external:!0,hideExternalIndicator:!0,children:(0,r.__)("Get help","google-site-kit")})}),M=(0,r.__)("Retry","google-site-kit")):j?(I=(0,r.__)("Insufficient permissions","google-site-kit"),b=(0,o.A)((0,r.__)("Youll need to contact your administrator. Trouble getting access? <HelpLink />","google-site-kit"),{HelpLink:(0,h.jsx)(l.A,{href:v,external:!0,hideExternalIndicator:!0,children:(0,r.__)("Get help","google-site-kit")})}),M=(0,r.__)("Request access","google-site-kit"),S=x):(I=s||(0,r.__)("Failed to set up visitor groups","google-site-kit"),b=n||(0,r.__)("Oops! Something went wrong. Retry enabling groups.","google-site-kit"),M=(0,r.__)("Retry","google-site-kit")),(0,h.jsx)(g.A,{children:(0,h.jsx)(c.A,{buttonLink:S,title:I,subtitle:b,handleConfirm:function(){let e;e=t?"auth_error_retry":j?"insufficient_permissions_error_request_access":"setup_error_retry",(0,m.sx)(_,e).finally(()=>{j||y()})},confirmButton:M,handleCancel:function(){let e;e=t?"auth_error_cancel":j?"insufficient_permissions_error_cancel":"setup_error_cancel",(0,m.sx)(_,e).finally(f)},onOpen:()=>{let e;e=t?"auth_error":j?"insufficie
(0,l.__)("Google Account for %1$s (Email: %2$s)","google-site-kit"),n,i)),n&&!i&&(Z=(0,l.sprintf)(/* translators: Account info text. 1: User's (full) name. */ /* translators: Account info text. 1: User's (full) name. */
(0,l.__)("Google Account for %1$s","google-site-kit"),n)),!n&&i&&(Z=(0,l.sprintf)(/* translators: Account info text. 1: User's email address. */ /* translators: Account info text. 1: User's email address. */
(0,l.__)("Google Account (Email: %1$s)","google-site-kit"),i)),(0,_.jsxs)(c.Fragment,{children:[(0,_.jsxs)("div",{ref:M,className:"googlesitekit-user-selector googlesitekit-dropdown-menu googlesitekit-dropdown-menu__icon-menu mdc-menu-surface--anchor",children:[(0,_.jsx)(m.Button,{disabled:r,ref:S,className:"googlesitekit-header__dropdown mdc-button--dropdown googlesitekit-border-radius-round--tablet googlesitekit-border-radius-round--phone googlesitekit-border-radius-round googlesitekit-button-icon",onClick:W,icon:!!s&&(0,_.jsx)("i",{className:"mdc-button__icon mdc-button__account","aria-hidden":"true",children:(0,_.jsx)("img",{className:"mdc-button__icon--image",src:s,alt:(0,l.__)("User Avatar","google-site-kit")})}),"aria-haspopup":"menu","aria-expanded":j,"aria-controls":"user-menu","aria-label":r?void 0:(0,l.__)("Account","google-site-kit"),tooltipEnterDelayInMS:500,customizedTooltip:r?null:(0,_.jsxs)("span",{"aria-label":Z,children:[(0,_.jsx)("strong",{children:(0,l.__)("Google Account","google-site-kit")}),(0,_.jsx)("br",{}),(0,_.jsx)("br",{}),n,n&&(0,_.jsx)("br",{}),i]}),text:!0,tooltip:!0}),(0,_.jsxs)(m.Menu,{className:"googlesitekit-user-menu",menuOpen:j,onSelected:H,id:"user-menu",children:[(0,_.jsx)(MenuSection,{children:(0,_.jsx)(Details,{})}),e&&(0,_.jsx)(MenuItem,{id:"manage-email-reports",icon:(0,_.jsx)(T.A,{width:"24"}),label:(0,l.__)("Manage email reports","google-site-kit"),itemClassName:"googlesitekit-user-menu__item",iconClassName:"googlesitekit-user-menu__item-icon",labelClassName:"googlesitekit-user-menu__item-label"}),!!t&&(0,_.jsx)(MenuItem,{id:"manage-sites",icon:(0,_.jsx)(C,{width:"24"}),label:(0,l.__)("Manage Sites","google-site-kit"),itemClassName:"googlesitekit-user-menu__item",iconClassName:"googlesitekit-user-menu__item-icon",labelClassName:"googlesitekit-user-menu__item-label"}),(0,_.jsx)(MenuItem,{id:"disconnect",icon:(0,_.jsx)(I,{width:"24"}),label:(0,l.__)("Disconnect","google-site-kit"),itemClassName:"googlesitekit-user-menu__item",iconClassName:"googlesitekit-user-menu__item-icon",labelClassName:"googlesitekit-user-menu__item-label"})]})]}),(0,_.jsx)(x.A,{children:(0,_.jsx)(h.A,{dialogActive:f,handleConfirm:Y,handleCancel:w,onClose:w,title:(0,l.__)("Disconnect","google-site-kit"),subtitle:(0,l.__)("Disconnecting Site Kit by Google will remove your access to all services. After disconnecting, you will need to re-authorize to restore service.","google-site-kit"),confirmButton:(0,l.__)("Disconnect","google-site-kit"),danger:!0,small:!0})})]})}var V=i(10740),W=i(4124),F=i(45257),H=i(15844),Y=i(31589),Z=i(39525),Q=i(30521),q=i(20697),K=i(7551),$=i(11883),X=i(97513);var J=i(59352),ee=i(4169);const te={[K.Oo]:{[q.SH]:J.CONTEXT_MAIN_DASHBOARD_KEY_METRICS,[q.OT]:J.CONTEXT_MAIN_DASHBOARD_TRAFFIC,[q.en]:J.CONTEXT_MAIN_DASHBOARD_CONTENT,[q.Ej]:J.CONTEXT_MAIN_DASHBOARD_SPEED,[q.Gw]:J.CONTEXT_MAIN_DASHBOARD_MONETIZATION},[K.oE]:{[q.OT]:J.CONTEXT_ENTITY_DASHBOARD_TRAFFIC,[q.en]:J.CONTEXT_ENTITY_DASHBOARD_CONTENT,[q.Ej]:J.CONTEXT_ENTITY_DASHBOARD_SPEED,[q.Gw]:J.CONTEXT_ENTITY_DASHBOARD_MONETIZATION}};var ie;function se(){return se=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},se.apply(null,arguments)}const ne=e=>c.createElement("svg",se({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 18 18"},e),ie||(ie=c.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M18 16V2c0-1.1-1-2-2.222-2H2.222C1 0 0 .9 0 2v14c0 1.1 1 2 2.222 2h13.556C17 18 18 17.1 18 16M9 7h5V5H9zm7-5H2v14h14zM4 4h4v4H4zm10 7H9v2h5zM4 10h4v4H4z",clipRule:"evenodd"})));var oe,re,ae,le;function ce(){return ce=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},ce.apply(null,arguments)}const ge=e=>c.createElement("svg",ce({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 13 12"},e),oe||(oe=c.createElement("rect",{width:5,height:5,x:.5,fill:"currentColor",rx:1})),re||(
(0,o.__)("%s data was previously shared by an admin who no longer has access. Please contact another admin to restore it.","google-site-kit"),t[0]):(0,o.sprintf)(/* translators: %s: List of module names */ /* translators: %s: List of module names */
(0,o.__)("The data for the following modules was previously shared by an admin who no longer has access: %s. Please contact another admin to restore it.","google-site-kit"),t.join((0,o._x)(", ","Recoverable modules","google-site-kit")));return(0,c.jsx)(l.A,{title:(0,o.__)("Data Unavailable","google-site-kit"),description:i})}RecoverableModules.propTypes={moduleSlugs:n().arrayOf(n().string).isRequired}},99573:(e,t,i)=>{i.d(t,{A:()=>Tooltip});var s=i(62688),n=i.n(s),o=i(4452),r=i.n(o),a=i(90295),l=i(63696),c=i(62540);function Tooltip({children:e,popperClassName:t,tooltipClassName:i,onOpen:s,onClose:n,...o}){const g=(0,l.useRef)(!1),d=s?()=>{g.current||(g.current=!0,s?.())}:void 0,u=s?()=>{g.current=!1,n?.()}:n;return(0,c.jsx)(a.Ay,{classes:{popper:r()("googlesitekit-tooltip-popper",t),tooltip:r()("googlesitekit-tooltip",i)},onOpen:d,onClose:u,...o,arrow:!0,children:e})}Tooltip.propTypes={children:n().node,popperClassName:n().string,tooltipClassName:n().string,onOpen:n().func,onClose:n().func}},99578:(e,t,i)=>{i.d(t,{A:()=>CircularProgress});var s=i(75762),n=i(62540);function CircularProgress(e){return(0,n.jsx)(s.A,{...e})}}},e=>{e.O(0,[660],()=>{return t=8777,e(e.s=t);var t});e.O()}]);