(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[276],{50857:function(t,e,n){var r=n(37772).Symbol;t.exports=r},53366:function(t,e,n){var r=n(50857),o=n(62107),i=n(37157),a=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?o(t):i(t)}},51704:function(t,e,n){var r=n(52153),o=/^\s+/;t.exports=function(t){return t?t.slice(0,r(t)+1).replace(o,""):t}},51242:function(t,e,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;t.exports=r},62107:function(t,e,n){var r=n(50857),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,c=r?r.toStringTag:void 0;t.exports=function(t){var e=i.call(t,c),n=t[c];try{t[c]=void 0;var r=!0}catch(t){}var o=a.call(t);return r&&(e?t[c]=n:delete t[c]),o}},37157:function(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},37772:function(t,e,n){var r=n(51242),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();t.exports=i},52153:function(t){var e=/\s/;t.exports=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}},54073:function(t,e,n){var r=n(29259),o=n(61100),i=n(7642),a=Math.max,c=Math.min;t.exports=function(t,e,n){var u,l,s,f,p,d,v=0,g=!1,m=!1,b=!0;if("function"!=typeof t)throw TypeError("Expected a function");function x(e){var n=u,r=l;return u=l=void 0,v=e,f=t.apply(r,n)}function h(t){var n=t-d,r=t-v;return void 0===d||n>=e||n<0||m&&r>=s}function y(){var t,n,r,i=o();if(h(i))return w(i);p=setTimeout(y,(t=i-d,n=i-v,r=e-t,m?c(r,s-n):r))}function w(t){return(p=void 0,b&&u)?x(t):(u=l=void 0,f)}function j(){var t,n=o(),r=h(n);if(u=arguments,l=this,d=n,r){if(void 0===p)return v=t=d,p=setTimeout(y,e),g?x(t):f;if(m)return clearTimeout(p),p=setTimeout(y,e),x(d)}return void 0===p&&(p=setTimeout(y,e)),f}return e=i(e)||0,r(n)&&(g=!!n.leading,s=(m="maxWait"in n)?a(i(n.maxWait)||0,e):s,b="trailing"in n?!!n.trailing:b),j.cancel=function(){void 0!==p&&clearTimeout(p),v=0,u=d=l=p=void 0},j.flush=function(){return void 0===p?f:w(o())},j}},29259:function(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},15125:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},4795:function(t,e,n){var r=n(53366),o=n(15125);t.exports=function(t){return"symbol"==typeof t||o(t)&&"[object Symbol]"==r(t)}},61100:function(t,e,n){var r=n(37772);t.exports=function(){return r.Date.now()}},7642:function(t,e,n){var r=n(51704),o=n(29259),i=n(4795),a=0/0,c=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,l=/^0o[0-7]+$/i,s=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(i(t))return a;if(o(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=o(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=r(t);var n=u.test(t);return n||l.test(t)?s(t.slice(2),n?2:8):c.test(t)?a:+t}},54329:function(t,e,n){"use strict";n.d(e,{x:function(){return C}});var r,o=n(95235),i=n(8529),a=n(7328),c=n(2784),u=n(54073),l=n.n(u),s=n(17486),f=n(89495),p=n(48840),d=n(2660),v=n(52322);function g(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function m(t){for(var e=1;e0&&(r.length0&&(V(!1),n.hasOwnProperty("setCustomValidity")&&n.setCustomValidity(e.inner[0].message),t.setIsNotValidated&&t.setIsNotValidated(!0),g(e.inner[0].message))}return!1},25,{leading:!0,trailing:!1}),_=function(t,e,n){try{if("button"===e.type)return!0;return n.validateSync({validator:t},{abortEarly:!1}),!0}catch(t){return!1}},k=function(t,e){return"".concat(null==t?void 0:t.toLowerCase().replace(/\:|\?|\.|\!|\"|\'/g,"").split(" ").join("-"),"-form-item-id").concat(e?"-confirm":"")},L=null!=o&&null!=o.current&&null!=o.current.parentElement?o.current.parentElement.previousElementSibling:null;c.useImperativeHandle(t.bindref,function(){return m(m({},e.props),{},{focus:function(){null!=o&&null!=o.current&&o.current.focus()},validate:function(){return null!=o&&null!=o.current&&I(o.current.value,o.current,P,null!==a.current&&a.current)},value:null!=o&&null!=o.current?o.current.value:"",inView:t.inView||!1,offsetTop:null!=o&&null!=o.current&&null!=L?L.offsetTop-Number(t.offset):0})});var N=function(t,e,n){switch(t){case"MIN_LENGTH":n.minLength=e;break;case"MAX_LENGTH":n.maxLength=e;break;case"REGEX_MATCHES":n.pattern=e}return n},D={};null===(n=e.props.validators)||void 0===n||n.forEach(function(t){return N(t.name,t.argument,D)});var P=(0,s.object)().shape({validator:y(m(m(m({},e.props),D),{},{checkboxes:[]})).label(e.props.label)}),Z="".concat(e.props.label,"-error"),W="".concat(t.i18nText?t.i18nText.confirm:"Confirm","-").concat(e.props.label,"-error");return(0,v.jsxs)(c.Fragment,{children:[(0,v.jsxs)(x,{flexDirection:t.row?"row":"column",disableSpacing:t.disableSpacing,"data-testid":k(e.props.label,!1),className:t.className,children:[c.cloneElement(e,m(m({},e.props),{},{error:p,bindref:o,onChange:e.props.onChange?function(n){var r=I(n.target.value,n.target,P);e.props.onChange&&(e.props.onChange(n),r&&t.onValidationSuccess&&t.onValidationSuccess(n.target.value))}:function(e){var n=e.target;!E&&(I(e.target.value,e.target,P)&&t.onValidationSuccess&&t.onValidationSuccess(n.value),a.current&&j(a.current.value,n.type,t.config)===j(n.value,n.type,t.config)&&C(""))},onBlur:function(e){var n=e.target;E&&(I(n.value,n,P,null!==a.current&&a.current),a.current&&(j(a.current.value,n.type,t.config)===j(n.value,n.type,t.config)||""===a.current.value)&&C("")),_(n.value,n,P)&&t.onValidationSuccess&&t.onValidationSuccess(n.value)},ariaDescribedBy:Z})),p&&"boolean"!=typeof p&&(0,v.jsx)(d.B,{id:Z,error:p})]}),e.props.confirmable&&(0,v.jsxs)(x,{flexDirection:t.row?"row":"column","data-testid":k(e.props.label,!0),children:[c.cloneElement(e,m(m({},e.props),{},{error:!p&&S,label:w(e.props.label,null===(r=t.i18nText)||void 0===r?void 0:r.confirm,t.locale),helperText:"",bindref:a,onChange:function(){o.current&&a.current&&j(o.current.value,e.props.type,t.config)===j(a.current.value,e.props.type,t.config)&&C("")},onBlur:function(){!p&&o.current&&a.current&&j(o.current.value,e.props.type,t.config)!==j(a.current.value,e.props.type,t.config)&&C("".concat(e.props.label," ").concat(t.i18nText?t.i18nText.mustMatch:"must match"))},ariaDescribedBy:W})),!p&&S&&(0,v.jsx)(d.B,{id:W,error:S})]})]})},C=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b;return c.Children.map(t.children,function(e){return S(t,e)})}},11583:function(t,e,n){"use strict";n.r(e),n.d(e,{InternationalOverlay:function(){return E},default:function(){return V}});var r,o,i=n(20406),a=n(8529),c=n(7328),u=n(82841),l=n.n(u),s=n(2784),f=n(60418),p=n(52034),d=n(80131),v=n(36937),g=n(11006),m=n(87330),b=n(48840),x=n(46904),h=n(41857),y=n(28885),w=n(73716),j=n(58406),S=n(52322),C=function(t){var e=(0,h.ZR)().assetPrefix;return(0,S.jsx)("img",{alt:"".concat(t.flagIcon," flag"),style:{width:"24px",borderRadius:"50%",border:"1px solid white",marginRight:"8px"},src:"".concat(e,"/static/flags/1x1/").concat(t.flagIcon.toLowerCase(),".svg")})},O=g.zo.h1(r||(r=(0,c.Z)(["\n ",";\n padding-top: ",";\n"])),(0,m.xv)("large1","alternate"),(0,b.W0)(3)),T=g.zo.div(o||(o=(0,c.Z)(["\n ",";\n padding-top: ",";\n"])),(0,m.xv)("bodyText","default"),(0,b.W0)(3)),E=function(){var t=(0,h.Dx)(),e=t.subsite,n=t.domain,r=(0,y.QT)(),o=(0,j.to)(),c=s.useState(),u=(0,a.Z)(c,2),g=u[0],m=u[1],E=s.useState(!1),V=(0,a.Z)(E,2),I=V[0],_=V[1];s.useEffect(function(){p.get("".concat(e,"_chosenSubsite_V6"))!==e&&"Y"!==(0,w.Oj)(window,"countrySelected")&&f.Z.get("/e2/operation/international-overlay",{validateStatus:function(){return!0},timeout:1e3}).then(function(t){200===t.status&&t.data&&(m(t.data),_(p.get("".concat(e,"_chosenSubsite_V6"))!==e&&"Y"!==(0,w.Oj)(window,"countrySelected")))}).catch(function(){})},[]);var k=function(t){g&&(p.set("".concat(e,"_chosenSubsite_V6"),e,{expires:3,secure:location.protocol.includes("https"),path:"/"}),_(!1),t())},L=function(t){g&&(p.set("".concat(e,"_chosenSubsite_V6"),g.subsiteIdentifier,{expires:3,secure:location.protocol.includes("https")}),_(!1),t(),window.location.href="https://".concat(g.redirectDomain,"?country_selected=Y"))};return I&&g?(0,S.jsx)(v.CX,{removeFocusTrap:!0,"data-testid":"international-overlay",gridColSpan:[12,8,6,4],headerOffset:o,closeI18nText:{closeAriaLabel:r("general.modal.close.button.arialabel"),closeLabel:r("general.modal.close.button.label")},onClose:(0,i.Z)(l().mark(function t(){return l().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return k(function(){}),t.abrupt("return",!0);case 2:case"end":return t.stop()}},t)})),renderContent:function(t){return(0,S.jsxs)(s.Fragment,{children:[(0,S.jsx)(O,{children:r("internationalredirect.heading.".concat(g.languageCode,".text"))}),(0,S.jsx)(T,{dangerouslySetInnerHTML:{__html:(0,d.vsprintf)("%s %s%s%s %s %s %s",[r("internationalredirect.precountryexplanation.".concat(g.languageCode,".text")),r("header.country.".concat(g.countryCode,".text")),r("internationalredirect.postcountryexplanation.".concat(g.languageCode,".text")),r("header.country.identifier.".concat(g.countryCode,".text")),r("internationalredirect.precurrencyexplanation.".concat(g.languageCode,".text")),g.currencyWithIcon,r("internationalredirect.postcurrencyexplanation.".concat(g.languageCode,".text"))])}}),(0,S.jsxs)(x.zx,{style:{width:"100%",marginTop:(0,b.W0)(3)},onClick:function(){return L(t)},children:[(0,S.jsx)(C,{flagIcon:g.flagIcon}),r("internationalredirect.gobuttontext.".concat(g.languageCode,".text"))," ",g.redirectDomain.toUpperCase()]}),(0,S.jsx)(x.zx,{style:{height:(0,b.W0)(6),marginTop:(0,b.W0)(2),textAlign:"left"},emphasis:"low",onClick:function(){return k(t)},children:"".concat(r("general.internationaloverlay.staybutton.text")," ").concat(n.toUpperCase())})]})}}):null},V=E}}]);