1/*! For license information please see 22.49af601b.chunk.js.LICENSE.txt */ 2(this["webpackJsonpvapc-cpx-frontend"]=this["webpackJsonpvapc-cpx-frontend"]||[]).push([[22],{1032:function(e,t,n){"use strict";var r=n(0),i=n(135),a=n.n(i),o=["sitekey","onChange","theme","type","tabindex","onExpired","onErrored","size","stoken","grecaptcha","badge","hl","isolated"];function c(){return(c=Object.assign?Object.assign.bind():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)}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e,t){return(s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var u=function(e){var t,n;function i(){var t;return(t=e.call(this)||this).handleExpired=t.handleExpired.bind(l(t)),t.handleErrored=t.handleErrored.bind(l(t)),t.handleChange=t.handleChange.bind(l(t)),t.handleRecaptchaRef=t.handleRecaptchaRef.bind(l(t)),t}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,s(t,n);var a=i.prototype;return a.getCaptchaFunction=function(e){return this.props.grecaptcha?this.props.grecaptcha.enterprise?this.props.grecaptcha.enterprise[e]:this.props.grecaptcha[e]:null},a.getValue=function(){var e=this.getCaptchaFunction("getResponse");return e&&void 0!==this._widgetId?e(this._widgetId):null},a.getWidgetId=function(){return this.props.grecaptcha&&void 0!==this._widgetId?this._widgetId:null},a.execute=function(){var e=this.getCaptchaFunction("execute");if(e&&void 0!==this._widgetId)return e(this._widgetId);this._executeRequested=!0},a.executeAsync=function(){var e=this;return new Promise((function(t,n){e.executionResolve=t,e.executionReject=n,e.execute()}))},a.reset=function(){var e=this.getCaptchaFunction("reset");e&&void 0!==this._widgetId&&e(this._widgetId)},a.forceReset=function(){var e=this.getCaptchaFunction("reset");e&&e()},a.handleExpired=function(){this.props.onExpired?this.props.onExpired():this.handleChange(null)},a.handleErrored=function(){this.props.onErrored&&this.props.onErrored(),this.executionReject&&(this.executionReject(),delete this.executionResolve,delete this.executionReject)},a.handleChange=function(e){this.props.onChange&&this.props.onChange(e),this.executionResolve&&(this.executionResolve(e),delete this.executionReject,delete this.executionResolve)},a.explicitRender=function(){var e=this.getCaptchaFunction("render");if(e&&void 0===this._widgetId){var t=document.createElement("div");this._widgetId=e(t,{sitekey:this.props.sitekey,callback:this.handleChange,theme:this.props.theme,type:this.props.type,tabindex:this.props.tabindex,"expired-callback":this.handleExpired,"error-callback":this.handleErrored,size:this.props.size,stoken:this.props.stoken,hl:this.props.hl,badge:this.props.badge,isolated:this.props.isolated}),this.captcha.appendChild(t)}this._executeRequested&&this.props.grecaptcha&&void 0!==this._widgetId&&(this._executeRequested=!1,this.execute())},a.componentDidMount=function(){this.explicitRender()},a.componentDidUpdate=function(){this.explicitRender()},a.handleRecaptchaRef=function(e){this.captcha=e},a.render=function(){var e=this.props,t=(e.sitekey,e.onChange,e.theme,e.type,e.tabindex,e.onExpired,e.onErrored,e.size,e.stoken,e.grecaptcha,e.badge,e.hl,e.isolated,function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,o));return r.createElement("div",c({},t,{ref:this.handleRecaptchaRef}))},i}(r.Component);u.displayName="ReCAPTCHA",u.propTypes={sitekey:a.a.string.isRequired,onChange:a.a.func,grecaptcha:a.a.object,theme:a.a.oneOf(["dark","light"]),type:a.a.oneOf(["image","audio"]),tabindex:a.a.number,onExpired:a.a.func,onErrored:a.a.func,size:a.a.oneOf(["compact","normal","invisible"]),stoken:a.a.string,hl:a.a.string,badge:a.a.oneOf(["bottomright","bottomleft","inline"]),isolated:a.a.bool},u.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};var p=n(155),d=n.n(p);function m(){return(m=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 h={},f=0;function v(){return"undefined"!==typeof window&&window.recaptchaOptions||{}}var g,w,b=(g=function(){var e=v(),t=e.useRecaptchaNet?"recaptcha.net":"www.google.com";return e.enterprise?"https://"+t+"/recaptcha/enterprise.js?onload=onloadcallback&render=explicit":"https://"+t+"/recaptcha/api.js?onload=onloadcallback&render=explicit"},w=(w={callbackName:"onloadcallback",globalName:"grecaptcha",attributes:v().nonce?{nonce:v().nonce}:{}})||{}
2,function(e){var t=e.displayName||e.name||"Component",n=function(t){var n,i;function a(e,n){var r;return(r=t.call(this,e,n)||this).state={},r.__scriptURL="",r}i=t,(n=a).prototype=Object.create(i.prototype),n.prototype.constructor=n,n.__proto__=i;var o=a.prototype;return o.asyncScriptLoaderGetScriptLoaderID=function(){return this.__scriptLoaderID||(this.__scriptLoaderID="async-script-loader-"+f++),this.__scriptLoaderID},o.setupScriptURL=function(){return this.__scriptURL="function"===typeof g?g():g,this.__scriptURL},o.asyncScriptLoaderHandleLoad=function(e){var t=this;this.setState(e,(function(){return t.props.asyncScriptOnLoad&&t.props.asyncScriptOnLoad(t.state)}))},o.asyncScriptLoaderTriggerOnScriptLoaded=function(){var e=h[this.__scriptURL];if(!e||!e.loaded)throw new Error("Script is not loaded.");for(var t in e.observers)e.observers[t](e);delete window[w.callbackName]},o.componentDidMount=function(){var e=this,t=this.setupScriptURL(),n=this.asyncScriptLoaderGetScriptLoaderID(),r=w,i=r.globalName,a=r.callbackName,o=r.scriptId;if(i&&"undefined"!==typeof window[i]&&(h[t]={loaded:!0,observers:{}}),h[t]){var c=h[t];return c&&(c.loaded||c.errored)?void this.asyncScriptLoaderHandleLoad(c):void(c.observers[n]=function(t){return e.asyncScriptLoaderHandleLoad(t)})}var l={};l[n]=function(t){return e.asyncScriptLoaderHandleLoad(t)},h[t]={loaded:!1,observers:l};var s=document.createElement("script");for(var u in s.src=t,s.async=!0,w.attributes)s.setAttribute(u,w.attributes[u]);o&&(s.id=o);var p=function(e){if(h[t]){var n=h[t].observers;for(var r in n)e(n[r])&&delete n[r]}};a&&"undefined"!==typeof window&&(window[a]=function(){return e.asyncScriptLoaderTriggerOnScriptLoaded()}),s.onload=function(){var e=h[t];e&&(e.loaded=!0,p((function(t){return!a&&(t(e),!0)})))},s.onerror=function(){var e=h[t];e&&(e.errored=!0,p((function(t){return t(e),!0})))},document.body.appendChild(s)},o.componentWillUnmount=function(){var e=this.__scriptURL;if(!0===w.removeOnUnmount)for(var t=document.getElementsByTagName("script"),n=0;n<t.length;n+=1)t[n].src.indexOf(e)>-1&&t[n].parentNode&&t[n].parentNode.removeChild(t[n]);var r=h[e];r&&(delete r.observers[this.asyncScriptLoaderGetScriptLoaderID()],!0===w.removeOnUnmount&&delete h[e])},o.render=function(){var t=w.globalName,n=this.props,i=(n.asyncScriptOnLoad,n.forwardedRef),a=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(n,["asyncScriptOnLoad","forwardedRef"]);return t&&"undefined"!==typeof window&&(a[t]="undefined"!==typeof window[t]?window[t]:void 0),a.ref=i,Object(r.createElement)(e,a)},a}(r.Component),i=Object(r.forwardRef)((function(e,t){return Object(r.createElement)(n,m({},e,{forwardedRef:t}))}));return i.displayName="AsyncScriptLoader("+t+")",i.propTypes={asyncScriptOnLoad:a.a.func},d()(i,e)})(u);t.a=b},1325:function(e,t,n){"use strict";n.r(t);var r,i,a=n(122),o=n(40),c=n(30),l=n(278),s=n(244),u=n(7),p=n(216),d=n(8),m=n(0),h=n.n(m),f=n(1032),v=n(33),g=n(171),w=n(11),b=n(49),y=n(47),_=n(5),x=n(4),E=n(28),O=x.e.div.attrs({className:"newsletter-wrapper"})(r||(r=Object(_.a)(["\n h2 {\n font-weight: 450;\n font-size: 24px;\n line-height: 34px;\n letter-spacing: 1.5px;\n text-transform: ",";\n }\n\n h3 {\n font-weight: 390;\n font-size: 16px;\n line-height: 24px;\n margin-top: 98px;\n }\n\n .newsletter-wrapper__data-divider {\n border: 3px solid rgba(151, 151, 151, 0.8);\n margin-top: 90px;\n }\n\n .newsletter-wrapper__input-wrapper {\n margin-top: 40px;\n\n .newsletter-wrapper__input-container {\n margin-top: 18px;\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n\n .newsletter-wrapper__input-reg-s {\n width: 288px;\n margin: 16px 23px 0 0;\n }\n\n .newsletter-wrapper__input-reg {\n width: 288px;\n margin-top: 16px;\n }\n\n .newsletter-wrapper__input-dual {\n display: flex;\n width: 50%;\n }\n\n .newsletter-wrapper__input-lng {\n width: 50%;\n margin-top: 16px;\n }\n }\n\n .newsletter-wrapper__checkbox-wrapper {\n margin-top: 77px;\n\n .newsletter-wrapper__input-checkbox {\n display: flex;\n align-items: center;\n margin-top: 16px;\n padding: 0;\n cursor: pointer;\n color: #ffffff;\n\n h3 {\n font-size: 18px;\n margin: 0 0 0 10px;\n }\n\n .newsletter-wrapper__terms-link {\n text-decoration: underline;\n }\n }\n }\n\n .newsletter-wrapper__required-fields {\n margin-top: 39px;\n }\n }\n\n .newsletter-wrapper__register-divider {\n border: 3px solid rgba(151, 151, 151, 0.8);\n margin-top: 26px;\n }\n\n .newsletter-wrapper__register-btn {\n margin: 39px 0 100px;\n\n .register-btn {\n width: 228px;\n }\n .captcha{\n margin: 0 auto;\n margin-bottom: 4rem;\n }\n }\n"])),E.d),j=x.e.h1(i||(i=Object(_.a)(["\n display: inline-block;\n vertical-align: middle;\n font-size: 2.4rem;\n font-weight: 700;\n letter-spacing: 1px;\n text-transform: ",";\n color: ",";\n margin: 29px 0 30px 0;\n"])),E.d,(function(e){return e.theme.color.textPrimary})),L=n(27);function N(){N=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}
vendor: 3,479 bytes, line 2
2try{l({},"")}catch(R){l=function(e,t,n){return e[t]=n}}function s(e,t,n,i){var a=t&&t.prototype instanceof d?t:d,o=Object.create(a.prototype),c=new j(i||[]);return r(o,"_invoke",{value:_(e,n,c)}),o}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(R){return{type:"throw",arg:R}}}e.wrap=s;var p={};function d(){}function m(){}function h(){}var f={};l(f,a,(function(){return this}));var v=Object.getPrototypeOf,g=v&&v(v(L([])));g&&g!==t&&n.call(g,a)&&(f=g);var w=h.prototype=d.prototype=Object.create(f);function b(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function y(e,t){var i;r(this,"_invoke",{value:function(r,a){function o(){return new t((function(i,o){!function r(i,a,o,c){var l=u(e[i],e,a);if("throw"!==l.type){var s=l.arg,p=s.value;return p&&"object"==typeof p&&n.call(p,"__await")?t.resolve(p.__await).then((function(e){r("next",e,o,c)}),(function(e){r("throw",e,o,c)})):t.resolve(p).then((function(e){s.value=e,o(s)}),(function(e){return r("throw",e,o,c)}))}c(l.arg)}(r,a,i,o)}))}return i=i?i.then(o,o):o()}})}function _(e,t,n){var r="suspendedStart";return function(i,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw a;return k()}for(n.method=i,n.arg=a;;){var o=n.delegate;if(o){var c=x(o,n);if(c){if(c===p)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=u(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===p)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var i=u(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,p;var a=i.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:k}}function k(){return{value:void 0,done:!0}}return m.prototype=h,r(w,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:m,configurable:!0}),m.displayName=l(h,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,l(e,c,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}}
2,b(y.prototype),l(y.prototype,o,(function(){return this})),e.AsyncIterator=y,e.async=function(t,n,r,i,a){void 0===a&&(a=Promise);var o=new y(s(t,n,r,i),a);return e.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},b(w),l(w,c,"Generator"),l(w,a,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=L,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return o.type="throw",o.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,p):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;O(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:L(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},e}var k=function(e){var t,n,r,i,a,o,c,l,s,_,x,E,k,R,C,S,A,I,P,q,T,z,F,G,H,D,U,M,W,Y,J=e.validateWithSchema,V=e.notify,B=e.legalInfo,Q=(e.newsletterResult,e.sendNewsletterRegistration),X=Object(v.b)(),Z=Object(d.a)(X,1)[0],K=Object(y.a)(),$=K.media.docsPrefix,ee=K.routes,te=Object(m.useRef)(null),ne=Object(m.useState)(-1),re=Object(d.a)(ne,2),ie=(re[0],re[1]),ae=Object(m.useState)(!0),oe=Object(d.a)(ae,2),ce=oe[0],le=oe[1],se=Object(m.useState)(null),ue=Object(d.a)(se,2),pe=ue[0],de=ue[1];function me(e){return he.apply(this,arguments)}function he(){return(he=Object(p.a)(N().mark((function e(t){var n,r;return N().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return"https://www.google.com/recaptcha/api/siteverify",e.prev=1,e.next=4,fetch("https://www.google.com/recaptcha/api/siteverify",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded; charset=utf-8"},body:"secret=".concat("6LfIM4kpAAAAAPQSigxDIzHYV5oHfLYiOszzpvA2","&response=").concat(t)});case 4:if((n=e.sent).ok){e.next=7;break}throw new w.i("Failed to verify CAPTCHA");case 7:return e.next=9,n.json();case 9:return r=e.sent,e.abrupt("return",r.success);case 13:return e.prev=13,e.t0=e.catch(1),console.error("CAPTCHA verification failed:",e.t0),e.abrupt("return",!1);case 17:case"end":return e.stop()}}),e,null,[[1,13]])})))).apply(this,arguments)}var fe=function(){var e=Object(p.a)(N().mark((function e(){var t,n;return N().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=te.current.getValue(),e.prev=1,e.next=4,me(t);case 4:n=e.sent,le(n),de(""),e.next=13;break;case 9:e.prev=9,e.t0=e.catch(1),console.error("Error during CAPTCHA verification:",e.t0),de("CAPTCHA verification failed.");case 13:case"end":return e.stop()}}),e,null,[[1,9]])})));return function(){return e.apply(this,arguments)}}(),ve=function(){var e=Object(p.a)(N().mark((function e(t){var n,r,i,a,o,c,l,s,u,p,d;return N().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:te.current.reset(),ie(-1),r=t.salutation,i=t.firstName,a=t.lastName,o=t.company,c=t.email,l=t.phoneNumber,s=t.zipCode,u=t.city,p=t.street,d={salutation:(null===r||void 0===r||null===(n=r[0])||void 0===n?void 0:n.value)||"",firstName:i||"",lastName:a||"",company:o||"",email:c||"",phoneNumber:l||"",zip:s||"",city:u||"",street:p||""},Q(d);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ge=Object(g.b)({onSubmit:ve,validate:J}),we=ge.form,be=ge.handleSubmit,ye=ge.submitErrors,_e=ge.submitSucceeded,xe=ge.submitting,Ee=ge.submitFailed,Oe=Object(g.a)("salutation",we),je=Object(g.a)("firstName",we),Le=Object(g.a)("lastName",we),Ne=Object(g.a)("company",we),ke=Object(g.a)("email",we),Re=Object(g.a)("phoneNumber",we),Ce=Object(g.a)("zipCode",we),Se=Object(g.a)("city",we),Ae=Object(g.a)("street",we),Ie=Object(g.a)("terms",we),Pe=Object(m.useMemo)((function(){return[{label:Z("common.mr"),value:"Mr.",key:"mr."}
2,{label:Z("common.mrs"),value:"Mrs.",key:"mrs."}]}),[]),qe=Object(m.useState)([]),Te=Object(d.a)(qe,2),ze=Te[0],Fe=Te[1],Ge=Object(y.i)("success"),He=Object(d.a)(Ge,3),De=He[0],Ue=He[1],Me=He[2];Object(m.useEffect)((function(){if(null===B||void 0===B?void 0:B.length){var e=B.filter((function(e){return[6,1].some((function(t){return t===+e.docType}))}));Fe(e)}}),[B]),Object(m.useEffect)((function(){_e&&Ue()}),[_e]),Object(m.useEffect)((function(){Ee&&V("warning",Z("common.post_validation_error"))}),[Ee]),Object(y.d)(we,ye,_e,xe);var We,Ye=Object(m.useCallback)((function(e){var t=Object(u.a)(Ie.input.value);Array.isArray(t)&&t.includes(e)?t.splice(t.indexOf(e),1):t.push(e),we.change(Ie.input.name,t)}),[Ie.input.value]);return h.a.createElement(w.g,null,h.a.createElement(j,null,Z("common.newsletter_registration")),h.a.createElement(O,{onSubmit:be,as:"form"},h.a.createElement("h3",null,Z("common.newsletter_reg_subtitle")),h.a.createElement("div",{className:"newsletter-wrapper__data-divider"}),h.a.createElement("div",{className:"newsletter-wrapper__input-wrapper"},h.a.createElement("h2",null,Z("cinema_rent_inquiry_form.data")),h.a.createElement("div",{className:"newsletter-wrapper__input-container"},h.a.createElement("div",{className:"newsletter-wrapper__input-reg-s"},h.a.createElement(w.r,null,Z("common.salutation"),"*"),h.a.createElement(w.I,{placeholder:Z("common.choose"),options:Pe,error:Object(b.g)(Oe,Z)||Object(b.f)(ye,Oe.input.name,Z),onDropdownClose:function(){we.getFieldState(Oe.input.name).blur()},onChange:function(e){we.change(Oe.input.name,e)}}),Ee&&((null===(t=Oe.meta)||void 0===t?void 0:t.error)||!Oe.input.value.includes(""))&&h.a.createElement(w.i,null,(null===(n=Oe.meta)||void 0===n?void 0:n.error)&&Z(null===(r=Oe.meta)||void 0===r?void 0:r.error))),h.a.createElement("div",{className:"newsletter-wrapper__input-dual"},h.a.createElement("div",{className:"newsletter-wrapper__input-reg-s"},h.a.createElement(w.r,null,Z("common.first_name")," *"),h.a.createElement(w.n,Object.assign({id:je.input.name},je.input,{error:Object(b.i)(je,Z)||Object(b.f)(ye,je.input.name,Z)})),Ee&&((null===(i=je.meta)||void 0===i?void 0:i.error)||!je.input.value.includes(""))&&h.a.createElement(w.i,null,(null===(a=je.meta)||void 0===a?void 0:a.error)&&Z(null===(o=je.meta)||void 0===o?void 0:o.error))),h.a.createElement("div",{className:"newsletter-wrapper__input-reg"},h.a.createElement(w.r,null,Z("common.last_name")," *"),h.a.createElement(w.n,Object.assign({id:Le.input.name},Le.input,{error:Object(b.i)(Le,Z)||Object(b.f)(ye,Le.input.name,Z)})),Ee&&((null===(c=Le.meta)||void 0===c?void 0:c.error)||!Le.input.value.includes(""))&&h.a.createElement(w.i,null,(null===(l=Le.meta)||void 0===l?void 0:l.error)&&Z(null===(s=Le.meta)||void 0===s?void 0:s.error)))),h.a.createElement("div",{className:"newsletter-wrapper__input-reg-s"},h.a.createElement(w.r,null,Z("common.company")),h.a.createElement(w.n,Object.assign({id:Ne.input.name},Ne.input,{error:Object(b.i)(Ne,Z)||Object(b.f)(ye,Ne.input.name,Z)}))),h.a.createElement("div",{className:"newsletter-wrapper__input-dual"},h.a.createElement("div",{className:"newsletter-wrapper__input-reg-s"},h.a.createElement(w.r,null,Z("form.email")," *"),h.a.createElement(w.n,Object.assign({id:ke.input.name},ke.input,{error:Object(b.h)(ke,Z)||Object(b.f)(ye,ke.input.name,Z)})),Ee&&((null===(_=ke.meta)||void 0===_?void 0:_.error)||!ke.input.value.includes(""))&&h.a.createElement(w.i,null,(null===(x=ke.meta)||void 0===x?void 0:x.error)&&Z(null===(E=ke.meta)||void 0===E?void 0:E.error))),h.a.createElement("div",{className:"newsletter-wrapper__input-reg"},h.a.createElement(w.r,null,Z("cinema_rent_inquiry_form.phone_number")),h.a.createElement(w.n,Object.assign({id:Re.input.name},Re.input,{error:Object(b.i)(Re,Z)||Object(b.f)(ye,Re.input.name,Z)})))),h.a.createElement("div",{className:"newsletter-wrapper__input-dual"},h.a.createElement("div",{className:"newsletter-wrapper__input-reg-s"},h.a.createElement(w.r,null,Z("cinema_rent_inquiry_form.zip_code")," *"),h.a.createElement(w.n,Object.assign({id:Ce.input.name},Ce.input,{error:Object(b.i)(Ce,Z)||Object(b.f)(ye,Ce.input.name,Z)})),Ee&&((null===(k=Ce.meta)||void 0===k?void 0:k.error)||!Ce.input.value.includes(""))&&h.a.createElement(w.i,null,(null===(R=Ce.meta)||void 0===R?void 0:R.error)&&Z(null===(C=Ce.meta)||void 0===C?void 0:C.error))),h.a.createElement("div",{className:"newsletter-wrapper__input-reg"},h.a.createElement(w.r,null,Z("form.city")," *"),h.a.createElement(w.n,Object.assign({id:Se.input.name},Se.input,{error:Object(b.i)(Se,Z)||Object(b.f)(ye,Se.input.name,Z)})),Ee&&((null===(S=Se.meta)||void 0===S?void 0:S.error)||!Se.input.value.includes(""))&&h.a.createElement(w.i,null,(null===(A=Se.meta)||void 0===A?void 0:A.error)&&Z(null===(I=Se.meta)||void 0===I?void 0:I.error)))),h.a.createElement("div",{className:"newsletter-wrapper__input-lng"},h.a.createElement(w.r,null,Z("cinema_rent_inquiry_form.street_number")),h.a.createElement(w.n,Object.assign({id:Ae.input.name},Ae.input,{error:Object(b.i)(Ae,Z)||Object(b.f)(ye,Ae.input.name,Z)})))),h.a.createElement("div",{className:"newsletter-wrapper__checkbox-wrapper"},h.a.createElement(w.r,{className:"newsletter-wrapper__input-checkbox"},h.a.createElement(w.e,{id:"terms and conditions",value:null===(P=Ie.input.value)||void 0===P?void 0:P.includes("terms and conditions"),checked:null===(q=Ie.input.value)||void 0===q?void 0:q.includes("terms and conditions"),onChange:function(){return Ye("terms and conditions")}}),h.a.createElement("h3",null,Z("cinema_rent_inquiry_form.yes_accept")," *"," ",h.a.createElement("a",{href:$(null===(T=ze[1])||void 0===T?void 0:T.doc),className:"newsletter-wrapper__terms-link",rel:"noopener noreferrer",target:"_blank"},Z("common.read_more")))),h.a.createElement(w.r,{className:"newsletter-wrapper__input-checkbox"},h.a.createElement(w.e,{id:"privacy policy",value:null===(z=Ie.input.value)||void 0===z?void 0:z.includes("privacy policy"),checked:null===(F=Ie.input.value)||void 0===F?void 0:F.includes("privacy policy"),onChange:function(){return Ye("privacy policy")}}),h.a.createElement("h3",null,Z("cinema_rent_inquiry_form.yes_note")," *"," ",h.a.createElement("a",{href:$(null===(G=ze[0])||void 0===G?void 0:G.doc),className:"newsletter-wrapper__terms-link",rel:"noopener noreferrer",target:"_blank"},Z("common.read_more")))),Ee&&((null===(H=Ie.meta)||void 0===H?void 0:H.error)||(!(We=Ie).input.value.includes("terms and conditions")||!We.input.value.includes("privacy policy")))&&h.a.createElement(w.i,null,(null===(D=Ie.meta)||void 0===D?void 0:D.error)&&Z(null===(U=Ie.meta)||void 0===U?void 0:U.error)||Z("common.select_value_error"))),h.a.createElement("h3",{className:"newsletter-wrapper__required-fields"},"* ",Z("cinema_rent_inquiry_form.required_fields"))),h.a.createElement("div",{className:"newsletter-wrapper__register-divider"}),h.a.createElement("div",{className:"newsletter-wrapper__register-btn"},h.a.createElement("div",{className:"captcha"},h.a.createElement(f.a,{sitekey:"6LfIM4kpAAAAAPgvGti3HX2AEw7ZvW3boWWJxLlw",ref:te,onChange:function(){return fe()},theme:"dark",onExpired:function(){de(Z("common.recaptcha_error")),le(!0),setTimeout((function(){te.current.reset()}),100)}}),pe&&h.a.createElement("div",{style:{color:"red",marginTop:"10px"}},pe)),h.a.createElement(w.b,{type:"submit",isPrimary:!0,className:"register-btn",disabled:!((null===Ie||void 0===Ie||null===(M=Ie.input)||void 0===M?void 0:M.value.includes("terms and conditions"))&&(null===Ie||void 0===Ie||null===(W=
2Ie.input)||void 0===W||null===(Y=W.value)||void 0===Y?void 0:Y.includes("privacy policy"))&&!ce)},Z("common.register")))),h.a.createElement(w.y,{isSmall:!0,isOpen:De,title:Z("common.success")},h.a.createElement(w.B,{iconId:"complete",message:Z("common.b2b_newsletter_success")},h.a.createElement(L.c,{NavLink:!0,to:ee.movies.pattern,style:{width:"100%"}},h.a.createElement(w.b,{style:{width:"200px"},isPrimary:!0,onClick:Me},Z("common.ok"))))))};k.defaultProps={newsletterResult:""};var R=k,C={notify:c.a.actions.createToast,sendNewsletterRegistration:l.a.actions.sendNewsletterRegistrationRequest},S=Object(a.c)(Object(o.b)((function(e){var t=e.information.legalInfoContent,n=e.newsletter;return{legalInfo:t.slice(),newsletterResult:n.newsletterRegistration[0]}}),C),Object(s.a)({salutation:[{rule:"requiredArray"}],firstName:[{rule:"required"}],lastName:[{rule:"required"}],email:[{rule:"required"},{rule:"email"}],zipCode:[{rule:"required"}],city:[{rule:"required"}]}))(R);t.default=S}}]); 3//# sourceMappingURL=22.49af601b.chunk.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.