(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3210],{50857:function(t,n,e){var o=e(37772).Symbol;t.exports=o},53366:function(t,n,e){var o=e(50857),r=e(62107),i=e(37157),a=o?o.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?r(t):i(t)}},51704:function(t,n,e){var o=e(52153),r=/^\s+/;t.exports=function(t){return t?t.slice(0,o(t)+1).replace(r,""):t}},51242:function(t,n,e){var o="object"==typeof e.g&&e.g&&e.g.Object===Object&&e.g;t.exports=o},62107:function(t,n,e){var o=e(50857),r=Object.prototype,i=r.hasOwnProperty,a=r.toString,c=o?o.toStringTag:void 0;t.exports=function(t){var n=i.call(t,c),e=t[c];try{t[c]=void 0;var o=!0}catch(t){}var r=a.call(t);return o&&(n?t[c]=e:delete t[c]),r}},37157:function(t){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},37772:function(t,n,e){var o=e(51242),r="object"==typeof self&&self&&self.Object===Object&&self,i=o||r||Function("return this")();t.exports=i},52153:function(t){var n=/\s/;t.exports=function(t){for(var e=t.length;e--&&n.test(t.charAt(e)););return e}},54073:function(t,n,e){var o=e(29259),r=e(61100),i=e(7642),a=Math.max,c=Math.min;t.exports=function(t,n,e){var u,s,l,f,d,p,x=0,g=!1,v=!1,h=!0;if("function"!=typeof t)throw TypeError("Expected a function");function y(n){var e=u,o=s;return u=s=void 0,x=n,f=t.apply(o,e)}function b(t){var e=t-p,o=t-x;return void 0===p||e>=n||e<0||v&&o>=l}function m(){var t,e,o,i=r();if(b(i))return j(i);d=setTimeout(m,(t=i-p,e=i-x,o=n-t,v?c(o,l-e):o))}function j(t){return(d=void 0,h&&u)?y(t):(u=s=void 0,f)}function C(){var t,e=r(),o=b(e);if(u=arguments,s=this,p=e,o){if(void 0===d)return x=t=p,d=setTimeout(m,n),g?y(t):f;if(v)return clearTimeout(d),d=setTimeout(m,n),y(p)}return void 0===d&&(d=setTimeout(m,n)),f}return n=i(n)||0,o(e)&&(g=!!e.leading,l=(v="maxWait"in e)?a(i(e.maxWait)||0,n):l,h="trailing"in e?!!e.trailing:h),C.cancel=function(){void 0!==d&&clearTimeout(d),x=0,u=p=s=d=void 0},C.flush=function(){return void 0===d?f:j(r())},C}},29259:function(t){t.exports=function(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)}},15125:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},4795:function(t,n,e){var o=e(53366),r=e(15125);t.exports=function(t){return"symbol"==typeof t||r(t)&&"[object Symbol]"==o(t)}},61100:function(t,n,e){var o=e(37772);t.exports=function(){return o.Date.now()}},7642:function(t,n,e){var o=e(51704),r=e(29259),i=e(4795),a=0/0,c=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,s=/^0o[0-7]+$/i,l=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(i(t))return a;if(r(t)){var n="function"==typeof t.valueOf?t.valueOf():t;t=r(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;t=o(t);var e=u.test(t);return e||s.test(t)?l(t.slice(2),e?2:8):c.test(t)?a:+t}},11583:function(t,n,e){"use strict";e.r(n),e.d(n,{InternationalOverlay:function(){return O},default:function(){return I}});var o,r,i=e(20406),a=e(8529),c=e(7328),u=e(82841),s=e.n(u),l=e(2784),f=e(60418),d=e(52034),p=e(80131),x=e(36937),g=e(11006),v=e(87330),h=e(48840),y=e(46904),b=e(41857),m=e(28885),j=e(73716),C=e(58406),w=e(52322),S=function(t){var n=(0,b.ZR)().assetPrefix;return(0,w.jsx)("img",{alt:"".concat(t.flagIcon," flag"),style:{width:"24px",borderRadius:"50%",border:"1px solid white",marginRight:"8px"},src:"".concat(n,"/static/flags/1x1/").concat(t.flagIcon.toLowerCase(),".svg")})},T=g.zo.h1(o||(o=(0,c.Z)(["\n ",";\n padding-top: ",";\n"])),(0,v.xv)("large1","alternate"),(0,h.W0)(3)),_=g.zo.div(r||(r=(0,c.Z)(["\n ",";\n padding-top: ",";\n"])),(0,v.xv)("bodyText","default"),(0,h.W0)(3)),O=function(){var t=(0,b.Dx)(),n=t.subsite,e=t.domain,o=(0,m.QT)(),r=(0,C.to)(),c=l.useState(),u=(0,a.Z)(c,2),g=u[0],v=u[1],O=l.useState(!1),I=(0,a.Z)(O,2),W=I[0],k=I[1];l.useEffect(function(){d.get("".concat(n,"_chosenSubsite_V6"))!==n&&"Y"!==(0,j.Oj)(window,"countrySelected")&&f.Z.get("/e2/operation/international-overlay",{validateStatus:function(){return!0},timeout:1e3}).then(function(t){200===t.status&&t.data&&(v(t.data),k(d.get("".concat(n,"_chosenSubsite_V6"))!==n&&"Y"!==(0,j.Oj)(window,"countrySelected")))}).catch(function(){})},[]);var Z=function(t){g&&(d.set("".concat(n,"_chosenSubsite_V6"),n,{expires:3,secure:location.protocol.includes("https"),path:"/"}),k(!1),t())},E=function(t){g&&(d.set("".concat(n,"_chosenSubsite_V6"),g.subsiteIdentifier,{expires:3,secure:location.protocol.includes("https")}),k(!1),t(),window.location.href="https://".concat(g.redirectDomain,"?country_selected=Y"))};return W&&g?(0,w.jsx)(x.CX,{removeFocusTrap:!0,"data-testid":"international-overlay",gridColSpan:[12,8,6,4],headerOffset:r,closeI18nText:{closeAriaLabel:o("general.modal.close.button.arialabel"),closeLabel:o("general.modal.close.button.label")},onClose:(0,i.Z)(s().mark(function t(){return s().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return Z(function(){}),t.abrupt("return",!0);case 2:case"end":return t.stop()}},t)})),renderContent:function(t){return(0,w.jsxs)(l.Fragment,{children:[(0,w.jsx)(T,{children:o("internationalredirect.heading.".concat(g.languageCode,".text"))}),(0,w.jsx)(_,{dangerouslySetInnerHTML:{__html:(0,p.vsprintf)("%s %s%s%s %s %s %s",[o("internationalredirect.precountryexplanation.".concat(g.languageCode,".text")),o("header.country.".concat(g.countryCode,".text")),o("internationalredirect.postcountryexplanation.".concat(g.languageCode,".text")),o("header.country.identifier.".concat(g.countryCode,".text")),o("internationalredirect.precurrencyexplanation.".concat(g.languageCode,".text")),g.currencyWithIcon,o("internationalredirect.postcurrencyexplanation.".concat(g.languageCode,".text"))])}}),(0,w.jsxs)(y.zx,{style:{width:"100%",marginTop:(0,h.W0)(3)},onClick:function(){return E(t)},children:[(0,w.jsx)(S,{flagIcon:g.flagIcon}),o("internationalredirect.gobuttontext.".concat(g.languageCode,".text"))," ",g.redirectDomain.toUpperCase()]}),(0,w.jsx)(y.zx,{style:{height:(0,h.W0)(6),marginTop:(0,h.W0)(2),textAlign:"left"},emphasis:"low",onClick:function(){return Z(t)},children:"".concat(o("general.internationaloverlay.staybutton.text")," ").concat(e.toUpperCase())})]})}}):null},I=O}}]);