"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[2281],{94824:function(e,t){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]0)throw i;return[2]}))}))}))}},68950:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.regularExpressions=void 0,t.regularExpressions={username:/^(?=.{3,30}$)([\s]*[\u0020\u0021\u0023-\u0026\u0028-\u003B\u003D\u003F-\uFFFF]?)*$/,email:/^.+@.+\.?.*$/i,emailStrong:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,password:/^((?!.*[\u0022\u0027\u003C\u003E])[\u0021-\u007Eа-яА-ЯÀÈÌÒÙàèìòùÁÉÍÓÚÝáéíóúýÂÊÎÔÛâêîôûÃÑÕãñõÄËÏÖÜŸäëïöüÿŸ¡¿çÇŒœßØøÅ寿ÞþÐð\d]{6,40})$/i,astralSymbols:/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,contactNumber:/^\+?[\d\-\)\(]{5,17}$/,website:/^((https?):\/\/)?(((([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-fA-F]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-zA-Z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-zA-Z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-zA-Z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-zA-Z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-zA-Z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-zA-Z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-fA-F]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-fA-F]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-fA-F]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-fA-F]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/}},68884:function(e,t,r){var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{u(n.next(e))}catch(e){a(e)}}function s(e){try{u(n.throw(e))}catch(e){a(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}u((n=n.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]{let{type:t,message:r}=e;return e=>{return o=void 0,a=void 0,s=function*(){const o=Date.now(),a={signal:!0,id:o,createdDate:o,type:t,message:r};return n.N4&&setTimeout((()=>{var t;e((t=o,{type:n.Zw,payload:t}))}),n.N4),e({type:n.PA,payload:[a]})},new((i=void 0)||(i=Promise))((function(e,t){function r(e){try{u(s.next(e))}catch(e){t(e)}}function n(e){try{u(s.throw(e))}catch(e){t(e)}}function u(t){var o;t.done?e(t.value):(o=t.value,o instanceof i?o:new i((function(e){e(o)}))).then(r,n)}u((s=s.apply(o,a||[])).next())}));var o,a,i,s}}},5758:function(e,t,r){r.d(t,{H_:function(){return d},LI:function(){return f},LL:function(){return p},MR:function(){return h},N4:function(){return u},Of:function(){return g},P6:function(){return c},PA:function(){return a},SR:function(){return l},Zg:function(){return o},Zw:function(){return i},ci:function(){return s},ik:function(){return n},pn:function(){return m}});const n="notification/read",o="notification/hide",a="notification/update",i="notification/remove",s="notification/count",u=8e3,c=20,l=10,d="info",h="success",m="error",p=210,g=[101,102],f={unreadCount:0,list:[]}},13633:function(e,t,r){var n=r(74268),o=r(59137),a=function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{u(n.next(e))}catch(e){a(e)}}function s(e){try{u(n.throw(e))}catch(e){a(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}u((n=n.apply(e,t||[])).next())}))};function i(e){return`${(0,n.SV)()}${e}`}function s(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{headers:{}};const t=Object.assign(Object.assign({method:"GET",credentials:"omit"},e),{headers:Object.assign(Object.assign({},(0,n.wU)()),e.headers)});return e.data&&(t.body=JSON.stringify(e.data),t.headers&&(t.headers["Content-Type"]="application/json")),t}const u=e=>e;function c(e,t){if("object"==typeof e){const r=Object.assign(Object.assign({},e),{message:e.message?e.message:t,requestFailInfo:t});throw console.error(r),r}const r=new Error(`${t} ${e}`);throw console.error(r),r}function l(e){return a(this,void 0,void 0,(function*(){const{status:t,statusText:r}=e;let i="";try{i=yield function(e){const t=e.headers.get("content-type");return t&&-1!==t.indexOf("application/json")?e.json():e.text()}(e)}catch(t){if("AbortError"===t.name)throw t;const r=yield e.text();throw new Error(`Response parsing error! Response: ${r}`)}const s=parseInt(`${t}`[0],10);if(2===s)return i;const u=`${t}: ${r}`;if(5===s)return c(i,u);if(401===t&&(yield function(){return a(this,void 0,void 0,(function*(){const e=(0,n.Sy)();if(e)try{yield e()}catch(e){console.error(e)}}))}()),403===t){const t=e.headers.get("x-datadome");if(t&&t.includes("protected"))throw new Error(o.a)}return c(i,u)}))}t.Z=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;return function(r){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return fetch(t(r),e(s(n))).then(l)}}},71745:function(e,t,r){var n=r(74268);const o=(0,r(13633).Z)((e=>Object.assign(Object.assign({},e),{headers:Object.assign(Object.assign(Object.assign({},(0,n.wU)()),(0,n.Av)()),{cookie:e.headers?e.headers.cookie:"",app_id:e.headers.app_id,theme_id:e.headers.theme_id}),credentials:"include"})),(function(e){return`${(0,n.kG)()}${e}`}));t.Z=o},52687:function(e,t,r){r.d(t,{Fo:function(){return c}});var n=r(28216),o=r(77159),a=r(62333),i=r(93069);const s=(0,a.E)("widgetSelector"),u=(0,i.Z)(s);function c(e){const t=-1===e.indexOf("widget-")?`widget-${e}`:e;return(0,n.connect)((e=>{return(r=t,function(e){const t=(e=>(0,o.widgetsCacheSelector)(e)[r])(e),n=(0,o.widgetDefaultsSelector)(e);return u.isCacheKeyValid(r,t)||u.resetCacheKey(r,t),u.widgetSelector(r,t,u.getFromWidgetDefaults(n,r))})(e);var r}))}},31452:function(e,t,r){r.r(t),r.d(t,{default:function(){return le}});var n=r(67294),o=r(41795),a=r(85002);const i="portal/partners/formSubmitted",s="portal/partners/formSubmitted/error",u="portal/partners/formSubmitted/clear",c={error:null};function l(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case i:return Object.assign(Object.assign({},e),{error:null});case s:return Object.assign(Object.assign({},e),{error:t.payload});case u:return Object.assign(Object.assign({},e),{error:null});default:return e}}const d=e=>{let{children:t}=e;return n.createElement(a.DynamicModuleLoader,{modules:[{id:"partners-dynamic-module",reducerMap:{partners:l}}]},t)};var h=r(52687),m=r(10586),p=r(88169),g=r(94737);const f=(0,m.ZP)(p.Z).withConfig({displayName:"PartnersContentstyled__Content",componentId:"sc-mpo9ss-0"})(["& h1{font-size:36px;font-weight:800;line-height:45px;letter-spacing:0.64px;color:#212121;margin-bottom:10px;@media ","{font-size:32px;line-height:40px;letter-spacing:0.57px;}}& p{font-size:18px;line-height:25px;margin-bottom:10px;color:#3a3a3a;@media ","{font-size:16px;line-height:20px;}}& a{color:#007aff;&:hover{color:#0053a9;}}& h2{font-size:22px;font-weight:700;line-height:25px;color:#2d2d30;margin-top:40px;@media ","{margin-top:30px;}}& h3{font-size:18px;font-weight:500;line-height:25px;color:rgba(58,58,58,0.6);margin-bottom:40px;@media ","{margin-bottom:30px;}}& ul{padding-left:20px;}& li{list-style-position:outside;margin-bottom:10px;}"],g.Z.mobileOrTablet,g.Z.mobileOrTablet,g.Z.mobileOrTablet,g.Z.mobileOrTablet);var b=(0,h.Fo)("widget-partners-content-v3")((e=>n.createElement(f,{html:e.strings.content}))),v=r(28216),y=r(23279),F=r.n(y),E=r(57557),w=r.n(E),x=r(41609),C=r.n(x),P=r(50308),_=r.n(P),D=r(10649),j=r(87804),M=r(71745),N=r(20573),O=r(47037),k=r.n(O),A={actions:{sendPartnersForm:e=>t=>{return r=void 0,n=void 0,a=function*(){try{yield(e=>(0,M.Z)("partner",{method:"POST",data:e}))(e),t({type:i})}catch(e){t({type:s,payload:e})}},new((o=void 0)||(o=Promise))((function(e,t){function i(e){try{u(a.next(e))}catch(e){t(e)}}function s(e){try{u(a.throw(e))}catch(e){t(e)}}function u(t){var r;t.done?e(t.value):(r=t.value,r instanceof o?r:new o((function(e){e(r)}))).then(i,s)}u((a=a.apply(r,n||[])).next())}));var r,n,o,a},clearError:()=>({type:u})},selectors:{errorsByPropSelector:(0,N.P1)((e=>e.partners.error),(e=>{const t={};return e&&Array.isArray(e.errors)&&e.errors.forEach((e=>{t[e.property]=e.message})),k()(e)&&(t.common=e),t}))}},z=r(5758),S=r(99950),Z=r(27361),B=r.n(Z),U=e=>{let t=e.error;return k()(t)||(t=B()(e.error,"errors[0].message","Unknown Error")),n.createElement(p.Z,{html:t.toString()})};function I(e){const t=t=>{const[r,o]=(0,n.useState)(!1),a=(0,n.useMemo)((()=>t.unlockErrorMessages||r),[t.unlockErrorMessages,r]);return n.createElement(e,Object.assign({},t,{unlockErrorMessages:a,setUnlockError:o}))};return t.displayName=`UnlockErrorEnhancer_${e.displayName||e.name||"Unknown"}`,t}const $=m.ZP.div.withConfig({displayName:"PartnersFormstyled__WrapForm",componentId:"sc-1uszc0e-0"})(["margin-top:20px;"]),T=(m.ZP.h2.withConfig({displayName:"PartnersFormstyled__Title",componentId:"sc-1uszc0e-1"})(["font-size:22px;font-weight:700;line-height:25px;color:var(--charcoal-grey);"]),m.ZP.div.withConfig({displayName:"PartnersFormstyled__FieldsWrap",componentId:"sc-1uszc0e-2"})(["display:flex;justify-content:space-between;@media (max-width:767px){flex-direction:column;}"])),q=m.ZP.div.withConfig({displayName:"PartnersFormstyled__FieldHalfWrap",componentId:"sc-1uszc0e-3"})(["display:flex;flex-direction:column;width:100%;max-width:390px;@media (max-width:1200px){max-width:334px;}@media (max-width:767px){max-width:100%;}"]),W=m.ZP.div.withConfig({displayName:"PartnersFormstyled__FieldGroup",componentId:"sc-1uszc0e-4"})(["display:flex;justify-content:space-between;"]),L=m.ZP.div.withConfig({displayName:"PartnersFormstyled__SectionPlay",componentId:"sc-1uszc0e-5"})(["z-index:1;"]),Q=m.ZP.div.withConfig({displayName:"PartnersFormstyled__InputWrapper",componentId:"sc-1uszc0e-6"})(["display:flex;flex-direction:column;position:relative;margin-bottom:15px;@media (max-width:767px){","}"],(e=>e.isMobile&&(0,m.iv)(["margin-left:20px;width:100%;"]))),R=m.ZP.div.withConfig({displayName:"PartnersFormstyled__TitleInput",componentId:"sc-1uszc0e-7"})(["opacity:0.5;font-size:16px;line-height:20px;color:var(--charcoal-grey);margin-bottom:5px;"]),V=m.ZP.input.withConfig({displayName:"PartnersFormstyled__Input",componentId:"sc-1uszc0e-8"})(["height:40px;border-radius:4px;border:solid 1px #d5d5d5;background-color:var(--bg-white);font-size:16px;line-height:20px;color:#3e3e4b;padding:0 15px;&::placeholder{color:rgba(0,0,0,0.3);}"," "," ",""],(e=>e.country&&(0,m.iv)(["width:120px;@media (max-width:1200px){width:110px;}"])),(e=>e.phone&&(0,m.iv)(["width:260px;@media (max-width:1200px){width:203px;}@media (max-width:767px){width:100%;}"])),(e=>e.error&&(0,m.iv)(["border-color:#e35a59;"]))),H=m.ZP.div.withConfig({displayName:"PartnersFormstyled__Error",componentId:"sc-1uszc0e-9"})(["font-size:14px;line-height:15px;color:#e35a59;margin-top:5px;"]),G=m.ZP.button.withConfig({displayName:"PartnersFormstyled__SendButton",componentId:"sc-1uszc0e-10"})(["display:flex;border:none;width:100%;height:40px;line-height:40px;font-size:18px;font-weight:600;text-align:center;color:var(--bg-white);border-radius:4px;background-image:linear-gradient(to bottom,#5b8fe5,#4779cb 99%);justify-content:center;cursor:pointer;&:hover{background-image:linear-gradient(to bottom,#619cff,#558ce6);}&:active{background-image:linear-gradient(to bottom,#578adf,#406cb5 99%);}&:disabled{background-image:inherit;background-color:var(--button-secondary-disablet);}"]),K=m.ZP.div.withConfig({displayName:"PartnersFormstyled__TextAreaWrapper",componentId:"sc-1uszc0e-11"})(["margin-bottom:35px;"]),Y=m.ZP.textarea.withConfig({displayName:"PartnersFormstyled__TextArea",componentId:"sc-1uszc0e-12"})(["width:390px;height:200px;border-radius:4px;border:solid 1px #d5d5d5;background-color:var(--bg-white);font-size:16px;font-family:inherit;padding:10px 15px;line-height:20px;color:#3e3e4b;resize:none;@media (max-width:1200px){width:334px;}@media (max-width:767px){width:100%;}&::placeholder{color:rgba(0,0,0,0.3);}",""],(e=>e.error&&(0,m.iv)(["border-color:#e35a59;"])));var J=I((e=>{let{title:t,placeholder:r,onChange:o,error:a,autoFocus:i,unlockErrorMessages:s,onBlur:u,setUnlockError:c}=e;const l=s?a:null;return n.createElement(Q,null,n.createElement(R,null,t),n.createElement(V,Object.assign({type:"string",name:"email",autoFocus:i,onChange:o,placeholder:r,onBlur:e=>{u&&u(e),c(!0)}},j.A("partners.input.email"),{error:!!a})),a?n.createElement(H,null,l):null)})),X=I((e=>{let{title:t,placeholder:r,onChange:o,error:a,autoFocus:i,unlockErrorMessages:s,onBlur:u,setUnlockError:c}=e;const l=s?a:null;return n.createElement(Q,null,n.createElement(R,null,t),n.createElement(V,Object.assign({type:"string",name:"username",autoFocus:i,onChange:o,placeholder:r,onBlur:e=>{u&&u(e),c(!0)}},j.A("partners.input.username"),{error:!!a})),a?n.createElement(H,null,l):null)})),ee=I((e=>{let{title:t,placeholder:r,onChange:o,error:a,autoFocus:i,unlockErrorMessages:s,onBlur:u,setUnlockError:c}=e;const l=s?a:null;return n.createElement(Q,null,n.createElement(R,null,t),n.createElement(V,Object.assign({type:"string",name:"website",autoFocus:i,placeholder:r,onChange:o,onBlur:e=>{u&&u(e),c(!0)}},j.A("partners.input.website"),{error:!!a})),a?n.createElement(H,null,l):null)})),te=I((e=>{let{title:t,placeholder:r,onChange:o,error:a,autoFocus:i,unlockErrorMessages:s,onBlur:u,setUnlockError:c}=e;const l=s?a:null;return n.createElement(Q,null,n.createElement(R,null,t),n.createElement(V,Object.assign({type:"text",name:"countryCode",autoFocus:i,placeholder:r,onChange:o,onBlur:e=>{u&&u(e),c(!0)}},j.A("partners.input.countryCode"),{country:!0,error:!!a})),a?n.createElement(H,null,l):null)})),re=I((e=>{let{title:t,placeholder:r,onChange:o,error:a,autoFocus:i,unlockErrorMessages:s,onBlur:u,setUnlockError:c}=e;const l=s?a:null;return n.createElement(Q,{isMobile:!0},n.createElement(R,null,t),n.createElement(V,Object.assign({type:"tel",name:"contactPhone",autoFocus:i,placeholder:r,onChange:o,onBlur:e=>{u&&u(e),c(!0)}},j.A("partners.input.phone"),{phone:!0,error:!!a})),a?n.createElement(H,null,l):null)})),ne=I((e=>{let{title:t,placeholder:r,onChange:o,error:a,autoFocus:i,onBlur:s,setUnlockError:u}=e;return n.createElement(K,null,n.createElement(R,null,t),n.createElement(Y,{name:"message",id:"message",autoFocus:i,onChange:o,placeholder:r,onBlur:e=>{s&&s(e),u(!0)},error:!!a}),a?n.createElement(H,null,a):null)})),oe=e=>{let{disabled:t,text:r}=e;return n.createElement(G,Object.assign({type:"submit",disabled:t},j.A("partners.button.sendButton")),r)};const ae={username:[D.jQ.required],email:[D.jQ.required,D.jQ.emailStrong],website:[D.jQ.required,D.jQ.website],countryCode:[D.jQ.required,D.jQ.countryCode],contactNumber:[D.jQ.required,D.jQ.contactNumber],message:[D.jQ.required]};class ie extends n.Component{constructor(){super(...arguments),this.state={username:"",email:"",website:"",countryCode:"",contactNumber:"",message:"",errors:{common:void 0,fullName:void 0,username:void 0,email:void 0,website:void 0,countryCode:void 0,contactNumber:void 0,message:void 0},unlockErrorMessages:!1,submitButtonDisabled:!1},this.validateUserName=e=>this.validate({username:e}).catch(_()),this.validateEmail=e=>this.validate({email:e}).catch(_()),this.validateWebsite=e=>this.validate({website:e}).catch(_()),this.validateCountryCode=e=>this.validate({countryCode:e}).catch(_()),this.validateContactNumber=e=>this.validate({contactNumber:e}).catch(_()),this.validateMessage=e=>this.validate({message:e}).catch(_()),this.validateUserNameDebounced=F()(this.validateUserName,150),this.validateEmailDebounced=F()(this.validateEmail,150),this.validateWebsiteDebounced=F()(this.validateWebsite,150),this.validateCountryCodeDebounced=F()(this.validateCountryCode,150),this.validateContactNumberDebounced=F()(this.validateContactNumber,150),this.validateMessageDebounced=F()(this.validateMessage,150),this.validator=()=>Promise.reject("Validator is not initialized!"),this.handleUserNameChange=e=>{const t=e.target.value;this.validateUserNameDebounced(t),this.setState({username:t})},this.handleWebsiteChange=e=>{const t=e.target.value;this.validateWebsiteDebounced(t),this.setState({website:t})},this.handleEmailChange=e=>{const t=e.target.value;this.validateEmailDebounced(t),this.setState({email:t})},this.handleCountryCodeChange=e=>{const t=e.target.value;this.validateCountryCodeDebounced(t),this.setState({countryCode:t})},this.handleContactNumberChange=e=>{const t=e.target.value;this.validateContactNumberDebounced(t),this.setState({contactNumber:t})},this.handleMessageChange=e=>{const t=e.target.value;this.validateMessageDebounced(t),this.setState({message:t})},this.handleSubmit=e=>{e.preventDefault();const{username:t,email:r,website:n,countryCode:o,contactNumber:a,message:i}=this.state;this.validate({username:t,email:r,website:n,countryCode:o,contactNumber:a,message:i}).then((()=>this.props.sendPartnersForm({fullName:t,email:r,website:n,countryCode:o,contactNumber:a,message:i,target:window.location.href}))).then((()=>{this.props.addUiNotification({type:z.H_,message:this.props.strings.sendSuccessMessage}),this.setState({submitButtonDisabled:!1})}),(()=>{C()(this.props.errorsByProp)&&C()(this.state.errors)&&this.props.addUiNotification({type:z.pn,message:this.props.strings.sendErrorMessage}),this.setState({submitButtonDisabled:!0})}))}}componentDidMount(){this.initValidate(this.props)}UNSAFE_componentWillReceiveProps(e){this.initValidate(e)}componentWillUnmount(){this.validateUserNameDebounced.cancel(),this.validateEmailDebounced.cancel(),this.validateWebsiteDebounced.cancel(),this.validateCountryCodeDebounced.cancel(),this.validateContactNumberDebounced.cancel()}initValidate(e){const t={required:e.strings.errorMessageRequired,username:e.strings.errorMessageUsername,email:e.strings.errorEmail,website:e.strings.errorWebsite,countryCode:e.strings.errorCountryCode,contactNumber:e.strings.errorContactNumber};this.validator=(0,D.Te)(ae,t)}validate(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.setState({errors:w()(this.state.errors,Object.keys(e))}),this.props.clearErrors(),this.validator(e).then((()=>{C()(this.state.errors)&&this.setState({submitButtonDisabled:!1})}),(e=>{const t=Object.assign(Object.assign({},this.state.errors),e);return this.setState({errors:t,unlockErrorMessages:!0}),Promise.reject(t)}))}render(){const{strings:e,errorsByProp:t}=this.props,r=t.common;return n.createElement($,null,n.createElement("form",{noValidate:!0,onSubmit:this.handleSubmit},n.createElement(T,null,r?n.createElement(U,{error:r}):null,n.createElement(q,null,n.createElement(X,{title:e.username,placeholder:e.usernamePlaceholder,error:t.fullName||this.state.errors.username,onChange:this.handleUserNameChange,unlockErrorMessages:this.state.unlockErrorMessages,autoFocus:!0}),n.createElement(J,{title:e.email,placeholder:e.emailPlaceholder,error:t.email||this.state.errors.email,onChange:this.handleEmailChange,unlockErrorMessages:this.state.unlockErrorMessages,autoFocus:!0}),n.createElement(ee,{title:e.website,placeholder:e.websitePlaceholder,error:t.website||this.state.errors.website,onChange:this.handleWebsiteChange,unlockErrorMessages:this.state.unlockErrorMessages,autoFocus:!0}),n.createElement(W,null,n.createElement(te,{title:e.countryCode,placeholder:e.countryCodePlaceholder,error:t.countryCode||this.state.errors.countryCode,onChange:this.handleCountryCodeChange,unlockErrorMessages:this.state.unlockErrorMessages,autoFocus:!0}),n.createElement(re,{title:e.contactNumber,placeholder:e.contactNumberPlaceholder,error:t.contactNumber||this.state.errors.contactNumber,onChange:this.handleContactNumberChange,unlockErrorMessages:this.state.unlockErrorMessages,autoFocus:!0}))),n.createElement(q,null,n.createElement(ne,{title:e.message,placeholder:e.messagePlaceholder,error:t.message||this.state.errors.message,onChange:this.handleMessageChange,unlockErrorMessages:this.state.unlockErrorMessages,autoFocus:!0}),n.createElement(L,null,n.createElement(oe,Object.assign({text:e.sendButtonText,disabled:this.state.submitButtonDisabled},j.A("partners.send"))))))))}}const se=(0,v.connect)((e=>({errorsByProp:A.selectors.errorsByPropSelector(e)})),{sendPartnersForm:A.actions.sendPartnersForm,clearErrors:A.actions.clearError,addUiNotification:S.c});var ue=(0,h.Fo)("widget-partners-form-v3")(se(ie));const ce=m.ZP.div.withConfig({displayName:"partnersstyled__Wrapper",componentId:"sc-11x5y4k-0"})(["max-width:1140px;padding:70px 170px 60px;margin:0 auto 120px;border-radius:6px;background:#fff;@media (max-width:1200px){max-width:748px;padding:35px 30px 20px;margin:0 auto 70px;}@media (max-width:414px){max-width:100%;padding:30px 20px;border-radius:initial;}"]);var le=()=>n.createElement(d,null,n.createElement(o.Z,{isMobileDefault:!0}),n.createElement(ce,null,n.createElement(b,null),n.createElement(ue,null)))},88169:function(e,t,r){r.d(t,{Z:function(){return i}});var n=r(67294),o=r(54733);const a=e=>{let{html:t,tagName:r,className:o,style:a,onClick:i}=e;return n.createElement(r||"div",{dangerouslySetInnerHTML:{__html:t},className:o,style:a||{},onClick:i})};a.defaultProps={tagName:"div",className:"",onClick:o.ZT};var i=a},10649:function(e,t,r){r.d(t,{Te:function(){return o},Xy:function(){return i},jQ:function(){return a}});var n=r(1801);function o(e,t){return(0,n.setErrorMessages)(t),function(t){return(0,n.validate)(t,e)}}(0,n.setErrorMessages)({required:"This field is required.",email:"Please enter a valid email address.",password:"Password must be between 6-40 alphanumeric characters",terms:"Please agree on the rules",username:"Use 3-30 alphanumeric characters.",website:"Please enter a valid website URL",countryCode:"Invalid country code. You may use a maximum of 3 numbers",isEqual:"Field do not match",contactNumber:"Invalid phone number. You may use up to 17 characters.\n Including numbers 0-9 and characters +. () and -",code:"Invalid code. Must be 6 numbers"});const a=Object.assign(Object.assign({},n.rules),{terms:e=>e?Promise.resolve():Promise.reject((0,n.getErrorMessage)("terms")),countryCode:e=>e&&e.length&&e.length<=3?Promise.resolve():Promise.reject((0,n.getErrorMessage)("countryCode")),about:e=>e.length>360?Promise.reject((0,n.getErrorMessage)("about")):Promise.resolve(),code:e=>e&&e.length&&6!==e.length?Promise.reject((0,n.getErrorMessage)("code")):Promise.resolve()}),i=(e,t)=>e!==t?Promise.reject((0,n.getErrorMessage)("isEqual")):Promise.resolve()}}]);