kollapsminoriteten/wp-content/plugins/google-site-kit/dist/assets/js/googlesitekit-ad-blocking-r...

36 lines
224 KiB
JavaScript
Raw Normal View History

2025-07-27 19:58:08 +02:00
(window.__googlesitekit_webpackJsonp=window.__googlesitekit_webpackJsonp||[]).push([[3],{101:function(e,t,n){"use strict";(function(e,r){n.d(t,"c",(function(){return h})),n.d(t,"b",(function(){return E})),n.d(t,"a",(function(){return TourTooltips}));var i=n(5),a=n.n(i),o=n(84),c=n(32),s=n(0),l=n.n(s),u=n(2),d=n(4),g=n(26),f=n(7),m=n(40),p=n(119),b=n(18);function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var h={options:{arrowColor:"#3c7251",backgroundColor:"#3c7251",overlayColor:"rgba(0, 0, 0, 0.6)",textColor:"#fff",zIndex:2e4},spotlight:{border:"2px solid #3c7251",backgroundColor:"#fff"}},O={back:Object(u.__)("Back","google-site-kit"),close:Object(u.__)("Close","google-site-kit"),last:Object(u.__)("Got it","google-site-kit"),next:Object(u.__)("Next","google-site-kit")},E={disableAnimation:!0,styles:{arrow:{length:8,margin:56,spread:16},floater:{filter:"drop-shadow(rgba(60, 64, 67, 0.3) 0px 1px 2px) drop-shadow(rgba(60, 64, 67, 0.15) 0px 2px 6px)"}}},_="feature_tooltip_view",k="feature_tooltip_advance",y="feature_tooltip_return",j="feature_tooltip_dismiss",S="feature_tooltip_complete";function TourTooltips(t){var n=t.steps,i=t.tourID,s=t.gaEventCategory,l=t.callback,u="".concat(i,"-step"),w="".concat(i,"-run"),A=Object(d.useDispatch)(g.b).setValue,N=Object(d.useDispatch)(f.a).dismissTour,C=Object(d.useRegistry)(),T=Object(b.a)(),x=Object(d.useSelect)((function(e){return e(g.b).getValue(u)||0})),D=Object(d.useSelect)((function(e){return e(g.b).getValue(w)&&!1===e(f.a).isTourDismissed(i)}));Object(o.a)((function(){e.document.body.classList.add("googlesitekit-showing-feature-tour","googlesitekit-showing-feature-tour--".concat(i)),A(w,!0)}));var L=n.map((function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({disableBeacon:!0,isFixed:!0,placement:"auto"},e)}));return r.createElement(c.e,{callback:function(t){!function(e){var t=e.index,n=e.action,r=e.lifecycle,i=e.size,a=e.status,o=e.type,l=t+1,u="function"==typeof s?s(T):s;o===c.b.TOOLTIP&&r===c.c.TOOLTIP?Object(m.b)(u,_,l):n===c.a.CLOSE&&r===c.c.COMPLETE?Object(m.b)(u,j,l):n===c.a.NEXT&&a===c.d.FINISHED&&o===c.b.TOUR_END&&i===l&&Object(m.b)(u,S,l),r===c.c.COMPLETE&&a!==c.d.FINISHED&&(n===c.a.PREV&&Object(m.b)(u,y,l),n===c.a.NEXT&&Object(m.b)(u,k,l))}(t);var n=t.action,r=t.index,a=t.status,o=t.step,d=t.type,g=n===c.a.CLOSE,f=!g&&[c.b.STEP_AFTER,c.b.TARGET_NOT_FOUND].includes(d),p=[c.d.FINISHED,c.d.SKIPPED].includes(a),b=g&&d===c.b.STEP_AFTER,v=p||b;if(c.b.STEP_BEFORE===d){var h,O,E=o.target;"string"==typeof o.target&&(E=e.document.querySelector(o.target)),null===(h=E)||void 0===h||null===(O=h.scrollIntoView)||void 0===O||O.call(h,{block:"center"})}f?function(e,t){A(u,e+(t===c.a.PREV?-1:1))}(r,n):v&&(e.document.body.classList.remove("googlesitekit-showing-feature-tour","googlesitekit-showing-feature-tour--".concat(i)),N(i)),l&&l(t,C)},floaterProps:E,locale:O,run:D,stepIndex:x,steps:L,styles:h,tooltipComponent:p.a,continuous:!0,disableOverlayClose:!0,disableScrolling:!0,showProgress:!0})}TourTooltips.propTypes={steps:l.a.arrayOf(l.a.object).isRequired,tourID:l.a.string.isRequired,gaEventCategory:l.a.oneOfType([l.a.string,l.a.func]).isRequired,callback:l.a.func}}).call(this,n(28),n(3))},102:function(e,t,n){"use strict";(function(e){var r=n(0),i=n.n(r),a=n(10),o=n.n(a),c=n(11),s=n(21);function CTA(t){var n=t.title,r=t.headerText,i=t.headerContent,a=t.description,l=t.ctaLink,u=t.ctaLabel,d=t.ctaLinkExternal,g=t.ctaType,f=t.error,m=t.onClick,p=t["aria-label"],b=t.children;return e.createElement("div",{className:o()("googlesitekit-cta",{"googlesitekit-cta--error":f})},(r||i)&&e.createElement("div",{cla
Object(l.__)("<strong>Note:</strong> %s","google-site-kit"),S),{strong:e.createElement("strong",null)}))),e.createElement(u.DialogFooter,null,e.createElement(u.Button,{className:"mdc-dialog__cancel-button",onClick:f,disabled:C,tertiary:!0},Object(l.__)("Cancel","google-site-kit")),I?e.createElement(u.Button,{href:I,onClick:_,target:"_blank",danger:A},j):e.createElement(u.SpinnerButton,{onClick:_,danger:A,disabled:C,isSaving:C},j||Object(l.__)("Disconnect","google-site-kit"))))}ModalDialog.displayName="Dialog",ModalDialog.propTypes={className:i.a.string,dialogActive:i.a.bool,handleDialog:i.a.func,handleConfirm:i.a.func.isRequired,onOpen:i.a.func,onClose:i.a.func,title:i.a.string,confirmButton:i.a.string,danger:i.a.bool,small:i.a.bool,medium:i.a.bool,buttonLink:i.a.string},t.a=ModalDialog}).call(this,n(3))},143:function(e,t,n){"use strict";(function(e){var r=n(0),i=n.n(r),a=n(10),o=n.n(a),c=n(42),s=n(2),l=n(21),u=n(39);function SourceLink(t){var n=t.name,r=t.href,i=t.className,a=t.external;return Object(u.a)()?null:e.createElement("div",{className:o()("googlesitekit-source-link",i)},Object(c.a)(Object(s.sprintf)(/* translators: %s: source link */
Object(s.__)("Source: %s","google-site-kit"),"<a>".concat(n,"</a>")),{a:e.createElement(l.a,{key:"link",href:r,external:a})}))}SourceLink.propTypes={name:i.a.string,href:i.a.string,className:i.a.string,external:i.a.bool},SourceLink.defaultProps={name:"",href:"",className:"",external:!1},t.a=SourceLink}).call(this,n(3))},150:function(e,t,n){"use strict";var r=n(1),i=Object(r.createContext)(!1);t.a=i},152:function(e,t,n){"use strict";n.d(t,"d",(function(){return r})),n.d(t,"e",(function(){return i})),n.d(t,"j",(function(){return a})),n.d(t,"a",(function(){return o})),n.d(t,"g",(function(){return c})),n.d(t,"k",(function(){return s})),n.d(t,"c",(function(){return l})),n.d(t,"b",(function(){return u})),n.d(t,"h",(function(){return d})),n.d(t,"f",(function(){return g})),n.d(t,"i",(function(){return f})),n.d(t,"l",(function(){return m})),n.d(t,"n",(function(){return p})),n.d(t,"r",(function(){return b})),n.d(t,"m",(function(){return v})),n.d(t,"p",(function(){return h})),n.d(t,"q",(function(){return O})),n.d(t,"o",(function(){return E})),n.d(t,"t",(function(){return _})),n.d(t,"s",(function(){return k}));var r="disapproved",i="graylisted",a="pending",o="approved",c="needs-attention",s="ready",l="client-requires-review",u="client-getting-ready",d="none",g="multiple",f="no-client",m="added",p="needs-attention",b="requires-review",v="getting-ready",h="ready",O="ready-no-auto-ads",E="none",_=[r,i,a,o],k=function(e){return e===i||e===a}},153:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return StoreErrorNotices}));var r=n(0),i=n.n(r),a=n(4),o=n(59),c=n(19),s=n(34),l=n(177);function StoreErrorNotices(t){var n=t.hasButton,r=void 0!==n&&n,i=t.moduleSlug,u=t.storeName,d=Object(a.useSelect)((function(e){return e(u).getErrors()})),g=Object(a.useSelect)((function(e){return e(c.a).getModule(i)})),f=[];return d.filter((function(e){return!(!(null==e?void 0:e.message)||f.includes(e.message))&&(f.push(e.message),!0)})).map((function(t,n){var i=t.message;return Object(s.e)(t)&&(i=Object(l.a)(i,g)),e.createElement(o.a,{key:n,error:t,hasButton:r,storeName:u,message:i})}))}StoreErrorNotices.propTypes={hasButton:i.a.bool,storeName:i.a.string.isRequired,moduleSlug:i.a.string}}).call(this,n(3))},155:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Notification}));var r=n(14),i=n.n(r),a=n(0),o=n.n(a),c=n(1),s=n(4),l=n(304),u=n(171),d=n(69),g=n(41);function Notification(t){var n=t.id,r=t.className,a=t.gaTrackingEventArgs,o=t.children,f=t.onView,m=Object(c.useRef)(),p=Object(u.a)(n),b=Object(d.a)(n,null==a?void 0:a.category,{viewAction:null==a?void 0:a.viewAction}),v=Object(c.useState)(!1),h=i()(v,2),O=h[0],E=h[1],_=Object(s.useSelect)((function(e){return e(g.a).getNotificationSeenDates(n)})),k=Object(s.useDispatch)(g.a).dismissNotification;return Object(c.useEffect)((function(){!O&&p&&(b.view(null==a?void 0:a.label,null==a?void 0:a.value),null==f||f(),E(!0)),(null==_?void 0:_.length)>=3&&k(n,{skipHidingFromQueue:!0})}),[p,b,O,a,f,_,k,n]),e.createElement("section",{id:n,ref:m,className:r},o,!p&&e.createElement(l.a,{id:n,observeRef:m,threshold:.5}))}Notification.propTypes={id:o.a.string,className:o.a.string,gaTrackingEventArgs:o.a.shape({category:o.a.string,viewAction:o.a.string,label:o.a.string,value:o.a.string}),children:o.a.node,onView:o.a.func}}).call(this,n(3))},159:function(e,t,n){"use strict";var r=n(1);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var a=r.createElement("g",{fill:"none",fillRule:"evenodd"},r.createElement("path",{d:"M2.253 12.252l7.399 5.658A13.055 13.055 0 009 22c0 1.43.229 2.805.652 4.09l-7.4 5.658A22.02 22.02 0 010 22c0-3.506.81-6.814 2.253-9.748z",fill:"#FBBC05"}),r.createElement("path",{d:"M9.652 17.91l-7.4-5.658A21.935 21.935 0 0122 0c5.6 0 10.6 2.1 14.5 5.5l-6.4 6.4C27.9 10.1 25.1 9 22 9c-5.77 0-10.64 3.725-12.348 8.91z",fill:"#EA4335"}),r.createElement("path",{d:"M2.25 31.742l7.396-5.67A12.975 12.975 0 0022 35c6.1 0 10.7-3.1
Object(r.__)("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"),l)),d&&d.login&&(f=Object(r.sprintf)(/* translators: %s: owner name */
Object(r.__)('This service was originally connected by the administrator "%s" — you can contact them for more information.',"google-site-kit"),d.login)),f||(f=Object(r.__)("This service was originally connected by an administrator — you can contact them for more information.","google-site-kit")),"".concat(g," ").concat(f)}},178:function(e,t,n){"use strict";var r=n(1),i=n(61),a=Object(r.createContext)(i.a);t.a=a},18:function(e,t,n){"use strict";var r=n(1),i=n(65);t.a=function(){return Object(r.useContext)(i.b)}},181:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return GenericErrorHandlerActions}));var r=n(0),i=n.n(r),a=n(2),o=n(21),c=n(202);function GenericErrorHandlerActions(t){var n=t.message,r=t.componentStack;return e.createElement("div",{className:"googlesitekit-generic-error-handler-actions"},e.createElement(c.a,{message:n,componentStack:r}),e.createElement(o.a,{href:"https://wordpress.org/support/plugin/google-site-kit/",external:!0},Object(a.__)("Report this problem","google-site-kit")))}GenericErrorHandlerActions.propTypes={message:i.a.string,componentStack:i.a.string}}).call(this,n(3))},182:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(24),i=function(e){return r.f.includes(e)}},188:function(e,t,n){"use strict";(function(e){function Title(t){var n=t.title;return e.createElement("h3",{className:"googlesitekit-heading-2 googlesitekit-publisher-win__title"},n)}n.d(t,"a",(function(){return Title}))}).call(this,n(3))},189:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Description}));var r=n(0),i=n.n(r),a=n(1),o=n(9),c=n(59);function Description(t){var n=t.className,r=void 0===n?"googlesitekit-publisher-win__desc":n,i=t.text,s=t.learnMoreLink,l=t.errorText,u=t.children;return e.createElement(a.Fragment,null,e.createElement("div",{className:r},e.createElement("p",null,e.createElement("span",{dangerouslySetInnerHTML:Object(o.F)(i,{ALLOWED_TAGS:["strong","em","br","a"],ALLOWED_ATTR:["href"]})})," ",s)),l&&e.createElement(c.a,{message:l}),u)}Description.propTypes={className:i.a.string,text:i.a.string,learnMoreLink:i.a.node,errorText:i.a.string,children:i.a.node}}).call(this,n(3))},19:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));var r="core/modules",i="insufficient_module_dependencies"},190:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return LoadingWrapper}));var r=n(5),i=n.n(r),a=n(22),o=n.n(a),c=n(0),s=n.n(c),l=n(48);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function LoadingWrapper(t){var n=t.loading,r=t.children,i=o()(t,["loading","children"]);return n?e.createElement(l.a,i):r}LoadingWrapper.propTypes=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({loading:s.a.bool,children:s.a.node},l.a.propTypes)}).call(this,n(3))},195:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ModuleIcon}));var r=n(20),i=n.n(r),a=n(22),o=n.n(a),c=n(0),s=n.n(c),l=n(4),u=n(19);function ModuleIcon(t){var n=t.slug,r=t.size,a=o()(t,["slug","size"]),c=Object(l.useSelect)((function(e){return e(u.a).getModuleIcon(n)}));return c?e.createElement(c,i()({width:r,height:r},a)):null}ModuleIcon.propTypes={slug:s.a.string.isRequired,size:s.a.number},ModuleIcon.defaultProps={size:33}}).call(this,n(3))},199:function(e,t,n){"use strict";(function(e){var r=n(52),i=n.n(r),a=n(53),o=n.n(a),c=n(81),s=n.n(c),l=n(82),u=n.n(l),d=n(55),g=n.n(d),f=n(0),m=n.n(f),p=n(10),b=n.n(p),v=n(1),h=n(343),O=n(344);function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("fun
Object(g.__)("Google Account for %1$s (Email: %2$s)","google-site-kit"),o,n)),o&&!n&&(G=Object(g.sprintf)(/* translators: Account info text. 1: User's (full) name. */
Object(g.__)("Google Account for %1$s","google-site-kit"),o)),!o&&n&&(G=Object(g.sprintf)(/* translators: Account info text. 1: User's email address. */
Object(g.__)("Google Account (Email: %1$s)","google-site-kit"),n)),r.createElement(d.Fragment,null,r.createElement("div",{ref:H,className:"googlesitekit-user-selector googlesitekit-dropdown-menu googlesitekit-dropdown-menu__icon-menu mdc-menu-surface--anchor"},r.createElement(p.Button,{disabled:x,ref:F,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:q,icon:!!i&&r.createElement("i",{className:"mdc-button__icon mdc-button__account","aria-hidden":"true"},r.createElement("img",{className:"mdc-button__icon--image",src:i,alt:Object(g.__)("User Avatar","google-site-kit")})),"aria-haspopup":"menu","aria-expanded":B,"aria-controls":"user-menu","aria-label":x?void 0:Object(g.__)("Account","google-site-kit"),tooltipEnterDelayInMS:500,customizedTooltip:x?null:r.createElement("span",{"aria-label":G},r.createElement("strong",null,Object(g.__)("Google Account","google-site-kit")),r.createElement("br",null),r.createElement("br",null),o,o&&r.createElement("br",null),n),text:!0,tooltip:!0}),r.createElement(p.Menu,{className:"googlesitekit-user-menu",menuOpen:B,onSelected:Y,id:"user-menu"},r.createElement("li",null,r.createElement(E.a,null)),!!t&&r.createElement("li",{id:"manage-sites",className:"mdc-list-item",role:"menuitem"},r.createElement(_.a,{icon:r.createElement(y.a,{width:"22"}),label:Object(g.__)("Manage Sites","google-site-kit")})),r.createElement("li",{id:"disconnect",className:"mdc-list-item",role:"menuitem"},r.createElement(_.a,{icon:r.createElement(k.a,{width:"22"}),label:Object(g.__)("Disconnect","google-site-kit")})))),r.createElement(O.a,null,r.createElement(b.a,{dialogActive:R,handleConfirm:X,handleCancel:W,onClose:W,title:Object(g.__)("Disconnect","google-site-kit"),subtitle:Object(g.__)("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:Object(g.__)("Disconnect","google-site-kit"),danger:!0,small:!0})))):null}}).call(this,n(28),n(3))},282:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Details}));var r=n(2),i=n(4),a=n(7);function Details(){var t=Object(i.useSelect)((function(e){return e(a.a).getPicture()})),n=Object(i.useSelect)((function(e){return e(a.a).getFullName()})),o=Object(i.useSelect)((function(e){return e(a.a).getEmail()}));return e.createElement("div",{className:"googlesitekit-user-menu__details","aria-label":Object(r.__)("Google account","google-site-kit")},!!t&&e.createElement("img",{className:"googlesitekit-user-menu__details-avatar",src:t,alt:""}),e.createElement("div",{className:"googlesitekit-user-menu__details-info"},e.createElement("p",{className:"googlesitekit-user-menu__details-info__name"},n),e.createElement("p",{className:"googlesitekit-user-menu__details-info__email","aria-label":Object(r.__)("Email","google-site-kit")},o)))}}).call(this,n(3))},283:function(e,t,n){"use strict";var r=n(1);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var a=r.createElement("path",{d:"M6.83 2H20a2 2 0 012 2v12c0 .34-.09.66-.23.94L20 15.17V6h-9.17l-4-4zm13.66 19.31L17.17 18H4a2 2 0 01-2-2V4c0-.34.08-.66.23-.94L.69 1.51 2.1.1l19.8 19.8-1.41 1.41zM15.17 16l-10-10H4v10h11.17z",fill:"currentColor"});t.a=function SvgDisconnect(e){return r.createElement("svg",i({viewBox:"0 0 22 22",fill:"none"},e),a)}},284:function(e,t,n){"use strict";var r=n(1);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var a=r.createElement("path",{d:"M20 0H2C.9 0 0 .9 0 2v12c0 1.1.9 2 2 2h5v2h8v-2h5c1.1 0 2-.9 2-2V2c0-1.1-.9-2-2-2zm0 14H2V2h18v12zm-2-9H7v2h11V5zm0 4H7v2h11V9zM6 5H4v2h2V5zm0 4H4v2h2V9z",fill:"currentColor
Object(o.__)("Shared by <strong>%s</strong>","google-site-kit"),d.login),{strong:e.createElement("strong",{title:d.login})})))}Service.propTypes={module:i.a.string.isRequired}}).call(this,n(3))},299:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Tracking}));var r=n(42),i=n(2),a=n(223),o=n(18);function Tracking(){var t=Object(o.a)();return e.createElement("li",{className:"googlesitekit-view-only-menu__list-item"},e.createElement("p",null,Object(r.a)(Object(i.__)("Thanks for using Site Kit!<br />Help us make it even better","google-site-kit"),{br:e.createElement("br",null)})),e.createElement(a.a,{trackEventCategory:"".concat(t,"_headerbar_viewonly"),alignCheckboxLeft:!0}))}}).call(this,n(3))},30:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r="core/forms"},300:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return LegacyNotifications}));var r=n(1),i=n(4),a=n(19),o=n(7),c=n(301),s=n(308),l=n(39),u=n(54),d=n(67),g=n(310);function LegacyNotifications(){var t=Object(l.a)(),n=Object(u.c)(),f=Object(i.useSelect)((function(e){return e(o.a).isAuthenticated()})),m=Object(i.useSelect)((function(e){return e(a.a).isModuleActive(d.d)}));return e.createElement(r.Fragment,null,e.createElement(g.a,null),!t&&n===u.b&&e.createElement(r.Fragment,null,m&&e.createElement(s.a,null),f&&e.createElement(c.a,null)))}}).call(this,n(3))},301:function(e,t,n){"use strict";(function(e){var r=n(14),i=n.n(r),a=n(1),o=n(4),c=n(13),s=n(7),l=n(41),u=n(302),d=n(51);t.a=function CoreSiteBannerNotifications(){var t=Object(a.useState)(!1),n=i()(t,2),r=n[0],g=n[1],f=Object(a.useState)(!1),m=i()(f,2),p=m[0],b=m[1],v=Object(a.useRef)(Date.now()),h=Object(o.useSelect)((function(e){return e(c.c).isUsingProxy()&&!1===e(s.a).areSurveysOnCooldown()?e(s.a).getCurrentSurvey():null})),O=Object(a.useState)([]),E=i()(O,2),_=E[0],k=E[1],y=Object(o.useDispatch)(l.a).registerNotification,j=Object(o.useSelect)((function(e){return e(c.c).getNotifications()}));return Object(a.useEffect)((function(){var e=setTimeout((function(){p||g(!0)}),5e3);return function(){clearTimeout(e)}}),[p]),Object(a.useEffect)((function(){Math.floor((Date.now()-v.current)/1e3)<5&&h&&b(!0)}),[v,h,b]),Object(a.useEffect)((function(){r&&!p&&(null==j||j.forEach((function(t){_.includes(t.id)||(y(t.id,{Component:function Component(){return e.createElement(u.a,t)},priority:t.priority,areaSlug:d.c.DASHBOARD_TOP,isDismissible:t.isDismissible}),k((function(e){return e.push(t.id),e})))})))}),[p,j,y,_,r]),null}}).call(this,n(3))},302:function(e,t,n){"use strict";(function(e){var r=n(0),i=n.n(r),a=n(303),o=n(305),c=n(189),s=n(306),l=n(21);function NotificationFromServer(t){var n=t.id,r=t.title,i=t.content,u=t.ctaLabel,d=t.ctaTarget,g=t.ctaURL,f=t.dismissible,m=t.dismissLabel,p=t.learnMoreLabel,b=t.learnMoreURL;return e.createElement(a.a,{className:"googlesitekit-notification-from-server",id:n},e.createElement(o.a,{title:r,description:e.createElement(c.a,{learnMoreLink:e.createElement(l.a,{href:b,external:!0},p),text:i}),actions:e.createElement(s.a,{id:n,ctaLabel:u,ctaURL:g,ctaTarget:d,dismissLabel:f&&m?m:void 0,dismissExpires:1,dismissOnCTAClick:!0})}))}NotificationFromServer.propTypes={id:i.a.string.isRequired,title:i.a.string.isRequired,content:i.a.node,ctaLabel:i.a.string,ctaTarget:i.a.string,ctaURL:i.a.string,dismissible:i.a.bool,dismissLabel:i.a.string,learnMoreLabel:i.a.string,learnMoreURL:i.a.string},t.a=NotificationFromServer}).call(this,n(3))},303:function(e,t,n){"use strict";var r=n(155);n.d(t,"a",(function(){return r.a}))},304:function(e,t,n){"use strict";n.d(t,"a",(function(){return ViewedStateObserver}));var r=n(0),i=n.n(r),a=n(1),o=n(4),c=n(26),s=n(41),l=n(255),u=n(171);function ViewedStateObserver(e){var t=e.id,n=e.observeRef,r=e.threshold,i=Object(l.a)(n,{threshold:r}),d=Object(o.useDispatch)(c.b).setValue,g=Object(o.useDispatch)(s.a).markNotificationSeen,f=!!(null==i?void 0:i.isIntersecting),m=Object(u.a)(t),p=Object(a.useRef)(),b=function(){p.current&&clearTimeout(p.current)};return Object(a.useEffect)((function(){return!m&&f?(b(),p.curre
Object(a.__)("%1$s. <Link><Strong>%2$s</Strong></Link>","google-site-kit"),u,Object(a.__)("Get help","google-site-kit")),{Link:e.createElement(c.a,{href:r,trailingIcon:e.createElement(s.a,{width:15,height:15}),external:!0,hideExternalIndicator:!0}),Strong:e.createElement("strong",null)}),hideIcon:!0}):null}AdBlockerWarningMessage.propTypes={getHelpLink:i.a.string,warningMessage:i.a.string}}).call(this,n(3))},418:function(e,t,n){"use strict";var r=n(1);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var a=r.createElement("path",{d:"M4.5 1.5H3a2 2 0 00-2 2v7a2 2 0 002 2h7a2 2 0 002-2V9M7 1.5h5v5M5 8.5L11.5 2",stroke:"currentColor",strokeWidth:1.5});t.a=function SvgExternalRounded(e){return r.createElement("svg",i({viewBox:"0 0 13 14",fill:"none"},e),a)}},429:function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return d})),n.d(t,"a",(function(){return g})),n.d(t,"d",(function(){return f})),n.d(t,"c",(function(){return AutoAdExclusionSwitches}));var r,i=n(5),a=n.n(i),o=n(1),c=n(2),s=n(4),l=n(11),u=n(31),d="loggedinUsers",g="contentCreators",f=(r={},a()(r,d,Object(c.__)("All logged-in users","google-site-kit")),a()(r,g,Object(c.__)("Users who can write posts","google-site-kit")),r);function AutoAdExclusionSwitches(){var t,n=Object(s.useSelect)((function(e){return e(u.l).getAutoAdsDisabled()})),r=Object(s.useDispatch)(u.l).setAutoAdsDisabled;t=n&&n.includes(d)?Object(c.__)("Ads will not be displayed for all logged-in users","google-site-kit"):n&&n.includes(g)?Object(c.__)("Ads will not be displayed for users that can write posts","google-site-kit"):Object(c.__)("Ads will be displayed for all users","google-site-kit");var i=Object(o.useCallback)((function(e,t){var i=t?n.concat(e):n.filter((function(t){return t!==e}));r(i)}),[n,r]),a=Object(o.useCallback)((function(e){var t=e.target.checked;i(g,t)}),[i]),m=Object(o.useCallback)((function(e){var t=e.target.checked;i(d,t)}),[i]);return Array.isArray(n)?e.createElement("fieldset",{className:"googlesitekit-analytics-auto-ads-disabled"},e.createElement("legend",{className:"googlesitekit-setup-module__text"},Object(c.__)("Exclude from Ads","google-site-kit")),e.createElement("div",{className:"googlesitekit-settings-module__inline-items"},e.createElement("div",{className:"googlesitekit-settings-module__inline-item"},e.createElement(l.Switch,{label:f[d],checked:n.includes(d),onClick:m,hideLabel:!1})),!n.includes(d)&&e.createElement("div",{className:"googlesitekit-settings-module__inline-item"},e.createElement(l.Switch,{label:f[g],checked:n.includes(g),onClick:a,hideLabel:!1}))),e.createElement("p",null,t)):null}}).call(this,n(3))},43:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));var r="_googlesitekitDataLayer",i="data-googlesitekit-gtag"},432:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return SetupUseSnippetSwitch}));var r=n(1),i=n(2),a=n(4),o=n(31),c=n(409),s=n(172);function SetupUseSnippetSwitch(){var t,n,l=Object(a.useSelect)((function(e){return e(o.l).getOriginalUseSnippet()})),u=Object(a.useSelect)((function(e){return e(o.l).getExistingTag()})),d=Object(a.useSelect)((function(e){return e(o.l).getClientID()})),g=Object(a.useDispatch)(o.l),f=g.setUseSnippet,m=g.saveSettings,p=Boolean(u);if(Object(r.useEffect)((function(){p&&(f(!1),m())}),[p,m,f]),l&&!u||void 0===u||void 0===l)return null;var b=Object(i.__)("Make sure to remove the existing AdSense code to avoid conflicts with the code placed by Site Kit","google-site-kit");return u===d?(n=Object(i.__)("Youve already got an AdSense code on your site for this account. We recommend you use Site Kit to place the code to get the most out of AdSense.","google-site-kit"),t="".concat(n," ").concat(b)):u?(n=Object(i.sprintf)(/* translators: 1: existing account ID, 2: current account ID */
Object(i.__)("Site Kit detected AdSense code for a different account %1$s on your site. In order to configure AdSense for your current account %2$s, we recommend you use Site Kit to place the code instead.","google-site-kit"),Object(c.a)(u),Object(c.a)(d)),t="".concat(n," ").concat(b)):t=b,e.createElement(s.e,{checkedMessage:t,uncheckedMessage:n,saveOnChange:!0})}}).call(this,n(3))},447:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i}));var r=n(1);function i(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Object(r.useEffect)((function(){var r,i=!1,a=function(){r=e.setTimeout((function(){i=!0}),n)},o=function(){e.clearTimeout(r),i&&(i=!1,t())};return e.addEventListener("focus",o),e.addEventListener("blur",a),function(){e.removeEventListener("focus",o),e.removeEventListener("blur",a),e.clearTimeout(r)}}),[n,t])}}).call(this,n(28))},48:function(e,t,n){"use strict";(function(e){var r=n(5),i=n.n(r),a=n(0),o=n.n(a),c=n(10),s=n.n(c),l=n(23);function PreviewBlock(t){var n,r,a=t.className,o=t.width,c=t.height,u=t.shape,d=t.padding,g=t.smallWidth,f=t.smallHeight,m=t.tabletWidth,p=t.tabletHeight,b=t.desktopWidth,v=t.desktopHeight,h=Object(l.e)(),O={width:(n={},i()(n,l.b,g),i()(n,l.c,m),i()(n,l.a,b),i()(n,l.d,b),n),height:(r={},i()(r,l.b,f),i()(r,l.c,p),i()(r,l.a,v),i()(r,l.d,b),r)};return e.createElement("div",{className:s()("googlesitekit-preview-block",a,{"googlesitekit-preview-block--padding":d}),style:{width:O.width[h]||o,height:O.height[h]||c}},e.createElement("div",{className:s()("googlesitekit-preview-block__wrapper",{"googlesitekit-preview-block__wrapper--circle":"circular"===u})}))}PreviewBlock.propTypes={className:o.a.string,width:o.a.string,height:o.a.string,shape:o.a.string,padding:o.a.bool,smallWidth:o.a.string,smallHeight:o.a.string,tabletWidth:o.a.string,tabletHeight:o.a.string,desktopWidth:o.a.string,desktopHeight:o.a.string},PreviewBlock.defaultProps={className:void 0,width:"100px",height:"100px",shape:"square",padding:!1,smallWidth:void 0,smallHeight:void 0,tabletWidth:void 0,tabletHeight:void 0,desktopWidth:void 0,desktopHeight:void 0},t.a=PreviewBlock}).call(this,n(3))},49:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return a}));var r={BOXES:"boxes",COMPOSITE:"composite"},i={QUARTER:"quarter",HALF:"half",FULL:"full"},a="core/widgets"},51:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"e",(function(){return a})),n.d(t,"c",(function(){return o})),n.d(t,"d",(function(){return c}));var r="warning-notification-gtg",i="gtg-setup-cta",a={ERROR_HIGH:30,ERROR_LOW:60,WARNING:100,INFO:150,SETUP_CTA_HIGH:150,SETUP_CTA_LOW:200},o={HEADER:"notification-area-header",DASHBOARD_TOP:"notification-area-dashboard-top",OVERLAYS:"notification-area-overlays"},c={DEFAULT:"default",SETUP_CTAS:"setup-ctas"}},534:function(e,t,n){"use strict";var r=n(1);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var a=r.createElement("g",{fill:"none",fillRule:"evenodd"},r.createElement("path",{d:"M107.91 41.72c7.73-13.22 3.14-30.12-10.24-37.75C84.29-3.66 67.18.87 59.45 14.09c-.35.59-.66 1.2-.96 1.81l-26.1 44.66a27.172 27.172 0 00-1.6 2.75L3.67 110.1l48.45 27.16 26.98-46.4c.29-.44.57-.89.84-1.35.27-.46.52-.93.76-1.39l26.11-44.67c.38-.57.76-1.14 1.1-1.73z",fill:"#FBBC04"}),r.createElement("path",{d:"M52.34 137.11c-7.68 13.43-25 18.38-38.31 10.62-13.31-7.76-18.02-24.57-10.34-38s24.86-18.39 38.16-10.64c13.3 7.75 18.18 24.59 10.49 38.02z",fill:"#34A853"}),r.createElement("path",{d:"M158.79 51.86c-13.23-7.62-30.15-3.1-37.79 10.1l-27.66 47.8c-7.64 13.2-3.11 30.08 10.13 37.7 13.23 7.62 30.15 3.1 37.79-10.1l27.66-47.8c7.63-13.2 3.1-30.08-10.13-37.7z",fill:"#4285F4"}));t.a=function SvgAdsense(e){return r.createElement("svg",i({viewBox:"0 0 173 152"},e),a)}},54:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(f
Object(o.__)("Invalid site state %s","google-site-kit"),p),skipRetryMessage:!0})}}SetupAccountSite.propTypes={site:i.a.shape({autoAdsEnabled:i.a.bool,state:i.a.string}).isRequired,finishSetup:i.a.func}}).call(this,n(3))},559:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return SetupAccountNoClient}));var r=n(1),i=n(42),a=n(2),o=n(11),c=n(224),s=n(172),l=n(9),u=n(18);function SetupAccountNoClient(){var t=Object(u.a)(),n=Object(r.useCallback)((function(){Object(l.I)("".concat(t,"_adsense"),"apply_afc")}),[t]);return e.createElement(r.Fragment,null,e.createElement("h3",{className:"googlesitekit-heading-4 googlesitekit-setup-module__title"},Object(a.__)("Looks like you need to upgrade your AdSense account","google-site-kit")),e.createElement(s.d,null),e.createElement("p",null,Object(i.a)(Object(a.__)("To start using AdSense on your website, you need to upgrade your account to add “AdSense for content”. <a>Learn more</a>","google-site-kit"),{a:e.createElement(c.a,{path:"/adsense/answer/6023158","aria-label":Object(a.__)("Learn more about updating your AdSense account","google-site-kit"),external:!0})})),e.createElement("div",{className:"googlesitekit-setup-module__action"},e.createElement(o.Button,{href:"https://www.google.com/adsense",target:"_blank","aria-label":Object(a.__)("Learn more about updating your AdSense account","google-site-kit"),onClick:n},Object(a.__)("Apply now","google-site-kit"))))}}).call(this,n(3))},560:function(e,t,n){"use strict";(function(e,r){n.d(t,"a",(function(){return SetupAccountCreateSite}));var i=n(1),a=n(2),o=n(4),c=n(11),s=n(31),l=n(172),u=n(9),d=n(18);function SetupAccountCreateSite(){var t=Object(d.a)(),n=Object(o.useSelect)((function(e){return e(s.l).getServiceAccountManageSiteURL()})),g=Object(i.useCallback)((function(r){r.preventDefault(),Object(u.I)("".concat(t,"_adsense"),"create_site"),e.open(n,"_blank")}),[n,t]);return r.createElement(i.Fragment,null,r.createElement("h3",{className:"googlesitekit-heading-4 googlesitekit-setup-module__title"},Object(a.__)("Add this site to your AdSense account","google-site-kit")),r.createElement(l.d,null),r.createElement("p",null,Object(a.__)("Weve detected that you havent added this site to your AdSense account yet","google-site-kit")),r.createElement("div",{className:"googlesitekit-setup-module__action"},r.createElement(c.Button,{onClick:g,href:n},Object(a.__)("Add site to AdSense","google-site-kit"))))}}).call(this,n(28),n(3))},561:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return SetupAccountPendingTasks}));var r=n(1),i=n(2),a=n(4),o=n(11),c=n(432),s=n(31),l=n(172),u=n(9),d=n(18);function SetupAccountPendingTasks(){var t=Object(d.a)(),n=Object(r.useCallback)((function(){Object(u.I)("".concat(t,"_adsense"),"review_tasks")}),[t]),g=Object(a.useSelect)((function(e){return e(s.l).getServiceAccountURL()}));return e.createElement(r.Fragment,null,e.createElement("h3",{className:"googlesitekit-heading-4 googlesitekit-setup-module__title"},Object(i.__)("Your account isnt ready to show ads yet","google-site-kit")),e.createElement(l.d,null),e.createElement("p",null,Object(i.__)("You need to fix some things before we can connect Site Kit to your AdSense account","google-site-kit")),e.createElement(c.a,null),e.createElement("div",{className:"googlesitekit-setup-module__action"},e.createElement(o.Button,{onClick:n,href:g},Object(i.__)("Review AdSense account","google-site-kit"))))}}).call(this,n(3))},562:function(e,t,n){"use strict";(function(e,r){n.d(t,"a",(function(){return SetupCreateAccount}));var i=n(6),a=n.n(i),o=n(16),c=n.n(o),s=n(1),l=n(42),u=n(2),d=n(4),g=n(11),f=n(224),m=n(9),p=n(409),b=n(31),v=n(7),h=n(172),O=n(18);function SetupCreateAccount(){var t=Object(O.a)(),n="".concat(t,"_adsense"),i=Object(d.useSelect)((function(e){return e(v.a).getEmail()})),o=Object(d.useSelect)((function(e){return e(b.l).getExistingTag()})),E=Object(d.useSelect)((function(e){return e(b.l).getServiceCreateAccountURL()})),_=Object(s.useCallback)(function(){var t=c()(a.a.mark((function t(r){return a.a.wrap((function(t){for
Object(u.__)("Site Kit detected AdSense code %1$s on your page. We recommend you remove that code or add %2$s as a user to the AdSense account %3$s.","google-site-kit"),o,i,Object(p.a)(o)),!o&&Object(l.a)(Object(u.sprintf)(/* translators: %s: user email address */
Object(u.__)("Already use AdSense? Add %s as a user to an existing AdSense account. <a>Learn more</a>","google-site-kit"),i),{a:r.createElement(f.a,{path:"/adsense/answer/2659101","aria-label":Object(u.__)("Learn more about adding a user to an existing AdSense account","google-site-kit"),external:!0})})))}}).call(this,n(28),n(3))},563:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return SetupSelectAccount}));var r=n(1),i=n(2),a=n(172);function SetupSelectAccount(){return e.createElement(r.Fragment,null,e.createElement("h3",{className:"googlesitekit-heading-4 googlesitekit-setup-module__title"},Object(i.__)("Select your AdSense account","google-site-kit")),e.createElement(a.d,null),e.createElement("p",null,Object(i.__)("Looks like you have multiple AdSense accounts associated with your Google account. Select the account to use with Site Kit below.","google-site-kit")),e.createElement("div",{className:"googlesitekit-setup-module__inputs"},e.createElement(a.a,null)))}}).call(this,n(3))},565:function(e,t,n){"use strict";function r(e){return"string"==typeof e&&/^pub-\d+$/.test(e)}function i(e){return"string"==typeof e&&/^ca-pub-\d+$/.test(e)}n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}))},59:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ErrorNotice}));var r=n(0),i=n.n(r),a=n(1),o=n(2),c=n(115),s=n(4),l=n(34),u=n(35),d=n(9);function ErrorNotice(t){var n,r=t.className,i=t.error,g=t.hasButton,f=void 0!==g&&g,m=t.storeName,p=t.message,b=void 0===p?i.message:p,v=t.noPrefix,h=void 0!==v&&v,O=t.skipRetryMessage,E=t.hideIcon,_=void 0!==E&&E,k=Object(s.useDispatch)(),y=Object(s.useSelect)((function(e){return m?e(m).getSelectorDataForError(i):null})),j=Object(a.useCallback)((function(){k(y.storeName).invalidateResolution(y.name,y.args)}),[k,y]);if(!b||Object(l.f)(i))return null;var S=f&&Object(l.d)(i,y),w=b;f||O||(w=Object(o.sprintf)(/* translators: %s: Error message from Google API. */
Object(o.__)("%s (Please try again.)","google-site-kit"),w)),h||(w=Object(o.sprintf)(/* translators: $%s: Error message */
Object(o.__)("Error: %s","google-site-kit"),w));var A=null==i||null===(n=i.data)||void 0===n?void 0:n.reconnectURL;A&&Object(c.a)(A)&&(w=Object(o.sprintf)(/* translators: 1: Original error message 2: Reconnect URL */
Object(o.__)('%1$s To fix this, <a href="%2$s">redo the plugin setup</a>.',"google-site-kit"),w,A));return e.createElement(u.a,{className:r,type:u.a.TYPES.ERROR,description:e.createElement("span",{dangerouslySetInnerHTML:Object(d.F)(w,{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href"]})}),ctaButton:S?{label:Object(o.__)("Retry","google-site-kit"),onClick:j}:void 0,hideIcon:_})}ErrorNotice.propTypes={className:i.a.string,error:i.a.shape({message:i.a.string}),hasButton:i.a.bool,storeName:i.a.string,message:i.a.string,noPrefix:i.a.bool,skipRetryMessage:i.a.bool,hideIcon:i.a.bool}}).call(this,n(3))},602:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return WebStoriesAdUnitSelect}));var r=n(1),i=n(2),a=n(11),o=n(4),c=n(31);function WebStoriesAdUnitSelect(){var t=Object(o.useSelect)((function(e){return e(c.l).getAccountID()})),n=Object(o.useSelect)((function(e){return e(c.l).getClientID()})),s=Object(o.useSelect)((function(e){return e(c.l).getWebStoriesAdUnit()})),l=Object(o.useSelect)((function(e){return e(c.l).getAdUnits(t,n)})),u=Object(o.useSelect)((function(e){return e(c.l).hasFinishedResolution("getAdUnits",[t,n])})),d=Object(o.useDispatch)(c.l).setWebStoriesAdUnit,g=Object(r.useCallback)((function(e,t){var n=t.dataset.value;s!==n&&d(n)}),[s,d]);return u?e.createElement(a.Select,{className:"googlesitekit-adsense__select-field",label:Object(i.__)("Web Stories Ad Unit","google-site-kit"),value:s,onEnhancedChange:g,enhanced:!0,outlined:!0},e.createElement(a.Option,{value:""},Object(i.__)("Select ad unit","google-site-kit")),(l||[]).map((function(t){var n=t._id,r=t.displayName;return e.createElement(a.Option,{key:n,value:n},r)}))):e.createElement(a.ProgressBar,{small:!0})}}).call(this,n(3))},603:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return AdSenseConnectCTA}));var r=n(20),i=n.n(r),a=n(6),o=n.n(a),c=n(16),s=n.n(c),l=n(14),u=n.n(l),d=n(222),g=n(0),f=n.n(g),m=n(2),p=n(1),b=n(42),v=n(4),h=n(11),O=n(31),E=n(67),_=n(17),k=n(13),y=n(19),j=n(33),S=n(37),w=n(9),A=n(668),N=n(224),C=n(18);function AdSenseConnectCTA(t){var n=t.onDismissModule,r=Object(v.useDispatch)(j.a).navigateTo,a=Object(v.useDispatch)(y.a).activateModule,c=Object(v.useDispatch)(k.c).setInternalServerError,l=Object(C.a)(),g=Object(p.useRef)(),f=Object(p.useState)(!1),T=u()(f,2),x=T[0],D=T[1],L=Object(d.a)(g,{threshold:.25}),R=!!(null==L?void 0:L.intersectionRatio);Object(p.useEffect)((function(){R&&!x&&(Object(w.I)("".concat(l,"_adsense-cta-widget"),"widget_view"),D(!0))}),[R,l,x]);var I=Object(v.useSelect)((function(e){return e(O.l).getAdminReauthURL()})),M=Object(v.useSelect)((function(e){return e(y.a).isModuleActive(E.d)})),P=Object(v.useSelect)((function(e){return e(y.a).isModuleConnected(E.d)})),B=Object(v.useSelect)((function(e){return!!e(y.a).isFetchingSetModuleActivation(E.d,!0)||!!I&&e(j.a).isNavigatingTo(I)})),z=Object(p.useCallback)(s()(o.a.mark((function e(){var t,n,i;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a(E.d);case 2:if(t=e.sent,n=t.response,!(i=t.error)){e.next=8;break}return c({id:"setup-module-error",description:i.message}),e.abrupt("return",null);case 8:return e.next=10,Object(w.I)("".concat(l,"_adsense-cta-widget"),"activate_module",E.d);case 10:return e.next=12,Object(S.f)("module_setup",E.d,{ttl:300});case 12:r(n.moduleReauthURL);case 13:case"end":return e.stop()}}),e)}))),[a,r,c,l]),H=Object(p.useCallback)((function(){return r(I)}),[I,r]),F=Object(p.useCallback)((function(){Object(w.I)("".concat(l,"_adsense-cta-widget"),"dismiss_widget"),n()}),[n,l]),U={smSize:4,mdSize:4,lgSize:6};return e.createElement("section",{ref:g,className:"googlesitekit-setup__wrapper googlesitekit-setup__wrapper--adsense-connect"},e.createElement(_.e,null,e.createElement(A.a,{hasBeenInView:x}),e.createElement(_.k,null,e.createElement(_.a,U,e.createElement("div",{className:"googlesitekit-setup-module__action"},!M&&e.createElement(h.SpinnerButton,{onClick:z,isSaving:B},Object(m.__)("Connect now","google-site-kit")),M&&!P&&e.createElement(h.SpinnerButton,{onClick:H,isSaving:B},Object(m.__)("Compl
Object(s.__)("Step %1$s of %2$s (upcoming).","google-site-kit"),e,a);case u.a.ACTIVE:return Object(s.sprintf)(/* translators: 1: The number of the current step. 2: The total number of steps. */
Object(s.__)("Step %1$s of %2$s (active).","google-site-kit"),e,a);case u.a.COMPLETED:return Object(s.sprintf)(/* translators: 1: The number of the current step. 2: The total number of steps. */
Object(s.__)("Step %1$s of %2$s (completed).","google-site-kit"),e,a)}}return e.createElement("ol",{className:o()("googlesitekit-stepper",i)},c.Children.map(n,(function(t,n){var i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;return e<r?u.a.COMPLETED:e===r?u.a.ACTIVE:u.a.UPCOMING}(n,r),s=n+1;return e.createElement("li",{className:o()("googlesitekit-stepper__step","googlesitekit-stepper__step--".concat(i),t.props.className)},e.createElement("div",{className:"googlesitekit-stepper__step-progress"},e.createElement("span",{className:"googlesitekit-stepper__step-number",title:d(s,i)},i===u.a.COMPLETED?e.createElement(l.a,null):s),s<a&&e.createElement("div",{className:"googlesitekit-stepper__step-progress-line"})),Object(c.cloneElement)(t,{stepStatus:i}))})))}Stepper.propTypes={children:i.a.node.isRequired,activeStep:i.a.number,className:i.a.string}}).call(this,n(3))},664:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Content}));var r=n(0),i=n.n(r),a=n(17),o=n(665),c=n(23);function Content(t){var n=t.children,r=Object(c.e)(),i=![c.c,c.b].includes(r);return e.createElement(a.e,{className:"googlesitekit-ad-blocking-recovery__content"},e.createElement(a.k,null,e.createElement(a.a,{mdSize:8,lgSize:8},n),i&&e.createElement(a.a,{className:"googlesitekit-ad-blocking-recovery__hero-graphic",lgSize:4},e.createElement(o.a,null))))}Content.propTypes={children:i.a.node}}).call(this,n(3))},665:function(e,t,n){"use strict";var r=n(1);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var a=r.createElement("path",{d:"M22.56 28.885a85.319 85.319 0 018.606-7.899C60.044-2.097 83.903-2.06 116.934 2.153 139.265 5 158.642 18.5 182.13 17.185 205.617 15.871 238.088 7.743 264 9.5c29.5 2 37 5.5 63.227 19.385 24.273 12.85 46.312 35.426 57.388 65.284 18.985 51.177-14.865 143.285-60.259 147.628-32.893 3.148-60.039-33.973-93.239-25.376-20.452 5.297-32.583 27.515-48.362 42.177-18.409 17.107-48.199 16.032-69.755 6.902-20.542-8.699-35.63-25.926-42.338-51.32-5.107-19.338-4.595-38.709-16.86-53.857C36.497 138.947 9.432 134 1.281 94.168c-5.16-25.213 5.942-49.13 21.279-65.283z",fill:"#F3F5F7"}),o=r.createElement("g",{filter:"url(#ad-blocking-recovery-setup_svg__filter0_d_149_3117)"},r.createElement("rect",{x:50.837,y:42.913,width:257.906,height:176.087,rx:14.086,fill:"#fff"}),r.createElement("rect",{x:50.139,y:42.214,width:259.302,height:177.484,rx:14.785,stroke:"#CBD0D3",strokeWidth:1.396})),c=r.createElement("rect",{x:65,y:78.486,width:78,height:126.285,rx:5.282,fill:"#EE92DA"}),s=r.createElement("circle",{cx:104.5,cy:139.528,r:11,stroke:"#fff",strokeWidth:3}),l=r.createElement("path",{d:"M112 132.028l-15.5 15.5",stroke:"#fff",strokeWidth:3}),u=r.createElement("path",{d:"M50.837 56.999c0-7.78 6.307-14.086 14.087-14.086h229.733c7.78 0 14.086 6.306 14.086 14.086v7.258H50.837v-7.258z",fill:"#EBEEF0"}),d=r.createElement("rect",{x:61.509,y:50.027,width:7.115,height:7.115,rx:3.557,fill:"#CBD0D3"}),g=r.createElement("rect",{x:72.181,y:50.027,width:7.115,height:7.115,rx:3.557,fill:"#CBD0D3"}),f=r.createElement("rect",{x:164,y:78.486,width:125.396,height:42.688,rx:5.585,fill:"#EBEEF0"}),m=r.createElement("rect",{x:164,y:129,width:92.49,height:14.229,rx:7.115,fill:"#EBEEF0"}),p=r.createElement("rect",{x:164,y:151,width:108.498,height:5.585,rx:2.793,fill:"#EBEEF0"}),b=r.createElement("rect",{x:164,y:165,width:92.49,height:5.585,rx:2.793,fill:"#EBEEF0"}),v=r.createElement("rect",{x:164,y:179,width:125.396,height:5.585,rx:2.793,fill:"#EBEEF0"}),h=r.createElement("g",{filter:"url(#ad-blocking-recovery-setup_svg__filter1_d_149_3117)"},r.createElement("path",{d:"M199 163c0-6.075 4.925-11 11-11h126c6.075 0 11 4.925 11 11v83.038c0 6.076-4.925 11-11 11H210c-6.075 0-11-4.924-11-11V163z",fill:"#fff"}),r.createElement("path",{d:"M199.5 163c0-5.799 4.701-10.5 10.5-10.5h126c5.799 0 10.5 4.701 10.5 10.5v83.038c0 5.799-4.701 10.5-10.5 10.5H210c-5.799 0-10.5-4.701-10.5-10.5V163z",s
Object(m._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),a?w(a,b(b({},o),{},{unit:"second"})):"",i?w(i,b(b({},o),{},{unit:"minute"})):"",r?w(r,b(b({},o),{},{unit:"hour"})):"").trim()},formatDecimal:function(){var t=Object(m.sprintf)(
// translators: %s: number of seconds with "s" as the abbreviated unit.
Object(m.__)("%ds","google-site-kit"),a);if(0===e)return t;var n=Object(m.sprintf)(
// translators: %s: number of minutes with "m" as the abbreviated unit.
Object(m.__)("%dm","google-site-kit"),i),o=Object(m.sprintf)(
// translators: %s: number of hours with "h" as the abbreviated unit.
Object(m.__)("%dh","google-site-kit"),r);return Object(m.sprintf)(/* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */
Object(m._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),a?t:"",i?n:"",r?o:"").trim()}}},_=function(e){return 1e6<=e?Math.round(e/1e5)/10:1e4<=e?Math.round(e/1e3):1e3<=e?Math.round(e/100)/10:e},k=function(e){var t={minimumFractionDigits:1,maximumFractionDigits:1};return 1e6<=e?Object(m.sprintf)(
// translators: %s: an abbreviated number in millions.
Object(m.__)("%sM","google-site-kit"),w(_(e),e%10==0?{}:t)):1e4<=e?Object(m.sprintf)(
// translators: %s: an abbreviated number in thousands.
Object(m.__)("%sK","google-site-kit"),w(_(e))):1e3<=e?Object(m.sprintf)(
// translators: %s: an abbreviated number in thousands.
Object(m.__)("%sK","google-site-kit"),w(_(e),e%10==0?{}:t)):w(e,{signDisplay:"never",maximumFractionDigits:1})};function y(e){var t={};return"%"===e?t={style:"percent",maximumFractionDigits:2}:"s"===e?t={style:"duration",unitDisplay:"narrow"}:e&&"string"==typeof e?t={style:"currency",currency:e}:Object(d.isPlainObject)(e)&&(t=b({},e)),t}function j(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=Object(d.isFinite)(e)?e:Number(e),Object(d.isFinite)(e)||(console.warn("Invalid number",e,o()(e)),e=0);var n=y(t),r=n.style,i=void 0===r?"metric":r;return"metric"===i?k(e):"duration"===i?v(e,n):"durationISO"===i?h(e):w(e,n)}var S=f()(console.warn),w=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.locale,r=void 0===n?N():n,a=u()(t,["locale"]);try{return new Intl.NumberFormat(r,a).format(e)}catch(t){S("Site Kit numberFormat error: Intl.NumberFormat( ".concat(JSON.stringify(r),", ").concat(JSON.stringify(a)," ).format( ").concat(o()(e)," )"),t.message)}for(var c={currencyDisplay:"narrow",currencySign:"accounting",style:"unit"},s=["signDisplay","compactDisplay"],l={},d=0,g=Object.entries(a);d<g.length;d++){var f=i()(g[d],2),m=f[0],p=f[1];c[m]&&p===c[m]||(s.includes(m)||(l[m]=p))}try{return new Intl.NumberFormat(r,l).format(e)}catch(t){return new Intl.NumberFormat(r).format(e)}},A=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.locale,r=void 0===n?N():n,i=t.style,a=void 0===i?"long":i,o=t.type,c=void 0===o?"conjunction":o;if(Intl.ListFormat){var s=new Intl.ListFormat(r,{style:a,type:c});return s.format(e)}
/* translators: used between list items, there is a space after the comma. */var l=Object(m.__)(", ","google-site-kit");return e.join(l)},N=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e,n=Object(d.get)(t,["_googlesitekitLegacyData","locale"]);if(n){var r=n.match(/^(\w{2})?(_)?(\w{2})/);if(r&&r[0])return r[0].replace(/_/g,"-")}return t.navigator.language}}).call(this,n(28))},88:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i}));var r=n(160),i=n.n(r)()(e)}).call(this,n(28))},89:function(e,t,n){"use strict";(function(e){var r=n(0),i=n.n(r),a=n(10),o=n.n(a);function ChangeArrow(t){var n=t.direction,r=t.invertColor,i=t.width,a=t.height;return e.createElement("svg",{className:o()("googlesitekit-change-arrow","googlesitekit-change-arrow--".concat(n),{"googlesitekit-change-arrow--inverted-color":r}),width:i,height:a,viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M5.625 10L5.625 2.375L9.125 5.875L10 5L5 -1.76555e-07L-2.7055e-07 5L0.875 5.875L4.375 2.375L4.375 10L5.625 10Z",fill:"currentColor"}))}ChangeArrow.propTypes={direction:i.a.string,invertColor:i.a.bool,width:i.a.number,height:i.a.number},ChangeArrow.defaultProps={direction:"up",invertColor:!1,width:9,height:9},t.a=ChangeArrow}).call(this,n(3))},9:function(e,t,n){"use strict";n.d(t,"I",(function(){return i.b})),n.d(t,"J",(function(){return i.c})),n.d(t,"F",(function(){return a.a})),n.d(t,"K",(function(){return a.b})),n.d(t,"H",(function(){return u})),n.d(t,"m",(function(){return d.a})),n.d(t,"B",(function(){return d.d})),n.d(t,"C",(function(){return d.e})),n.d(t,"y",(function(){return d.c})),n.d(t,"r",(function(){return d.b})),n.d(t,"z",(function(){return p})),n.d(t,"j",(function(){return b})),n.d(t,"i",(function(){return v})),n.d(t,"d",(function(){return y})),n.d(t,"c",(function(){return j})),n.d(t,"e",(function(){return S})),n.d(t,"b",(function(){return w})),n.d(t,"a",(function(){return A})),n.d(t,"f",(function(){return N})),n.d(t,"n",(function(){return C})),n.d(t,"w",(function(){return T})),n.d(t,"p",(function(){return x})),n.d(t,"G",(function(){return D})),n.d(t,"s",(function(){return L})),n.d(t,"v",(function(){return R})),n.d(t,"k",(function(){return I})),n.d(t,"o",(function(){return M.b})),n.d(t,"h",(function(){return M.a})),n.d(t,"t",(function(){return P.b})),n.d(t,"q",(function(){return P.a})),n.d(t,"A",(function(){return P.c})),n.d(t,"x",(function(){return B})),n.d(t,"u",(function(){return z})),n.d(t,"E",(function(){return U})),n.d(t,"D",(function(){return V.a})),n.d(t,"g",(function(){return W})),n.d(t,"L",(function(){return G})),n.d(t,"l",(function(){return q}));var r=n(15),i=n(40),a=n(76),o=n(36),c=n.n(o),s=n(103),l=n.n(s),u=function(e){return l()(JSON.stringify(function e(t){var n={};return Object.keys(t).sort().forEach((function(r){var i=t[r];i&&"object"===c()(i)&&!Array.isArray(i)&&(i=e(i)),n[r]=i})),n}(e)))};n(104);var d=n(87);function g(e){return e.replace(new RegExp("\\[([^\\]]+)\\]\\((https?://[^/]+\\.\\w+/?.*?)\\)","gi"),'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>')}function f(e){return"<p>".concat(e.replace(/\n{2,}/g,"</p><p>"),"</p>")}function m(e){return e.replace(/\n/gi,"<br>")}function p(e){for(var t=e,n=0,r=[g,f,m];n<r.length;n++){t=(0,r[n])(t)}return t}var b=function(e){return e=parseFloat(e),isNaN(e)||0===e?[0,0,0,0]:[Math.floor(e/60/60),Math.floor(e/60%60),Math.floor(e%60),Math.floor(1e3*e)-1e3*Math.floor(e)]},v=function(e){var t=e&&!Number.isInteger(e)?new Date(e).getTime():e;return isNaN(t)||!t?0:t},h=n(14),O=n.n(h),E=n(12),_=n.n(E),k=n(2),y="Invalid dateString parameter, it must be a string.",j='Invalid date range, it must be a string with the format "last-x-days".',S=60,w=60*S,A=24*w,N=7*A;function C(){var e=function(e){return Object(k.sprintf)(/* translators: %s: number of days */
Object(k._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 T(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(!Object(r.isString)(e))return!1;var t=e.split("-");if(3!==t.length)return!1;var n=new Date(e);return Object(r.isDate)(n)&&!isNaN(n)}function x(e){_()(Object(r.isDate)(e)&&!isNaN(e),"Date param must construct to a valid date instance or be a valid date instance itself.");var t="".concat(e.getMonth()+1),n="".concat(e.getDate());return[e.getFullYear(),t.length<2?"0".concat(t):t,n.length<2?"0".concat(n):n].join("-")}function D(e){_()(T(e),y);var t=e.split("-"),n=O()(t,3),r=n[0],i=n[1],a=n[2];return new Date(r,i-1,a)}function L(e,t){return x(I(e,t*A))}function R(e){var t=e.split("-");return 3===t.length&&"last"===t[0]&&!Number.isNaN(t[1])&&!Number.isNaN(parseFloat(t[1]))&&"days"===t[2]}function I(e,t){_()(T(e)||Object(r.isDate)(e)&&!isNaN(e),y);var n=T(e)?Date.parse(e):e.getTime();return new Date(n-1e3*t)}var M=n(107),P=n(85);function B(e){var t=parseFloat(e)||0;return!!Number.isInteger(t)&&t>0}function z(e){if("number"==typeof e)return!0;var t=(e||"").toString();return!!t&&!isNaN(t)}var H=n(27),F=n.n(H),U=function(e){return Array.isArray(e)?F()(e).sort():e},V=n(92);function W(e,t){var n=function(e){return"0"===e||0===e};if(n(e)&&n(t))return 0;if(n(e)||Number.isNaN(e))return null;var r=(t-e)/e;return Number.isNaN(r)||!Number.isFinite(r)?null:r}var G=function(e){try{return JSON.parse(e)&&!!e}catch(e){return!1}},q=function(e){if(!e)return"";var t=e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/(\\)/g,"");return Object(r.unescape)(t)}},90:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return d}));var r=n(14),i=n.n(r),a=n(196),o=n(138),c={},s=void 0===e?null:e,l=function(){return[e.innerWidth,e.innerHeight]},u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,t=e.fps,n=e.leading,r=e.initialWidth,u=void 0===r?0:r,d=e.initialHeight,g=void 0===d?0:d,f=Object(a.a)("undefined"==typeof document?[u,g]:l,t,n),m=i()(f,2),p=m[0],b=m[1],v=function(){return b(l)};return Object(o.a)(s,"resize",v),Object(o.a)(s,"orientationchange",v),p},d=function(e){return u(e)[0]}}).call(this,n(28))},92:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(12),i=n.n(r),a=function(e,t){var n=t.dateRangeLength;i()(Array.isArray(e),"report must be an array to partition."),i()(Number.isInteger(n)&&n>0,"dateRangeLength must be a positive integer.");var r=-1*n;return{currentRange:e.slice(r),compareRange:e.slice(2*r,r)}}},94:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return c}));var r=n(23),i=n(120);function a(t,n){var r=document.querySelector(t);if(!r)return 0;var i=r.getBoundingClientRect().top,a=o(n);return i+e.scrollY-a}function o(e){var t=c(e),n=document.querySelectorAll(".googlesitekit-navigation, .googlesitekit-entity-header");return t+=Array.from(n).reduce((function(e,t){return e+t.offsetHeight}),0)}function c(t){var n=0,a=document.querySelector(".googlesitekit-header");return n=!!a&&"sticky"===e.getComputedStyle(a).position?function(e){var t=document.querySelector(".googlesitekit-header");if(t){if(e===r.b)return t.offsetHeight;var n=t.getBoundingClientRect().bottom;return n<0?0:n}return 0}(t):function(e){var t=document.querySelector("#wpadminbar");return t&&e!==r.b?t.offsetHeight:0}(t),(n=Object(i.a)(n))<0?0:n}}).call(this,n(28))},97:function(e,t,n){"use strict";var r=n(1);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var a=r.createElement("path",{d:"M5.825 22l2.325-7.6L2 10h7.6L12 2l2.4 8H22l-6.15 4.4 2.325 7.6L12 17.3 5.825 22z",fill:"currentColor"}