!function(e){function t(t){for(var r,o,i=t[0],u=t[1],l=t[2],d=0,p=[];d<i.length;d++)o=i[d],Object.prototype.hasOwnProperty.call(a,o)&&a[o]&&p.push(a[o][0]),a[o]=0;for(r in u)Object.prototype.hasOwnProperty.call(u,r)&&(e[r]=u[r]);for(s&&s(t);p.length;)p.shift()();return c.push.apply(c,l||[]),n()}function n(){for(var e,t=0;t<c.length;t++){for(var n=c[t],r=!0,i=1;i<n.length;i++){var u=n[i];0!==a[u]&&(r=!1)}r&&(c.splice(t--,1),e=o(o.s=n[0]))}return e}var r={},a={5:0},c=[];function o(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,o),n.l=!0,n.exports}o.m=e,o.c=r,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)o.d(n,r,function(t){return e[t]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="";var i=window.webpackWPML=window.webpackWPML||[],u=i.push.bind(i);i.push=t,i=i.slice();for(var l=0;l<i.length;l++)t(i[l]);var s=u;c.push([1291,0]),n()}({105:function(e,t,n){},1291:function(e,t,n){"use strict";n.r(t);var r=n(0),a=n.n(r),c=n(34),o=n.n(c),i=n(9),u=n.n(i),l=n(529),s=n(16),d=(n(145),n(105),n(1)),p=Object(d.a)("Browser redirect affects Google indexing and search results","sitepress"),f=Object(d.a)("Got it, activate anyway","sitepress"),g=Object(d.a)("Cancel","sitepress"),b=Object(d.a)("When you redirect visitors based on their language, you also redirect Google. Google wants to see your site exactly like visitors see it, including any redirects that you apply.","sitepress"),m=Object(d.a)("It is OK to redirect visitors based on their language, but you need to realize that this feature affects SEO.","sitepress"),h=Object(d.a)("Before proceeding, we recommend that you read these two pages:","sitepress"),y=Object(d.a)("How Browser Language Redirect Affects Google Indexing","sitepress"),v=Object(d.a)("Documentation","sitepress"),w=function(e,t){switch(t.type){case"show":return{accepted:e.accepted,visible:!e.accepted};case"hide":return{accepted:e.accepted,visible:!1};case"accept":return{accepted:!0,visible:!1}}return e},O=function(e){var t=e.config,n=e.onCancel,c=e.setListenersCallback,o=Object(r.useReducer)(w,{accepted:!1,visible:!1}),i=u()(o,2),d=i[0],O=i[1],j=t.nonce,E=t.endpoint,_=Object(s.b)(),k=function(){O({type:"accept"})},x=function(){n(),O({type:"hide"})};return Object(r.useEffect)((function(){return c((function(){return O({type:"show"})}))}),[]),a.a.createElement("div",null,a.a.createElement(l.a,{title:p,visible:d.visible,onOk:function(){return e={body:Object(s.e)({action:E,nonce:j})},_.doFetch(e).then(k).catch(x);var e},onCancel:x,okText:f,okButtonProps:{className:"button-primary wpml-button base-btn"},cancelText:g,cancelButtonProps:{className:"button-secondary wpml-button base-btn wpml-button--outlined",style:{marginRight:8}}},a.a.createElement("p",null,b),a.a.createElement("p",null,m),a.a.createElement("p",null,h),a.a.createElement("ul",null,a.a.createElement("li",null,a.a.createElement("a",{href:"https://wpml.org/documentation/getting-started-guide/language-setup/automatic-redirect-based-on-browser-language/how-browser-language-redirect-affects-google-indexing/?utm_source=plugin&utm_medium=gui&utm_campaign=wpmlcore",target:"_blank"},y)),a.a.createElement("li",null,a.a.createElement("a",{href:"https://wpml.org/documentation/getting-started-guide/language-setup/automatic-redirect-based-on-browser-language/?utm_source=plugin&utm_medium=gui&utm_campaign=wpmlcore",target:"_blank"},v)))))},j="#icl_automatic_redirect input[name='icl_automatic_redirect']";document.addEventListener("DOMContentLoaded",(function(){o.a.render(a.a.createElement(O,{config:wpmlBrowserLanguageRedirectDialog,onCancel:function(){return function(e){document.querySelectorAll(e).forEach((function(e){e.value>0?e.checked=!1:e.checked=!0}))}(j)},setListenersCallback:function(e){return function(e,t){document.querySelectorAll(e).forEach((function(e){e.value>0&&e.addEventListener("click",t)}))}(j,e)}}),document.getElementById("browser-language-redirect-dialog"))}))},145:function(e,t,n){}});