2 lines
44 KiB
JavaScript
2 lines
44 KiB
JavaScript
(("undefined"!=typeof self?self:this).webpackJsonp__wix_thunderbolt_elements=("undefined"!=typeof self?self:this).webpackJsonp__wix_thunderbolt_elements||[]).push([[3],{1056:function(e,t,n){var a=n(676);e.exports=a.create("Captcha4108226129",{classes:{root:"Captcha4108226129__root",captcha:"Captcha4108226129__captcha",checkbox:"Captcha4108226129__checkbox"},vars:{},stVars:{},keyframes:{}},"",-1,e.i)},1065:function(e,t,n){e.exports={dialog:"_11F4V",xButton:"_8vZ-e",blockingLayer:"WmezM",content:"akXcv",actionButton:"_3l8yw",expandButton:"_1Axwi"}},1235:function(e,t,n){e.exports={preloader:"Sv44f",enabled:"D2Qbg","semi-rotate":"_1CYQu",semiRotate:"_1CYQu","inner-rotate":"lMM2r",innerRotate:"lMM2r",white:"_3bhOj",dark:"kQk_f"}},1236:function(e,t,n){e.exports={emailInput:"_1ggNP",invalid:"_2oEKP"}},1237:function(e,t,n){e.exports={AppsTextInputSkin:"_1FsS0",appsTextInputSkin:"_1FsS0",inputWrapper:"ABx0f",prefix:"aawvf",input:"_3rh7f","validation-indication":"_2DgfU",validationIndication:"_2DgfU",label:"_1qrSw",hasLabel:"_36G3j","required-indication":"_19QH-",requiredIndication:"_19QH-",ResponsiveTextInputSkin:"_3KHpU",responsiveTextInputSkin:"_3KHpU"}},1378:function(e,t,n){e.exports={dialog:"_2TkGT",xButton:"_3DZp7",blockingLayer:"_2gOCx",content:"_3aote",actionButton:"ks_Cr",expandButton:"_3a1n2",requestPasswordResetDialog:"tZwHx",title:"_3m7KS",wrapper:"_3xtJ7",subtitle:"_1klxb",footer:"JFaos"}},199:function(e,t,n){"use strict";n.r(t);var a=n(181),i=n(5),o=n(742),r=n(1056);t.default=a.forwardRef((function(e,t){var n=e.id,l=e.language,s=e.token,c=e.isMobileFriendly,d=void 0===c||c,u=e.onTokenChange,m=void 0===u?function(){}:u,f=e.onMouseEnter,p=void 0===f?function(){}:f,g=e.onMouseLeave,v=void 0===g?function(){}:g,_=e.onError,h=void 0===_?function(){}:_,b=e.onTimeout,w=void 0===b?function(){}:b,E=e.onVerified,y=void 0===E?function(){}:E,k=a.useState(!1),C=k[0],S=k[1],L=function(e){var t=e.language,n=e.theme,r=e.size,l=e.tabindex,s=e.verifiedCallback,c=e.expiredCallback,d=e.errorCallback,u=e.loadedCallback,m=Object(a.useRef)(),f=Object(a.useRef)(void 0);if(m.current)return m.current;return m.current=[function(e){return Object(i.__awaiter)(void 0,void 0,void 0,(function(){var a;return Object(i.__generator)(this,(function(i){switch(i.label){case 0:return!e||f.current?[2]:[4,Object(o.a)("recaptcha",{hl:t})];case 1:return a=i.sent(),f.current=a.render(e,{sitekey:"6LejwKAUAAAAACs5B-wV9ndjxrE49x3lGztPznl_",theme:n,size:r,tabindex:l,callback:s,"expired-callback":c,"error-callback":d}),u&&u(),[2]}}))}))},{reset:function(){return Object(i.__awaiter)(void 0,void 0,void 0,(function(){var e;return Object(i.__generator)(this,(function(n){switch(n.label){case 0:return"number"!=typeof f.current?[2]:[4,Object(o.a)("recaptcha",{hl:t})];case 1:return(e=n.sent())&&e.render&&e.reset(f.current),[2]}}))}))}}]}({language:l,theme:"light",size:"normal",verifiedCallback:function(e){m(e),y({type:"onVerified"})},expiredCallback:function(){m(void 0),w({type:"onTimeout"})},errorCallback:function(){h({type:"onError"})},loadedCallback:function(){S(!0)}}),M=L[0],x=L[1].reset;return a.useImperativeHandle(t,(function(){return{focus:function(){var e=document.querySelector("#"+n+" iframe");e&&(e.setAttribute("title","Captcha"),e.focus())},reset:function(){m(void 0),x()}}}),[n,x,m]),a.createElement("div",{id:n,className:Object(r.st)(r.classes.root,{loaded:C,isMobileFriendly:d}),onMouseEnter:p,onMouseLeave:v},a.createElement("div",{className:r.classes.captcha,ref:M}),a.createElement("input",{className:r.classes.checkbox,type:"checkbox",checked:!!s,required:!0,onChange:function(){},tabIndex:-1}))}))},200:function(e,t,n){"use strict";n.r(t);var a=n(5),i=n(181),o=n(671),r=n.n(o),l=n(675),s=n(1237),c=n.n(s),d="Text_Input",u="text_input_phone_format_length_validation_error",m="Please enter a phone number with {digits} digits",f="text_input_phone_format_default_validation_error",p="Please enter between 4 to 17 digits. You can include hyphens (-) or start with a (+), e.g., 555-123-4567 or +(222)987654321",g="text_input_phone_format_complex_phone_default_validation_error",v="Please enter between 4 to 17 digits. You can include dividers (-), e.g., 555-123-4567.",_=function(e,t,n){return void 0===n&&(n=!0),Array.from(t).reduce((function(e,t,n){return"-"===t?Object(a.__spreadArrays)(e,[n]):e}),[]).filter((function(t,a){return n?t<=e.length:t<=e.length+a}))},h=function(e,t){return t(d,u,m).replace("{digits}",""+(e?e.replace(/-/g,"").length:0))},b=function(e){return e(d,f,p)},w=function(e){return e(d,g,v)},E=function(){};t.default=i.forwardRef((function(e,t){var n,o=e.skin,s=e.name,d=e.id,u=e.value,m=e.inputType,f=void 0===m?"text":m,p=e.label,g=e.placeholder,v=e.readOnly,y=e.required,k=e.isDisabled,C=e.pattern,S=e.autoComplete,L=e.autoComplete_,M=e.maxLength,x=e.min,T=e.max,P=e.step,A=e.shouldShowValidityIndication,N=e.autoFocus,O=e.prefix,I=e.phoneFormat,F=void 0===I?"":I,B=e["aria-describedby"],D=e["aria-label"],U=e.validateValue,j=void 0===U?E:U,R=e.setValidityIndication,V=void 0===R?E:R,G=e.onBlur,H=void 0===G?E:G,q=e.onFocus,z=void 0===q?E:q,W=e.onKeyPress,K=void 0===W?E:W,Y=e.onInput,J=void 0===Y?E:Y,Q=e.onValueChange,Z=void 0===Q?E:Q,X=e.onChange,$=void 0===X?E:X,ee=e.onClick,te=void 0===ee?E:ee,ne=e.onDblClick,ae=void 0===ne?E:ne,ie=e.onMouseEnter,oe=void 0===ie?E:ie,re=e.onMouseLeave,le=void 0===re?E:re,se=i.useRef(null);i.useImperativeHandle(t,(function(){return{focus:function(){var e;null===(e=se.current)||void 0===e||e.focus()},blur:function(){var e;null===(e=se.current)||void 0===e||e.blur()},setCustomValidity:function(t){var n,a;"message"===t.type?null===(n=se.current)||void 0===n||n.setCustomValidity(t.message):null===(a=se.current)||void 0===a||a.setCustomValidity(function(e,t){var n=t.translate,a=t.phoneFormat;if(!n)return e.key;switch(e.key){case"PHONE_FORMAT_LENGTH_VALIDATION_ERROR":return h(a,n);case"PHONE_FORMAT_DEFAULT_VALIDATION_ERROR":return b(n);case"PHONE_FORMAT_COMPLEX_PHONE_DEFAULT_VALIDATION_ERROR":return w(n);default:return e.key}}(t,{translate:e.translate,phoneFormat:e.phoneFormat}))},getValidationMessage:function(){var e;return null===(e=se.current)||void 0===e?void 0:e.validationMessage}}}));var ce,de=i.useState(),ue=de[0],me=de[1],fe=i.useMemo((function(){return"tel"===f&&F?function(e,t){var n=_(e,t,!1),a=Array.from(e);return n.forEach((function(e){e<a.length&&a.splice(e,0," ")})),a.join("")}(u,F):u}),[u,F,f]),pe=r()(c.a[o],((n={})[c.a.hasLabel]=!!p,n[c.a.requiredIndication]=y,n[c.a.validationIndication]=!!A,n));return i.createElement("div",{id:d,className:pe,onClick:function(e){k||te(e)},onDoubleClick:function(e){k||ae(e)},onMouseEnter:function(e){k||oe(e)},onMouseLeave:function(e){k||le(e)}},!!p&&i.createElement("label",{htmlFor:"input_"+d,className:c.a.label},p),i.createElement("div",{className:c.a.inputWrapper},O&&i.createElement("div",{className:c.a.prefix},O),i.createElement("input",{name:s,ref:se,id:"input_"+d,className:r()(c.a.input,l.a),type:f,value:fe,onFocus:z,onKeyDown:K,onInput:J,onChange:function(e){var t=e.target.value,n=t;if(F){var a=t.length<fe.length;if(n=function(e,t,n){var a=_(e,t);return a.reduce((function(t,i,o){if(" "===e[i])t.splice(i-o,1);else if(" "!==e[i+1]||n){if(" "===e[i-1]&&n){e.split(" ").length-1<a.length?t.splice(i-o,1):t.splice(i-o-1,1)}}else{var r=1-o;t.splice(i+r,1)}return t}),Array.from(e)).join("")}(t,F,a),n.match(/[^\d]/))return}me(!0),Z(n),j(),V(!1)},onBlur:function(e){H(e),ue&&$(Object(a.__assign)(Object(a.__assign)({},e),{type:"change"})),me(!1),V(!0)},placeholder:g,readOnly:v,required:y,pattern:C,maxLength:(ce=null===M?void 0:M,F&&(ce=F.length),ce),minLength:F?F.length:void 0,disabled:k,autoComplete:S?"on":L||void 0,step:null===P?void 0:P,min:null===x?void 0:x,max:null===T?void 0:T,autoFocus:N,"aria-describedby":B,"aria-label":D||p?D:g})))}))},362:function(e,t,n){"use strict";n.r(t);var a=n(181),i=n(671),o=n.n(i),r=n(968),l=n(675),s=n(902),c=n(904),d=n(970),u=n(764),m=n(969),f=n.n(m),p=n(821),g=n(903),v=n(952);t.default=function(e){var t,n,i,m=e.id,_=e.isSocialLoginGoogleEnabled,h=e.isSocialLoginFacebookEnabled,b=e.isEmailLoginEnabled,w=e.isSocialAuthSupported,E=e.submit,y=e.onSwitchDialogLinkClick,k=e.onForgetYourPasswordClick,C=e.language,S=e.biVisitorId,L=e.smCollectionId,M=e.svSession,x=e.metaSiteId,T=e.onCloseDialogCallback,P=e.isCloseable,A=e.onTokenMessage,N=e.onBackendSocialLogin,O=e.reportBi,I=e.displayMode,F=e.getHostReadyPayload,B=e.translate.bind(null,p.e),D="loginHeadline_"+m,U=Object(s.a)(B),j=U[0],R=U[1],V=U[2],G=a.useState(!1),H=G[0],q=G[1],z=Object(g.a)(V(A),V(N),O,I,"default",void 0,(function(){return q(!0)}),R,F),W={language:C,biVisitorId:S,smCollectionId:L,svSession:M,metaSiteId:x,isCommunityChecked:!1,useGoogleSdk:e.useGoogleSdk},K=new Set;_&&K.add("google"),h&&K.add("facebook");var Y=!w&&b,J=_||h,Q=a.useState(J&&!Y),Z=Q[0],X=Q[1],$=a.useState(!1),ee=$[0],te=$[1],ne=B(p.a.title,"Log In"),ae=B(p.a.submitButton,"Log In"),ie=B(p.a.switchDialogLink,"Sign Up"),oe=B(p.a.switchToSignUp,"New to this site?"),re=B(p.a.emailSectionDivider,"or"),le=B(p.a.switchToAuthWithEmail,"Log in with Email"),se=B(p.a.socialSectionDivider,"or log in with"),ce=Z?a.createElement(c.a,{id:m,emailSectionDivider:re,switchToAuthWithEmail:le,goToEmailAuthScreen:V(X),enabledSocialVendors:K,iframeConfig:W,style:f.a,isEmailLoginEnabled:b,mode:"login",ready:H,ref:z,translate:B,error:j}):a.createElement(d.a,{id:m,translate:B,onForgetYourPasswordClick:k,onSubmitStart:function(){return te(!0)},onSubmitEnd:function(){return te(!1)},submit:E,style:f.a,mode:"login",submitButtonLabel:ae,language:C});return a.createElement(u.a,{isCloseable:P,translate:e.translate,onCloseDialogCallback:T,headlineId:D,displayMode:I,dialogPosition:"start"},a.createElement("div",{id:m,className:o()(f.a.memberLoginContent,(t={},t[f.a.formLoading]=ee,t))},a.createElement("h1",{id:D,className:f.a.title},ne),a.createElement("div",{className:o()(f.a.contentWrapper,f.a.wrapper,(n={},n[f.a.horizontal]=J,n[f.a.socialLoginMode]=Z,n[f.a.vertical]=!J,n[f.a.emailLoginMode]=!Z,n))},a.createElement("div",{className:f.a.switchToSignUpContainer},a.createElement("span",{"data-testid":"switchToSignUpDescription",className:f.a.switchToSignUpText},oe),a.createElement("button",{className:f.a.switchDialogLink,"data-testid":"switchToSignUp",onClick:y,onKeyDown:l.b,autoFocus:!0,type:"button"},ie)),ce,J&&(Y?a.createElement(v.a,{isSocialLoginGoogleEnabled:_,isSocialLoginFacebookEnabled:h,translate:B,mode:"login",styleMode:"dialog"}):a.createElement("div",{className:o()((i={},i[f.a.hideAuthMethod]=Z,i))},a.createElement("div",{className:o()(f.a.socialSectionDivider,f.a.sectionDivider)},a.createElement("span",null,se)),a.createElement(c.b,{id:m,enabledSocialVendors:K,iframeConfig:W,style:f.a,translate:B,mode:"login",ready:H,ref:z,error:j,isHorizontal:!0}))))),a.createElement("div",{className:f.a.preloaderContainer},a.createElement(r.a,{enabled:ee,dark:!0})))}},363:function(e,t,n){"use strict";n.r(t);t.default=function(e){return{reportBi:e.reportBi}}},425:function(e,t,n){"use strict";n.r(t);t.default=function(e){return{reportBi:e.reportBi}}},588:function(e,t,n){"use strict";n.r(t);var a=n(181),i=n(671),o=n.n(i),r=n(675),l=n(904),s=n(970),c=n(764),d=n(903),u=n(902),m=n(952),f=n(869),p=n.n(f),g="SMRegister_sign_up_new",v="SMRegister_sign_up_new",_="dialogMixinTranslations_Log_In",h="SMRegister_Already_Have_User",b="dialogMixinTranslations_or_sign_up_with",w="dialogMixinTranslations_or_email_new",E="dialogMixinTranslations_signup_switch_email",y={label:"SMForm_Policies_Join_Community_Label_new",read:{more:"SMForm_Policies_Join_Community_Link_new",less:"SMForm_Policies_Join_Community_Link_Less_new"},content:"SMForm_Policies_Join_Community_Read_More_Content_new",codeOfConductLink:"SMForm_Policies_CodeOfConduct_new"},k={content:"SMForm_Policies_Agreement_new",termsOfUseLink:"SMForm_Policies_TermsOfUse_new",privacyLink:"SMForm_Policies_PrivacyPolicy_new",and:"SMForm_Policies_And_new"},C="signUp.headline",S={title:"signUp.switchToSignUp",description:"signUp.switchToSignUpDescription"},L={readMore:"signUp.communityReadMore",label:"signUp.communityLabel",content:"signUp.communityContent",codeOfConductLink:"signUp.codeOfConductLink"},M={content:"signUp.privacyPolicyContent",privacyPolicyLink:"signUp.privacyPolicyLink",and:"signUp.policiesAnd",termsOfUseLink:"signUp.termsOfUseLink"},x=function(e,t){return function(){"_self"===e&&t()}},T=function(e){var t=e.onCloseDialogCallback,n=e.privacyLinkLabel,i=e.link,r=e.testId,l=e.className;return a.createElement("a",{className:o()(p.a.dialogLink,l),href:i.href,target:i.target,rel:"noreferrer","data-testid":r,onClick:x(i.target,t)},n)},P=function(e){var t=e.checked,n=e.setChecked,i=e.translate,o=e.isCodeOfConductNeeded,r=e.codeOfConductLink,l=e.onCloseDialogCallback,s=a.useState(!1),c=s[0],d=s[1],u=i(y.label,"Join this site\u2019s community."),m=i(y.read.more,"Read more"),f=i(y.read.less,"Read less"),g=i(y.content,"Connect with members of our site. Leave comments, follow people and more. Your nickname, profile image, and public activity will be visible on our site."),v=i(y.codeOfConductLink,"Code of Conduct.");return a.createElement("div",{className:p.a.communityCheckboxWrapper},a.createElement("div",{className:p.a.communityCheckboxFirstRow},a.createElement("label",{"data-testid":L.label},a.createElement("input",{name:"isGoing",type:"checkbox",checked:t,onChange:function(){return n(!t)}}),u),a.createElement("button",{className:p.a.dialogLink,onClick:function(){return d(!c)},"data-testid":L.readMore,type:"button"},c?f:m)),c&&a.createElement("div",null,a.createElement("span",{"data-testid":L.content},g),o&&a.createElement(T,{onCloseDialogCallback:l,privacyLinkLabel:v,testId:L.codeOfConductLink,link:r,className:p.a.codeOfConductLink})))},A=function(e){var t=e.translate,n=e.isPrivacyPolicyNeeded,i=e.isTermsOfUseNeeded,o=e.privacyPolicyLink,r=e.termsOfUseLink,l=e.onCloseDialogCallback,s=t(k.content,"By signing up, you agree to our"),c=t(k.privacyLink,"Privacy Policy"),d=t(k.and,"and"),u=t(k.termsOfUseLink,"Terms of Use");return a.createElement("div",{className:p.a.policies},a.createElement("span",{"data-testid":M.content},s),i&&a.createElement(T,{onCloseDialogCallback:l,privacyLinkLabel:u,testId:M.termsOfUseLink,link:r}),n&&i&&a.createElement("span",{"data-testid":M.and},d),n&&a.createElement(T,{onCloseDialogCallback:l,privacyLinkLabel:c,testId:M.privacyPolicyLink,link:o}))};t.default=function(e){var t,n,i,f,y=e.id,k=e.isSocialLoginGoogleEnabled,L=e.isSocialLoginFacebookEnabled,M=e.isEmailLoginEnabled,x=e.isSocialAuthSupported,T=e.submit,N=e.onSwitchDialogLinkClick,O=e.language,I=e.biVisitorId,F=e.smCollectionId,B=e.svSession,D=e.metaSiteId,U=e.isCommunityInstalled,j=e.isPrivacyPolicyNeeded,R=e.isTermsOfUseNeeded,V=e.isCodeOfConductNeeded,G=e.codeOfConductLink,H=e.privacyPolicyLink,q=e.termsOfUseLink,z=e.onCloseDialogCallback,W=e.isCloseable,K=e.joinCommunityCheckedByDefault,Y=e.onTokenMessage,J=e.onBackendSocialLogin,Q=e.reportBi,Z=e.displayMode,X=e.getHostReadyPayload,$=e.translate.bind(null,"dialogMixinTranslations"),ee=Object(u.a)($),te=ee[0],ne=ee[1],ae=ee[2],ie=a.useState(K),oe=ie[0],re=ie[1],le=a.useState(!1),se=le[0],ce=le[1],de="signUpHeadline_"+y,ue=Object(d.a)(ae(Y),ae(J),Q,Z,"default",oe,(function(){return ce(!0)}),ne,X),me={language:O,biVisitorId:I,smCollectionId:F,svSession:B,metaSiteId:D,isCommunityChecked:oe,useGoogleSdk:e.useGoogleSdk},fe=new Set;k&&fe.add("google"),L&&fe.add("facebook");var pe=!x&&M,ge=k||L,ve=a.useState(ge&&!pe),_e=ve[0],he=ve[1],be=a.useState(!1),we=be[0],Ee=be[1],ye=$(g,"Sign Up"),ke=$(v,"Sign Up"),Ce=$(_,"Log In"),Se=$(h,"Already a member?"),Le=$(w,"or"),Me=$(E,"Sign up with Email"),xe=$(b,"or sign up with"),Te=_e?a.createElement(l.a,{id:y,emailSectionDivider:Le,switchToAuthWithEmail:Me,goToEmailAuthScreen:ae(he),enabledSocialVendors:fe,iframeConfig:me,style:p.a,mode:"signup",isEmailLoginEnabled:M,translate:$,ref:ue,ready:se,error:te}):a.createElement(s.a,{id:y,translate:$,onSubmitStart:function(){return Ee(!0)},onSubmitEnd:function(){return Ee(!1)},submit:T,style:p.a,mode:"signup",submitButtonLabel:ke,isCommunityChecked:oe,language:O});return a.createElement(c.a,{isCloseable:W,translate:e.translate,onCloseDialogCallback:z,headlineId:de,displayMode:Z,dialogPosition:"start"},a.createElement("div",{id:y,className:o()(p.a.memberLoginContent,(t={},t[p.a.formLoading]=we,t))},a.createElement("h1",{id:"signUpHeadline_"+y,className:p.a.title,"data-testid":C},ye),a.createElement("div",{className:o()(p.a.contentWrapper,p.a.wrapper,(n={},n[p.a.horizontal]=ge,n[p.a.socialLoginMode]=_e,n[p.a.vertical]=!ge,n[p.a.emailLoginMode]=!_e,n))},a.createElement("div",{className:p.a.switchToSignUpContainer},a.createElement("span",{"data-testid":S.description,className:p.a.switchToSignUpText},Se),a.createElement("button",{className:p.a.switchDialogLink,"data-testid":S.title,onClick:N,onKeyDown:r.b,autoFocus:!0,type:"button"},Ce)),Te,ge&&(pe?a.createElement(m.a,{isSocialLoginGoogleEnabled:k,isSocialLoginFacebookEnabled:L,translate:$,mode:"signup",styleMode:"dialog"}):a.createElement("div",{className:o()((i={},i[p.a.hideAuthMethod]=_e,i))},a.createElement("div",{className:o()(p.a.socialSectionDivider,p.a.sectionDivider)},a.createElement("span",null,xe)),a.createElement(l.b,{id:y,enabledSocialVendors:fe,iframeConfig:me,style:p.a,translate:$,mode:"signup",ready:se,ref:ue,error:te,isHorizontal:!0})))),a.createElement("div",{className:p.a.formFooter},U&&a.createElement(P,{checked:oe,setChecked:re,translate:$,isCodeOfConductNeeded:V,codeOfConductLink:G,onCloseDialogCallback:z}),(j||R)&&a.createElement(A,{translate:$,isPrivacyPolicyNeeded:j,isTermsOfUseNeeded:R,termsOfUseLink:q,privacyPolicyLink:H,onCloseDialogCallback:z}))),a.createElement("div",{className:o()(p.a.preloader,p.a.circlePreloader,(f={},f[p.a.formLoading]=we,f))}))}},653:function(e,t,n){"use strict";n.r(t);var a=n(5),i=n(181),o=n(671),r=n.n(o),l=n(672),s=n(184),c=n(953),d=n(764),u=n(855),m=n(1378),f=n.n(m),p="SMResetPassMail_title",g="SMResetPassMail_Enter_Email",v="dialogMixinTranslations_RESET_PASSWORD_BUTTON",_={title:"SMForm_Email",label:"SMForm_Email"};t.default=function(e){var t=e.id,n=e.isCloseable,o=e.onCloseDialogCallback,m=e.onSubmitCallback,h=e.translate.bind(null,"dialogMixinTranslations"),b=i.useState(""),w=b[0],E=b[1],y="requestPasswordResetHeadline_"+t,k=h(p,"Reset Password"),C=h(g,"Please enter your email address"),S=h(v,"Reset Password"),L={title:h(_.title,"Email"),label:h(_.label,"Email")},M=i.useRef(null),x=function(e){return Object(a.__awaiter)(void 0,void 0,void 0,(function(){var t,n,i;return Object(a.__generator)(this,(function(a){switch(a.label){case 0:if(e.preventDefault(),!M.current.validate(h))return[3,4];a.label=1;case 1:return a.trys.push([1,3,,4]),[4,m(w)];case 2:return a.sent(),[3,4];case 3:return t=a.sent(),n=Object(u.a)(t),i=h("SMForm_Error_General_Err","Server error. Try again later."),M.current.setError(h(n,i)),[3,4];case 4:return[2]}}))}))},T=Object(l.e)(x);return i.createElement(d.a,{isCloseable:n,translate:e.translate,onCloseDialogCallback:o,headlineId:y},i.createElement("div",{id:t,className:r()(f.a.requestPasswordResetDialog)},i.createElement("h3",{id:y,className:f.a.title,"data-testid":"title"},k),i.createElement("form",{className:f.a.wrapper,onKeyDown:T},i.createElement("div",{"data-testid":"enterEmailSubtitle",className:f.a.subtitle},C),i.createElement("div",{className:f.a.content},i.createElement(c.a,{id:"emailInput_"+t,inputType:"email","data-testid":"emailInput",value:w,label:L.label,onValueChanged:E,ref:M,isValid:!0,autoFocus:!0,validationFn:u.b})),i.createElement("div",{className:f.a.footer},i.createElement("div",{"data-testid":"submit",className:f.a.actionButton},i.createElement(s.default,{label:S,id:"okButton_"+t,isDisabled:!1,hasPlatformClickHandler:!0,link:void 0,onClick:x}))))))}},742:function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));function a(){return window.FB}var i=function(e){return"function"==typeof e.require&&"function"==typeof e.define&&e.define.amd},o="https://player.vimeo.com/api/player.js",r=function(){return new Promise((function(e,t){var n=function(){var e=window.document.createElement("script");return e.defer=!0,e.async=!0,e.src=o,e}();n.addEventListener("load",(function(){return e(l())})),n.addEventListener("error",t),window.document.body.insertBefore(n,window.document.body.firstChild)}))};function l(){return window.Vimeo}function s(){return window.DM}var c="https://player.twitch.tv/js/embed/v1.js",d=function(){return new Promise((function(e,t){var n=function(){var e=window.document.createElement("script");return e.defer=!0,e.async=!0,e.src=c,e}();n.addEventListener("load",(function(){return e(u())})),n.addEventListener("error",t),window.document.body.insertBefore(n,window.document.body.firstChild)}))};function u(){return window.Twitch}function m(){return window.YT}function f(){return window.GM}function p(){return window.grecaptcha}function g(){return window.LineIt}var v=function(){return new Promise((function(e,t){var n=function(){var e=window.document.createElement("script");return e.defer=!0,e.async=!0,e.src="https://d.line-scdn.net/r/web/social-plugin/js/thirdparty/loader.min.js",e}();n.addEventListener("load",(function(){e(g())})),n.addEventListener("error",t),window.document.body.append(n)}))},_={facebook:function(e){return Boolean(a())?Promise.resolve(a()):new Promise((function(t){window.fbAsyncInit=function(){t(a())};var n,i,o,r,l,s,c=window.document.createDocumentFragment();c.appendChild(((n=document.createElement("div")).id="fb-root",n.style.display="none",n)),c.appendChild((o=(i=e).language,r=i.appId,l=i.version,(s=window.document.createElement("script")).defer=!0,s.async=!0,s.crossOrigin="anonymous",s.src="//connect.facebook.net/"+o+"/sdk.js#xfbml=1&appId="+r+"&version="+l,s)),window.document.body.insertBefore(c,window.document.body.firstChild)}))},vimeo:function(){return Boolean(l())?Promise.resolve(l()):i(window)?new Promise((function(e,t){return window.require([o],(function(t){window.Vimeo={Player:t},e(l())}),t)})):r()},dailyMotion:function(){return Boolean(s())?Promise.resolve(s()):new Promise((function(e){window.dmAsyncInit=function(){e(s())};var t=function(){var e=window.document.createElement("script");return e.defer=!0,e.async=!0,e.src="https://api.dmcdn.net/all.js",e}();t.addEventListener("load",(function(){return e(s())})),window.document.body.insertBefore(t,window.document.body.firstChild)}))},twitch:function(){return Boolean(u())?Promise.resolve(u()):i(window)?new Promise((function(e,t){return window.require([c],(function(t){window.Twitch=t,e(t)}),t)})):d()},youtube:function(){return Boolean(m())?Promise.resolve(m()):new Promise((function(e){var t=function(){var e=window.document.createElement("script");return e.defer=!0,e.async=!0,e.src="https://www.youtube.com/iframe_api",e}();window.onYouTubeIframeAPIReady=function(){return e(m())},window.document.body.insertBefore(t,window.document.body.firstChild)}))},googleMaps:function(e){return Boolean(f())?Promise.resolve(f()):new Promise((function(t){window.initMap=function(){window.GM=window.GM||{},window.GM.autocomplete||(window.GM.autocomplete=new window.google.maps.places.AutocompleteService),window.GM.geocode||(window.GM.geocode=new window.google.maps.Geocoder),t(f())};var n=function(e){var t=window.document.createElement("script");return t.defer=!0,t.async=!0,t.src="https://maps.googleapis.com/maps/api/js?libraries=places&key="+e.apiKey+"&callback=initMap&language="+e.language,t}(e);window.document.body.insertBefore(n,window.document.body.firstChild)}))},recaptcha:function(e){return Boolean(p())?Promise.resolve(p()):new Promise((function(t){window.grecaptcha_onload=function(){t(p())},window.document.body.append(function(e){var t=e.hl,n=window.document.createElement("script");n.defer=!0,n.async=!0;var a=new URL("https://www.google.com/recaptcha/api.js");t&&a.searchParams.append("hl",t);return a.searchParams.append("onload","grecaptcha_onload"),a.searchParams.append("render","explicit"),n.src=a.toString(),n}(e))}))},lineShare:function(){return void 0===g()?v():new Promise((function(e){e(g())}))}};function h(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];window.loadScriptPromises=window.loadScriptPromises||{};var a=window.loadScriptPromises[e]?window.loadScriptPromises[e]:_[e].apply(_,t);return window.loadScriptPromises[e]=a,a}},764:function(e,t,n){"use strict";var a=n(181),i=n.n(a),o=n(675);function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var l=a.createElement("defs",null,a.createElement("filter",{id:"close_svg__a",width:"136.7%",height:"135.5%",x:"-18.3%",y:"-17.8%",filterUnits:"objectBoundingBox"},a.createElement("feMorphology",{in:"SourceAlpha",operator:"dilate",radius:9,result:"shadowSpreadOuter1"}),a.createElement("feOffset",{dx:2,dy:12,in:"shadowSpreadOuter1",result:"shadowOffsetOuter1"}),a.createElement("feGaussianBlur",{in:"shadowOffsetOuter1",result:"shadowBlurOuter1",stdDeviation:14}),a.createElement("feColorMatrix",{in:"shadowBlurOuter1",result:"shadowMatrixOuter1",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"}),a.createElement("feMerge",null,a.createElement("feMergeNode",{in:"shadowMatrixOuter1"}),a.createElement("feMergeNode",{in:"SourceGraphic"})))),s=a.createElement("g",{fillRule:"evenodd",filter:"url(#close_svg__a)",transform:"translate(-421 -24)"},a.createElement("path",{d:"M439.77 28l1.23 1.23-6.77 6.77 6.77 6.77-1.23 1.23-6.77-6.77-6.77 6.77-1.23-1.23 6.769-6.77L425 29.23l1.23-1.23 6.77 6.769L439.77 28z"}));function c(e){return a.createElement("svg",r({width:24,height:24,viewBox:"0 0 24 24"},e),l,s)}var d=n(1065),u=n.n(d);t.a=function(e){var t=e.isCloseable,n=e.children,a=e.translate,r=e.onCloseDialogCallback,l=e.headlineId,s=e.displayMode,d=void 0===s?"fullscreen":s,m=e.dialogPosition,f=void 0===m?"center":m;return i.a.createElement("div",{className:u.a.dialog,onKeyDown:function(e){e.keyCode===o.f.escape&&r()},"data-testid":"siteMembersDialogLayout","data-layout":d},i.a.createElement("div",{className:u.a.blockingLayer,onClick:r,"data-testid":"siteMembersDialogBlockingLayer"}),i.a.createElement("div",{role:"dialog",tabIndex:-1,"aria-labelledby":l,className:u.a.content,"data-dialogposition":f},t&&i.a.createElement("button",{className:u.a.xButton,onClick:r,"data-testid":"xButton","aria-label":a("dialogMixinTranslations","dialogMixinTranslations_Close_Dialog","close dialog"),type:"button"},i.a.createElement(c,null)),n))}},821:function(e,t,n){"use strict";n.d(t,"e",(function(){return a})),n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return o})),n.d(t,"d",(function(){return r})),n.d(t,"a",(function(){return l}));var a="dialogMixinTranslations",i=4,o=100,r={socialAuth:"socialAuth",emailAuth:"emailAuth",socialAuthMessage:"socialAuthMessage",copyLinkButton:"copyLinkButton"},l={title:"dialogMixinTranslation_log_in",submitButton:"dialogMixinTranslations_log_in_btn_new",switchDialogLink:"SMRegister_sign_up_new",mobileForgotPassword:"dialogMixinTranslations_forgot_password_mobile_new",forgotPassword:"dialogMixinTranslations_forgot_password",switchToSignUp:"dialogMixinTranslations_switch_to_signup_material",socialSectionDivider:"dialogMixinTranslations_or_log_in_with",emailSectionDivider:"dialogMixinTranslations_or_email_new",inAppBrowserSocialAuthSignUpMessagePrefix:"dialogMixinTranslations_to_sign_up_with",inAppBrowserSocialAuthLoginMessagePrefix:"dialogMixinTranslations_to_login_with",inAppBrowserSocialAuthLoginMessageSuffix:"dialogMixinTranslations_visit_another_browser",inAppBrowserSocialAuthMessageOr:"dialogMixinTranslations_or",facebookLabel:"dialogMixinTranslations_facebook",googleLabel:"dialogMixinTranslations_google",copyLinkText:"dialogMixinTranslations_copy_link",password:{title:"SMForm_Password",label:"PasswordLogin_Password"},email:{title:"SMForm_Email",label:"SMForm_Email"},social:{iframeTitle:"dialogMixinTranslations_social_login",google:"dialogMixinTranslations_login_google",facebook:"dialogMixinTranslations_login_facebook"},switchToAuthWithEmail:"dialogMixinTranslations_login_switch_email",linkCopied:"dialogMixinTranslations_link_copied"}},855:function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"c",(function(){return u})),n.d(t,"d",(function(){return m})),n.d(t,"b",(function(){return f}));var a=n(821),i={match:"SMForm_Error_Password_Retype"},o={required:"SMForm_Error_Password_Blank",ascii:"SMForm_Error_Non_Ascii_Chars",signupLength:"SMForm_Error_Password_Length",loginLength:"SMForm_Error_Password_Length_Login"},r={required:"SMForm_Error_Email_Blank",format:"SMForm_Error_Email_Invalid"},l=function(e){var t,n,a;return(a=(a="object"==typeof e?(null===(t=null==e?void 0:e.details)||void 0===t?void 0:t.errorcode)||(null===(n=null==e?void 0:e.details)||void 0===n?void 0:n.errorCode)||"SMForm_Error_General_Err":e).toString().replace("-","")).includes("SMForm_Error_")?a:"SMForm_Error_"+a},s=function(e){return e.charCodeAt(0)<127},c=function(e,t){return 0!==e.length?null:t(o.required,"Password cannot be blank")},d=function(e,t){return function(e){return Array.from(e).every(s)}(e)?null:t(o.ascii,"Password must contain only ASCII characters")},u={signup:function(e,t){return c(e,t)||function(e,t){return e.length<a.c||e.length>=a.b?t(o.signupLength,"Password length must be between {0} and {1}").replace("{0}",a.c.toString()).replace("{1}",a.b.toString()):null}(e,t)||d(e,t)},login:function(e,t){return c(e,t)||function(e,t){return e.length<a.c?t(o.loginLength,"Passwords must be at least 4 characters long. Try again."):null}(e,t)||d(e,t)}},m=function(e,t,n){var a=u.signup(e,n);return a||(e!==t?n(i.match,"Passwords are not the same"):null)},f=function(e,t){return 0===e.length?t(r.required,"Email cannot be blank"):/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e)?null:t(r.format,"Email is invalid")}},869:function(e,t,n){e.exports={dialog:"_3kgor",xButton:"_3rSaY",blockingLayer:"_3nDPE",content:"aonqC",actionButton:"_2KYMK",expandButton:"_3v1H-",memberLoginContent:"_2nKSe",formLoading:"_1lq-B",title:"_15DDX",contentWrapper:"_6UDPd",horizontal:"_14jSF",customLogin:"_7e4-q",divider:"_1ABF8",socialLoginWrapper:"_3tCiR",switchToEmailLink:"_32GNY",note:"hC8b0",emailLoginMode:"_2QSEv",socialSectionDivider:"_1q-e7",password:"_1RlXb",email:"MQAj0",socialLoginIframe:"_2Qh4_",ready:"EMAmg",socialLoginIframeHorizontal:"_3zEfu",switchToSignUpContainer:"_1axeK",switchToSignUpText:"_1T3e4",switchDialogLink:"qTEkA",sectionDivider:"_3fqFH",forgotYourPasswordLink:"_2GLgU",mobile:"_3q6f7",desktop:"_3TBnK",switchLinkContainer:"_3gF_x",preloaderContainer:"_1o9Hd",hideAuthMethod:"dWWEK",captchaWrapper:"_261Bs",socialLoginErrorMsg:"_1Gsmj",hiddenLinkCopiedToast:"ureNT",visiblelinkCopiedToast:"IVl43",dialogSocialAuthUnsupportedMessage:"_3lg4Z",customSocialAuthUnsupportedMessage:"_4ZNrK",inAppBrowserSocialAuth:"_2c16g",socialAuthIcons:"_1N1kq",socialIcon:"_24c7g",inAppSocialAuthText:"_2nB7r",copyLink:"_2GwgW",formFooter:"_3SkbC",dialogLink:"_1FJM2",communityCheckboxWrapper:"jkbsq",communityCheckboxFirstRow:"_2K3ZN",policies:"_1b8ap",codeOfConductLink:"_3Q5za"}},902:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n(181),i=n(855),o=function(e,t){void 0===t&&(t="");var n,o=a.useState(t),r=o[0],l=o[1];return[r,function(t){var n=Object(i.a)(t),a=e("SMForm_Error_General_Err","Server error. Try again later.");l(e(n,a))},(n=function(){return l("")},function(e){return function(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];return n(),e.apply(void 0,t)}})]}},903:function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var a=n(5),i=n(181),o="auth-token",r="auth-done",l="auth-clicked",s="page-ready",c="host-ready",d="wix-social-login",u=function(e,t,n,a){var i=e.token,o=e.vendor;i&&"function"==typeof t&&t(i,o,a).catch(n)},m=function(e,t,n,a){e.error?n(e.error):t(JSON.parse(e.data),"google",a).catch(n)},f=function(e,t,n,a,c,f,v,_,h){return void 0===v&&(v=function(){return 0}),void 0===_&&(_=function(){return 0}),void 0===h&&(h=function(){return{}}),i.useEffect((function(){return i=function(e,t,n,a,i,c,d,f){return function(p){switch(p.type){case l:g(p,a,c,d);break;case o:u(p,e,i,f);break;case r:m(p,t,i,f);break;case s:n();break;default:return}}}(e,t,v,n,_,a,c,f),p=function(e){var t;try{t=JSON.parse(e.data)}catch(e){return}t.id===d&&i(t)},window.addEventListener("message",p),function(){return window.removeEventListener("message",p)};var i,p}),[f,a,c,t,e,n,v,_]),function(e){var t;"about:blank"===(null===(t=null==e?void 0:e.contentDocument)||void 0===t?void 0:t.URL)?null==e||e.addEventListener("load",(function(){p(e,h)})):p(e,h)}},p=function(e,t){var n;null===(n=null==e?void 0:e.contentWindow)||void 0===n||n.postMessage({action:c,src:d,payload:t()},"https://users.wix.com")},g=function(e,t,n,i){t(Object(a.__assign)({src:5,evid:605,socialNetwork:e.vendor,layout:n,form_type:i},e),{endpoint:"site-members"})}},904:function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return u}));var a=n(5),i=n(181),o=n(671),r=n.n(o),l=n(184),s=n(968),c=n(821),d=i.forwardRef((function(e,t){var n=e.id,a=e.emailSectionDivider,o=e.switchToAuthWithEmail,s=e.enabledSocialVendors,d=e.iframeConfig,m=e.goToEmailAuthScreen,f=e.isEmailLoginEnabled,p=e.style,g=e.mode,v=e.ready,_=e.translate,h=e.error;return i.createElement(i.Fragment,null,i.createElement("div",{"data-testid":c.d.socialAuth,className:p.socialLoginWrapper},i.createElement(u,{id:n,enabledSocialVendors:s,iframeConfig:d,style:p,mode:g,ready:v,translate:_,error:h,ref:t})),f&&i.createElement(i.Fragment,null,i.createElement("div",{className:r()(p.emailSectionDivider,p.sectionDivider)},i.createElement("span",{className:p.emailSectionDividerText},a)),i.createElement("div",{"data-testid":"switchToEmailLink",className:p.expandButton},i.createElement(l.default,{label:o,"data-testid":"switchToEmailLink",id:"switchToEmailLink_"+n,isDisabled:!1,hasPlatformClickHandler:!0,link:void 0,onClick:function(){return m(!1)}}))))})),u=i.forwardRef((function(e,t){var n,o=e.enabledSocialVendors,l=e.iframeConfig,d=e.style,u=e.mode,f=e.translate,p=e.isHorizontal,g=e.ready,v=e.error,_=m(Object(a.__assign)(Object(a.__assign)({},l),{enabledSocialVendors:o,mode:u}),!!p),h=Array.from(o).length,b=p?"50px":40*h+16*(h-1)+4+"px",w=i.useState(!!g),E=w[0],y=w[1],k=r()(d.socialLoginIframe,((n={})[d.ready]=E||g,n)),C=f(c.a.social.iframeTitle,"Social login");return i.createElement("div",{className:d.socialLoginWrapper},i.createElement("iframe",{"data-testid":"socialAuthIframe",src:_,className:k,title:C,frameBorder:"0",scrolling:"no",style:{height:b},onLoad:function(){return y(!0)},ref:t}),i.createElement(s.a,{enabled:!(E||g),dark:!0}),i.createElement("p",{className:d.socialLoginErrorMsg},v))})),m=function(e,t){var n={mode:e.mode,lang:e.language,vendors:Array.from(e.enabledSocialVendors).join(","),extraCss:r()("svg-style",{horizontal:t}),visitorId:e.biVisitorId,collectionId:e.smCollectionId,svSession:e.svSession,useGoogleSdk:(!!e.useGoogleSdk).toString()},a=new URLSearchParams(n).toString(),i=f(e.isCommunityChecked);return"https://users.wix.com/wix-sm/view/social/frame/"+e.metaSiteId+"?"+a+"#privacyStatus="+i},f=function(e){return e?"PUBLIC":"PRIVATE"}},952:function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var a=n(181),i=n(671),o=n.n(i);function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var l=a.createElement("path",{d:"M113.47 309.408L95.648 375.94l-65.139 1.378C11.042 341.211 0 299.9 0 256c0-42.451 10.324-82.483 28.624-117.732h.014L86.63 148.9l25.404 57.644c-5.317 15.501-8.215 32.141-8.215 49.456.002 18.792 3.406 36.797 9.651 53.408z",fill:"#fbbb00"}),s=a.createElement("path",{d:"M507.527 208.176C510.467 223.662 512 239.655 512 256c0 18.328-1.927 36.206-5.598 53.451-12.462 58.683-45.025 109.925-90.134 146.187l-.014-.014-73.044-3.727-10.338-64.535c29.932-17.554 53.324-45.025 65.646-77.911h-136.89V208.176h245.899z",fill:"#518ef8"}),c=a.createElement("path",{d:"M416.253 455.624l.014.014C372.396 490.901 316.666 512 256 512c-97.491 0-182.252-54.491-225.491-134.681l82.961-67.91c21.619 57.698 77.278 98.771 142.53 98.771 28.047 0 54.323-7.582 76.87-20.818l83.383 68.262z",fill:"#28b446"}),d=a.createElement("path",{d:"M419.404 58.936l-82.933 67.896C313.136 112.246 285.552 103.82 256 103.82c-66.729 0-123.429 42.957-143.965 102.724l-83.397-68.276h-.014C71.23 56.123 157.06 0 256 0c62.115 0 119.068 22.126 163.404 58.936z",fill:"#f14336"});function u(e){return a.createElement("svg",r({className:"google_svg__login-svg",viewBox:"0 0 512 512"},e),l,s,c,d)}function m(){return(m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var f=a.createElement("rect",{width:266.89,height:266.89,rx:14.73,ry:14.73,fill:"#4267b2"}),p=a.createElement("path",{d:"M184.15 266.89V163.54h34.69l5.16-40.28h-39.85V97.54c0-11.66 3.24-19.61 20-19.61h21.33v-36a285.42 285.42 0 00-31.08-1.59c-30.75 0-51.81 18.77-51.81 53.24v29.71h-34.82v40.28h34.78v103.32z",fill:"#fff"});function g(e){return a.createElement("svg",m({className:"facebook_svg__login-svg",viewBox:"0 0 266.89 266.89"},e),f,p)}var v=n(821),_=n(969),h=n.n(_),b=function(e){var t,n=e.isSocialLoginFacebookEnabled,i=e.isSocialLoginGoogleEnabled,r=e.translate,l=e.mode,s=e.styleMode,c=void 0===s?"dialog":s,d=a.useState(!1),m=d[0],f=d[1],p={dialog:h.a.dialogSocialAuthUnsupportedMessage,custom:h.a.customSocialAuthUnsupportedMessage},_=r(v.a.linkCopied,"Link Copied"),b=r(v.a.copyLinkText,"Copy link"),w=r(v.a.facebookLabel,"Facebook"),E=r(v.a.googleLabel,"Google"),y=r(v.a.inAppBrowserSocialAuthMessageOr,"or"),k=r(v.a.inAppBrowserSocialAuthLoginMessageSuffix,"copy this page link and open it in another browser."),C=function(){switch(l){case"login":return r(v.a.inAppBrowserSocialAuthLoginMessagePrefix,"To Login with");case"signup":return r(v.a.inAppBrowserSocialAuthSignUpMessagePrefix,"To Sign Up with");default:return""}}(),S={google:E,facebook:w,googlefacebook:E+" "+y+" "+w}[(i?"google":"")+(n?"facebook":"")],L=S?C+" "+S+" "+k:"";return a.createElement(a.Fragment,null,a.createElement("div",{"data-testid":v.d.socialAuthMessage,className:o()(h.a.inAppBrowserSocialAuth,p[c])},a.createElement("div",{className:o()(h.a.socialAuthIcons)},i&&a.createElement(u,{className:o()(h.a.socialIcon)}),n&&a.createElement(g,{className:o()(h.a.socialIcon)})),a.createElement("div",{className:o()(h.a.inAppSocialAuthText)},L,"\xa0",a.createElement("button",{type:"button",className:o()(h.a.copyLink),onClick:function(){var e=document.createElement("input"),t=window.location.href;document.body.appendChild(e),e.value=t,e.select(),document.execCommand("copy"),document.body.removeChild(e),f(!0),setTimeout((function(){f(!1)}),3e3)},"data-testid":v.d.copyLinkButton},b))),a.createElement("div",{className:o()(h.a.hiddenLinkCopiedToast,(t={},t[h.a.visiblelinkCopiedToast]=m,t))},_))}},953:function(e,t,n){"use strict";var a=n(181),i=n(671),o=n.n(i),r=n(200),l=n(1236),s=n.n(l),c="siteMembers.container",d="siteMembers.inlineErrorMsg",u="siteMembers.input";t.a=a.forwardRef((function(e,t){var n,i=e.id,l=e.value,m=e.onValueChanged,f=e.label,p=e.placeholder,g=e.isValid,v=e.errorMessage,_=e.inputType,h=e.autoFocus,b=e.validationFn,w=a.useRef(null),E=a.useState(!g),y=E[0],k=E[1],C=a.useState(v),S=C[0],L=C[1],M="siteMembersInputErrorMessage_"+i;return a.useImperativeHandle(t,(function(){return{validate:function(e){var t=null==b?void 0:b(l,e);return!t||(k(!0),L(t),w.current.setCustomValidity({type:"message",message:t}),w.current.focus(),!1)},setError:function(e){k(!0),L(e),w.current.setCustomValidity({type:"message",message:e})}}})),a.createElement("div",{id:i,className:o()(s.a.emailInput,(n={},n[s.a.invalid]=y,n)),"data-testid":c},a.createElement(r.default,{ref:w,id:"input_"+i,inputType:_,skin:"AppsTextInputSkin","data-testid":u,value:l,label:f,placeholder:p,required:!0,autoComplete:!1,autoComplete_:"off",readOnly:!1,isDisabled:!1,autoFocus:h,shouldShowValidityIndication:y,hideValidityIndication:function(){k(!1),L(void 0)},onValueChange:m,"aria-describedby":S?M:void 0}),S&&a.createElement("span",{id:M,"data-testid":d},S))}))},968:function(e,t,n){"use strict";var a=n(181),i=n(671),o=n.n(i),r=n(1235),l=n.n(r);t.a=function(e){var t,n=e.enabled,i=e.dark;return a.createElement("div",{className:o()(l.a.preloader,(t={},t[l.a.enabled]=!!n,t[l.a.dark]=!!i,t))})}},969:function(e,t,n){e.exports={dialog:"m1MV9",xButton:"_10uXQ",blockingLayer:"_9_QIp",content:"_3g1fN",actionButton:"XIv2V",expandButton:"_2oziF",memberLoginContent:"_2iiFd",formLoading:"_338x7",title:"_3MX-O",contentWrapper:"gwbOA",horizontal:"_1XPg8",customLogin:"g4lFC",divider:"xXUD6",socialLoginWrapper:"_1GfG1",switchToEmailLink:"_3_VaM",note:"_2DBqe",emailLoginMode:"_1gnMd",socialSectionDivider:"_3a1aA",password:"Hj-WZ",email:"VydXt",socialLoginIframe:"_3CZeg",ready:"_3PFTR",socialLoginIframeHorizontal:"_140Fu",switchToSignUpContainer:"FPiye",switchToSignUpText:"nJUqU",switchDialogLink:"_2tNZN",sectionDivider:"_1OTcP",forgotYourPasswordLink:"_1H91a",mobile:"_2q9pJ",desktop:"_14lTW",switchLinkContainer:"_3Pcpx",preloaderContainer:"_1H70r",hideAuthMethod:"rFhKZ",captchaWrapper:"_72Y5k",socialLoginErrorMsg:"hrzD9",hiddenLinkCopiedToast:"_1j_EM",visiblelinkCopiedToast:"_27IRq",dialogSocialAuthUnsupportedMessage:"l13MR",customSocialAuthUnsupportedMessage:"_3A2wL",inAppBrowserSocialAuth:"_2zjnY",socialAuthIcons:"EVGAJ",socialIcon:"_1AW23",inAppSocialAuthText:"_3u6-f",copyLink:"_1ysiC"}},970:function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var a=n(5),i=n(181),o=n(671),r=n.n(o),l=n(672),s=n(184),c=n(953),d=n(855),u=n(199),m=n(821),f=function(e){var t=e.id,n=e.translate,o=e.onForgetYourPasswordClick,f=e.onSubmitStart,p=e.onSubmitEnd,g=e.submit,v=e.style,_=e.mode,h=e.submitButtonLabel,b=e.isCommunityChecked,w=e.language,E=i.useState(""),y=E[0],k=E[1],C=i.useState(""),S=C[0],L=C[1],M=i.useState(""),x=M[0],T=M[1],P=i.useState(!1),A=P[0],N=P[1],O=i.useState(!1),I=O[0],F=O[1],B="login"===_,D=function(e){return Object(a.__awaiter)(void 0,void 0,void 0,(function(){var t,i,o,r;return Object(a.__generator)(this,(function(a){switch(a.label){case 0:if(e.preventDefault(),t=q.current.validate(n),!H.current.validate(n)||!t)return[3,5];f(),N(!0),a.label=1;case 1:return a.trys.push([1,3,,4]),[4,g(y,S,{recaptchaToken:x||void 0,isCommunityChecked:b})];case 2:return a.sent(),[3,4];case 3:return i=a.sent(),(o=Object(d.a)(i)).includes("19971")&&F(!0),r=n("SMForm_Error_General_Err","Server error. Try again later."),B?q.current.setError(n(o,r)):H.current.setError(n(o,r)),[3,4];case 4:N(!1),p(),a.label=5;case 5:return[2]}}))}))},U=Object(l.e)(D),j=n(m.a.mobileForgotPassword,"Forgot password?"),R=n(m.a.forgotPassword,"Forgot password?"),V={title:n(m.a.password.title,"Password"),label:n(m.a.password.label,"Password")},G={title:n(m.a.email.title,"Email"),label:n(m.a.email.label,"Email")},H=i.useRef(null),q=i.useRef(null);return i.createElement(i.Fragment,null,i.createElement("form",{"data-testid":m.d.emailAuth,className:v.customLogin,onKeyDown:U},i.createElement("div",{className:v.content},i.createElement("div",{className:v.email},i.createElement(c.a,{id:"emailInput_"+t,inputType:"email","data-testid":"emailInput",value:y,label:G.label,onValueChanged:function(e){return k(e)},ref:H,isValid:!0,autoFocus:!0,validationFn:d.b})),i.createElement("div",{className:v.password},i.createElement(c.a,{id:"passwordInput_"+t,inputType:"password","data-testid":"passwordInput",value:S,label:V.label,onValueChanged:function(e){return L(e)},ref:q,isValid:!0,validationFn:d.c[_]}))),B&&i.createElement("div",{className:v.switchLinkContainer},i.createElement("button",{className:r()(v.forgotYourPasswordLink,v.mobile),"data-testid":"forgotPasswordMobile",onClick:o,type:"button"},j),i.createElement("button",{className:r()(v.forgotYourPasswordLink,v.desktop),"data-testid":"forgotPasswordDesktop",onClick:o,type:"button"},R)),I&&i.createElement("div",{className:v.captchaWrapper},i.createElement(u.default,{language:w,id:"signInCaptcha",onTokenChange:function(e){void 0===e&&(e=""),T(e)},token:x,isMobileFriendly:!1})),i.createElement("div",{"data-testid":"submit",className:v.actionButton},i.createElement(s.default,{label:h,id:"okButton_"+t,isDisabled:A,hasPlatformClickHandler:!0,link:void 0,onClick:D}))))}}}]);
|
|
//# sourceMappingURL=https://static.parastorage.com/services/editor-elements/dist/common-site-members-dialogs.fe95d81d.chunk.min.js.map
|